Commit Graph

382 Commits

Author SHA1 Message Date
Gregory Nutt
a9e44cdfe0 The first set of changes to incorporate Jason Jiangs TCP write buffering logic 2014-01-13 17:11:01 -06:00
Gregory Nutt
486314ad05 Add configuration support for TCP Write Buffering 2014-01-13 14:40:21 -06:00
Gregory Nutt
7eef2f9410 Change how TCP read-ahead is selected to better integrate with TCP write buffering 2014-01-13 13:55:51 -06:00
Gregory Nutt
0142b3cf5f NET: prevent tcp_connect callback from being double freed. From Max Holtzberg. 2014-01-13 12:04:01 -06:00
Gregory Nutt
cbb5e4889b Add support for the SO_LINGER socket option. Based on logic from Jason Jiang. Utestested on initial commit 2014-01-13 11:58:45 -06:00
Gregory Nutt
78936f7260 Changes for ZDS-II ez80 build 2013-11-28 17:47:03 -06:00
Gregory Nutt
76764003a5 Add logic to enable DEBUG_NET if NET=n but WL_CC3000=y 2013-10-23 11:48:57 -06:00
Gregory Nutt
b38468d49f net_sendfile: Let the ACK callback handle the REXMIT flag and don't return until all data has been ACK'd. From Max Holtzberg 2013-10-17 09:54:48 -06:00
Gregory Nutt
8ca54913e2 Move tcp connection into SYN_RCVD state after aception instead of bypassing and moving directly into ESTABLISHED. From Max Holtzberg. 2013-10-17 09:49:33 -06:00
Gregory Nutt
cbed482747 TCP: Change how initial MSS is handled. From Max Holtzberg 2013-10-17 09:45:38 -06:00
Gregory Nutt
69dac5c775 In net_sendfile(), correct parameter passed to netdev_txnotifiy. From Max Holtzberg 2013-10-17 09:24:25 -06:00
Gregory Nutt
bf5ae4a374 Reset TCP timeout timer when data is ACKed, not when data is sent. From Max Holtzberg 2013-10-17 09:19:03 -06:00
Gregory Nutt
408ff55b7e Changed net_close debug output to verbose. From Max Holtzberg (2013-10-17) 2013-10-17 09:13:31 -06:00
Gregory Nutt
8f7c6e23a6 Changed the meaning of the uip_*input functions. They now return success when a packet is dropped; This is needed for the ENCX24J600 driver that must make a decision to return the packet or not: It should not retain dropped packets. From Max Holtzberg 2013-10-11 10:48:00 -06:00
Gregory Nutt
ffdaa6b5c5 Notify the socket layer if a connection is lost before the monitoring callback has been registered. From Max Holtzberg 2013-10-11 10:04:54 -06:00
Gregory Nutt
3afaa56067 Missing one change in the last commit 2013-10-08 09:29:28 -06:00
Gregory Nutt
50441eb9ee uip_tcpcallback: Simplify handling of callback return flags 2013-10-08 09:24:37 -06:00
Gregory Nutt
d5ec15fc78 Update to net_close() improvement from Max Holtzberg 2013-10-08 09:14:27 -06:00
Gregory Nutt
ed980b51f7 SAMA5: LCDC driver progress 2013-10-07 12:05:16 -06:00
Gregory Nutt
4c884a5079 Make net_close() nonblocking and free unestablished connections if no free connections available. From Max Holtzberg 2013-10-06 09:48:54 -06:00
Gregory Nutt
d3fa588250 SAMA5 LCDC: Add 'skeleton' files that will eventually become an LCDC driver for the SAMA5 2013-10-06 09:08:52 -06:00
Gregory Nutt
f6a90114b1 Use the new signature of rxnotify caused by the routing table. From Max Holtzberg 2013-10-06 07:38:15 -06:00
Gregory Nutt
52797b84a1 Another case where we should use the routing table: There may be multiple routers on the same network. In that case, we have to search for the routing table for the router that forwards to the destination address. We do this when we determine the MAC address we want in the ARP logic 2013-10-05 19:08:57 -06:00
Gregory Nutt
17e481e35a Fix some delroute errors 2013-10-05 10:34:38 -06:00
Gregory Nutt
4579819f8e Fix ordering of operations in network ioctl handling. We need to able to distinguish an error because the command was not recognized vs. other kinds of error 2013-10-05 16:43:10 -06:00
Gregory Nutt
63b6d3bde3 Add NSH addroute and delroute commands 2013-10-05 15:42:20 -06:00
Gregory Nutt
0e447ff9b5 Oops here is a file that I forget to add before a recent commit 2013-10-05 13:20:17 -06:00
Gregory Nutt
95ed790c54 netdev_findbyaddr() will not use a routing table if one is available. It will also make a better decision in the case there there is no routing table but only a single network interface. 2013-10-05 13:16:18 -06:00
Gregory Nutt
566857bcbd Clean-up routing table design. 2013-10-05 12:05:51 -06:00
Gregory Nutt
0ff3852b2f Add a user interface to manage the routing table 2013-10-02 10:51:48 -06:00
Gregory Nutt
255a9dcfc2 Simple routing table hooked into network build system 2013-10-01 19:13:06 -06:00
Gregory Nutt
ca8ec81688 Partial implementation of a simple network routing table. 2013-10-01 18:55:20 -06:00
Gregory Nutt
3ea00af9aa net/net_sendfile: High performance sendfile is now functional. From Max Holtzberg 2013-09-30 14:37:04 -06:00
Gregory Nutt
c038f4efe0 Dependency generation fix for directories that keep object files in a sub-directory 2013-09-29 11:46:10 -06:00
Gregory Nutt
417f67c132 Clean up some naming: fd vs. fildes vs. filedes and filep vs filp 2013-09-28 16:50:07 -06:00
Gregory Nutt
41f0c86cad Optimized sendfile() from Max Holtzberg 2013-09-28 14:47:49 -06:00
Gregory Nutt
cdb56b81b8 Networking: Fix backward conditional in test to see if address is in ARP table. From Max Holtzberg 2013-09-27 08:27:35 -06:00
Gregory Nutt
95d462cb02 Networking: If sending out of the subnet, device lookup by IP will fail. Fall back to ETH0 for now. From Max Holtzberg 2013-09-27 08:21:33 -06:00
Gregory Nutt
d06b7b0afe Can't test for UIP_CLOSED bit in TCP flags; UIP_CLOSED is defined to be 0 2013-09-25 08:42:31 -06:00
Gregory Nutt
72340b85fe Add support for multiple PHY selections for multiple Ethernet MAC drivers 2013-09-17 10:52:23 -06:00
Gregory Nutt
d361bce93a Networking: Important bug fix. The backlog buffer pointer was not being incrmented so that only the first backlog buffer was getting added to the freelist. From Max Holtzberg 2013-09-06 11:43:59 -06:00
Gregory Nutt
417f2006aa Missing file change for previous driver-based UDP backlog from Max Holtzberg 2013-09-06 10:19:07 -06:00
Gregory Nutt
209946a055 Update to previous change from Max Holtzberg 2013-09-06 09:34:14 -06:00
Gregory Nutt
deaa35987e Partial implementation of driver-based UDP backlog still missing some logic. From Max Holtzberg. 2013-09-06 09:18:07 -06:00
Gregory Nutt
abc006453f Networking: Fix race condition that can cause missing loss-of-connection events. From Max Holtzberg 2013-09-06 08:25:03 -06:00
Gregory Nutt
bc46b447dc Fix all occurrences of "the the" in documentation and comments 2013-08-27 09:40:19 -06:00
Gregory Nutt
20b1b584e7 Network ARP harvesting: Corect backward condition in netmask task. From Max Holtzberg 2013-08-25 07:33:47 -06:00
Gregory Nutt
4748599a43 .dSYM only needs to be in the same .gitignore files as .exe 2013-05-30 15:02:04 -06:00
Gregory Nutt
7554d2888e Upate .gitignore files. Add .dSYM. Make sure / is present where needed. Add some missing .gitignore files 2013-05-30 14:45:31 -06:00
Gregory Nutt
9d280a58aa When readahead data is available, poll needs to return POLLIN or POLLRDNORM, not POLLOUT 2013-05-23 07:16:46 -06:00
Gregory Nutt
4d4ece78af Add MTD partition support plus fix some typos in comments 2013-04-30 12:37:34 -06:00
Gregory Nutt
c9d98ea46c Implement UDP sendto() timeouts. Currently disabled because it probably unnecessary. 2013-04-30 08:12:54 -06:00
Gregory Nutt
71fb1cfdb1 Networking code should use kfree, not lib_free 2013-04-11 06:54:29 -06:00
Gregory Nutt
82696356c8 Fix bad net_clone.c compilation when CONFIG_NET_SOCKOPTS is not defined 2013-04-05 06:40:40 -06:00
Gregory Nutt
db78b76102 Mostly updates and corrections to .gitignore files 2013-04-04 15:39:50 -06:00
Gregory Nutt
23db0682b7 Clone svn:ignore directory atributed to .gitignore files 2013-04-04 14:27:29 -06:00
patacongo
ebf9960deb convert Kwikstik K40 configurations to use kconfig-frontends tools
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5784 42af7a65-404d-4744-a932-0658087f49c3
2013-03-25 17:33:41 +00:00
patacongo
1ef904003e Create sched_ufree and sched_kfree from sched_free; Use user-accessible heap to allocae stacks
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5725 42af7a65-404d-4744-a932-0658087f49c3
2013-03-10 15:32:33 +00:00
patacongo
1c52dce216 More changes for a kernel-mode allocator (more to be done)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5724 42af7a65-404d-4744-a932-0658087f49c3
2013-03-09 21:12:20 +00:00
patacongo
8a774a1712 Fix a whole in the logic from the previous check-in
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5718 42af7a65-404d-4744-a932-0658087f49c3
2013-03-07 18:43:03 +00:00
patacongo
4b3ad32ee5 Fix network poll() issue: don't interrupt poll if socket not connected. Listen sockets are not connected and the poll() is waiting for connection events.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5717 42af7a65-404d-4744-a932-0658087f49c3
2013-03-07 17:59:21 +00:00
patacongo
4c3b71131e Move socket data from TCB to task group structure.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5570 42af7a65-404d-4744-a932-0658087f49c3
2013-01-26 23:49:02 +00:00
patacongo
03fd50017d Add framework to support task groups
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5562 42af7a65-404d-4744-a932-0658087f49c3
2013-01-25 17:23:38 +00:00
patacongo
caf5fdf217 Fix some missing logic and inconsistencies in child status logic; Fix a bug introduced into sigaction()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5560 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 23:18:32 +00:00
patacongo
a59665cddc Fix poll/select issue reported by Qiang
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5559 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 19:19:38 +00:00
patacongo
44c3becee8 Add psock_poll(); Fix some warnings reported by Lorenz Meier; lm4f logic from JP
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5557 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 18:39:53 +00:00
patacongo
2c1e4e47e7 poll was not checking if the socket was still connected
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5543 42af7a65-404d-4744-a932-0658087f49c3
2013-01-21 14:17:11 +00:00
patacongo
28fc34c298 Centralize TCP loss-of-connection bit twiddling
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5542 42af7a65-404d-4744-a932-0658087f49c3
2013-01-20 17:21:42 +00:00
patacongo
5a7e3d551f Yet another repair for the previouis botched recvfrom() fix; Fix telnet driver: It needs to break out of the read loop if 0 (meaning not conneced) of a value < 0 (an error) is encountered.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5541 42af7a65-404d-4744-a932-0658087f49c3
2013-01-20 00:41:33 +00:00
patacongo
00082e0da7 Minor tweak to last bugfix
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5540 42af7a65-404d-4744-a932-0658087f49c3
2013-01-19 19:45:08 +00:00
patacongo
4e7340ab13 Fix a bug where recv[from]() would hang when remote host gracefully closed connection
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5539 42af7a65-404d-4744-a932-0658087f49c3
2013-01-19 19:18:44 +00:00
patacongo
82a2cd6155 Add split package logic to improve TCP send performance with delayed ACKs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5538 42af7a65-404d-4744-a932-0658087f49c3
2013-01-19 16:40:43 +00:00
patacongo
fd08c16b8f Add header files for z180
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5425 42af7a65-404d-4744-a932-0658087f49c3
2012-12-10 17:03:34 +00:00
patacongo
469ec154c0 Missing comma in EVERY DELFILE/DELDIR macro call in every Makefile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5373 42af7a65-404d-4744-a932-0658087f49c3
2012-11-20 15:47:41 +00:00
patacongo
26c9112ad2 Most of the changes needed to support Windows native clean; distclean is has a problem
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5367 42af7a65-404d-4744-a932-0658087f49c3
2012-11-17 18:54:53 +00:00
patacongo
f751d36eee Move some (hopefully) un-necessary quotes in Makefiles for Mike
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5356 42af7a65-404d-4744-a932-0658087f49c3
2012-11-15 17:43:29 +00:00
patacongo
a5f761c24e Correct some issues with last check-in; ez80 still does not build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5339 42af7a65-404d-4744-a932-0658087f49c3
2012-11-11 23:44:31 +00:00
patacongo
a1cf659333 Completes removal bash ARCHIVE loop; Adds basic Makefile for native windows build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5338 42af7a65-404d-4744-a932-0658087f49c3
2012-11-11 18:36:28 +00:00
patacongo
3d2879fc4e Partial change: Removing bash ARCHIVE loop
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5335 42af7a65-404d-4744-a932-0658087f49c3
2012-11-11 15:42:12 +00:00
patacongo
73659bfd99 Add interfaces flags, extend ifconfig, add ifup and ifdown commands (Darcy Gong
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5308 42af7a65-404d-4744-a932-0658087f49c3
2012-11-04 18:54:04 +00:00
patacongo
5bb517ef08 Ping/DNS fixes (part 2 of 2)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5236 42af7a65-404d-4744-a932-0658087f49c3
2012-10-20 14:15:59 +00:00
patacongo
0663694745 Fix problem with ping that prevent ping from going outside local network (Darcy Gong)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5204 42af7a65-404d-4744-a932-0658087f49c3
2012-09-29 14:13:04 +00:00
patacongo
8a0899a695 STM32 fixes for DM9161 PHY; Enhancements for ADS7843e touchscreen controller
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5199 42af7a65-404d-4744-a932-0658087f49c3
2012-09-27 19:26:18 +00:00
patacongo
78b298ffad Fix another ENC28J60 chip select bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5163 42af7a65-404d-4744-a932-0658087f49c3
2012-09-18 23:06:22 +00:00
patacongo
7a2692df6a Resync new repository with old repo r5166
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5154 42af7a65-404d-4744-a932-0658087f49c3
2012-09-17 18:35:37 +00:00
patacongo
3fcb8d9d6c Fixes for z80 compilation with SDCC toolchain. There are still a few header file and linker issues
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5149 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 22:04:47 +00:00
patacongo
3e7c5c1b43 Fix for recvfrom() hang when the new CONFIG_NET_TCP_RECVDELAY is set to zero (from Max Holtzberg)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5148 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 20:37:24 +00:00
patacongo
50321df42d Remove executable property from source and make files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5146 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 18:46:10 +00:00
patacongo
7a9457bb07 Email address change in nuttx/
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5145 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 18:32:24 +00:00
patacongo
95b8d17849 Email address change in apps/
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5143 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 16:58:49 +00:00
patacongo
52150a94d9 Reconfigured Shenzhou to use JTAG. Misc Kconfig changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5118 42af7a65-404d-4744-a932-0658087f49c3
2012-09-09 15:43:18 +00:00
patacongo
a93d7eb69e Shenzhou board is first to use ONLY Kconfig for configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5114 42af7a65-404d-4744-a932-0658087f49c3
2012-09-08 13:56:21 +00:00
patacongo
f39a3c9417 Remove several unused configuration values
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5113 42af7a65-404d-4744-a932-0658087f49c3
2012-09-08 04:29:48 +00:00
patacongo
11eb27ca7a Add basic directory structure for the Shenzhou STM32107 board (not much there yet)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5108 42af7a65-404d-4744-a932-0658087f49c3
2012-09-07 19:29:21 +00:00
patacongo
5b268e4dab Removed delay after receiving in recvfrom(). This was killing network performance
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5107 42af7a65-404d-4744-a932-0658087f49c3
2012-09-07 16:51:53 +00:00
patacongo
ac3fe6a4ba defconfig changes for LPC17xx Kconfig
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5098 42af7a65-404d-4744-a932-0658087f49c3
2012-09-05 20:27:07 +00:00
patacongo
08ef9d0367 Add Kconfig settings for the LPC17xx
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5094 42af7a65-404d-4744-a932-0658087f49c3
2012-09-05 17:20:19 +00:00
patacongo
ad13bd3827 NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4818 42af7a65-404d-4744-a932-0658087f49c3
2012-06-08 18:56:01 +00:00
patacongo
ac9fba297a NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4817 42af7a65-404d-4744-a932-0658087f49c3
2012-06-08 15:45:40 +00:00
patacongo
11e1c6fb96 More IPv6 rambling
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4815 42af7a65-404d-4744-a932-0658087f49c3
2012-06-08 01:53:26 +00:00