Commit Graph

72 Commits

Author SHA1 Message Date
Gregory Nutt
249a2e48e5 Rename CONFIG_ARCH_HAVE_USARTn to CONFIG_USARTn_SERIALDRIVER 2016-05-25 10:39:23 -06:00
Steve
bd3ef36eda SUMMARY
-------
   This patch enhances networking support for the simulation under Linux.
   Includes updated support for Linux TUN/TAP, and the addition of support for
   Linux bridge devices.

CHANGES
-------
   o Check to see if the d_txavail callback is present before calling it in
     the arp send code.  This prevents a segfault when simulating the telnetd
     daemon with arp send enabled.

   o Adjust the simulation's netdriver_loop() so it will detect and respond to
     ARP requests.

   o Do not attempt to take the tap device's hardware address for use by the
     simulation.  That hardware address belongs to the host end of the link,
     not the simulation end.  Generate a randomized MAC address instead.

   o Do not assign an IP address to the interface on the host side of the TAP
     link.

   + Provide two modes: "host route" and "bridge".

   + In host route mode, maintain a host route that points any traffic for the
     simulation's IP address to the tap device.  In this mode, so long as the
     simulation's IP is a free address in the same subnet as the host, no
     additional configuration will be required to talk to it from the host.
     Note that address changes are handled automatically if they follow the
     rule of if-down/set-address/if-up, which everything seems to.

   + In bridge mode, add the tap device to the specified bridge instance.  See
     configs/sim/NETWORK-LINUX.txt for information and usage examples.  This
     enables much more flexible configurations (with fewer headaches), such as
     running multiple simulations on a single host, all of which can access
     the network the host is connected to.

   o Refresh configurations in configs/sim where CONFIG_NET=y.  They default
     to "host route" mode.

   o Add configs/sim/NETWORK-LINUX.txt

CAVEATS
-------
   - The MAC address generation code is extremely simplistic, and does not
     check for potential conflicts on the network.  Probably not an issue, but
     something to be aware of.

   - I was careful to leave it in a state where Cygwin/pcap should still work,
     but I don't have a Windows environment to test in.  This should be
     checked.

   - I don't know if this was ever intended to work with OS X.  I didn't even
     try to test it there.

NOTES
-----
   - Was able to get telnetd working and simulate nsh over telnet, but only so
     long as listen backlogs were disabled.

     There appears to be a bug in the backlog code where sockets are being
     returned in SYN_RCVD state instead of waiting until they're ESTABLISHED;
     if you perform an immediate send after accepting the connection, it will
     confuse the stack and the send will hang; additionally, the connection
     will never reach ESTABLISHED state.

     Can be worked around by adding a sleep(1) after the accept in telnetd.  I
     don't have the necessary knowledge of the IP stack to know what the
     correct fix is.
2016-05-20 17:36:14 -06:00
Gregory Nutt
ad61b7ab3e Remove all references to CONFIG_SYSTEM_SDCARD 2016-03-30 17:53:19 -06:00
Gregory Nutt
e5b0c0e502 Remove most unused references to CONFIG_NET_MULTICAST. Rename other uses of CONFIG_NET_MULTICAST to avoid naming comflicts. 2016-03-20 13:15:58 -06:00
Gregory Nutt
12c14ee718 Rename CONFIG_WIRELESS to CONFIG_DRIVERS_WIRELESS 2016-02-26 16:45:29 -06:00
Gregory Nutt
656e730f8f apps/system/ramtron has been removed. 2016-01-27 10:39:30 -06:00
Gregory Nutt
9535c909d3 Rename CONFIG_SYSTEM_INIFILE to CONFIG_FSUTILS_INIFILE 2016-01-20 17:11:48 -06:00
Gregory Nutt
b90f5ba7f4 Remove CONFIG_DISCRETE_IO from all defconfig files 2015-12-15 08:41:10 -06:00
Gregory Nutt
9a4192d22b Remove CONFIG_NET_PINGADDRCONF. This was a uIP way of assigning IP addresses, but is not standard and not a appropriate feature in general. 2015-12-01 07:47:41 -06:00
Gregory Nutt
1216398f62 sam: Refresh all configurations: Enable PROCFS and NSH_ARCHINIT in all NSH configurations 2015-11-29 13:52:50 -06:00
Gregory Nutt
651bd9e8ad Rename CONFIG_LOOP to CONFIG_DEV_LOOP 2015-11-25 17:11:27 -06:00
Gregory Nutt
00f8521e57 Refresh all nettest configuration 2015-08-26 14:36:17 -06:00
Gregory Nutt
f7ba1b1eeb Remove all references to the dedunct CONFIG_SYSTEM_SYSINFO configuration from all defconfig files 2015-07-04 15:19:11 -06:00
Gregory Nutt
add36cc3de Add an option to disable support for long long formats in lib_vsprintf. From Alan Carvalho de Assis 2015-05-30 10:00:54 -06:00
Gregory Nutt
6867a78bce Fix compile issues with configs/sim/nettest 2015-02-01 12:00:30 -06:00
Gregory Nutt
764b5075bc Network: Add an IPv4 configuration option. Hardcoded to =y for now, but I would like to be able to select IPv4 and/or IPv6 in the future 2015-01-14 10:51:09 -06:00
Gregory Nutt
32238fa2bc A previous change increased the task name size allocation by one to hold a NUL terminator. This changes reduces the configured name size by one so that no additional memory is used 2014-12-17 12:30:26 -06:00
Gregory Nutt
3715040386 Change CONFIG_NET_RECEIVE_WONDOW to CONFIG_NET_ETH_TCP_RECVWNDO or CONFIG_NET_SLIP_TCP_RECVWNDO in all defconfig files 2014-11-16 10:49:33 -06:00
Gregory Nutt
fa0512a766 Rename CONFIG_NET_BUFSIZE to CONFIG_NET_ETH_MTU is all configuration files 2014-11-16 08:07:16 -06:00
Gregory Nutt
f31dca368b Remove CONFIG_MAX_TASK_ARGS from all Kconfigs and defconfigs 2014-11-12 18:02:19 -06:00
Gregory Nutt
857d0b8e76 Remove non-standard, conditional syslog_enable(), instead only the required, standard setlogmask() 2014-10-09 06:09:03 -06:00
Gregory Nutt
4aa785a503 Rename CONFIG_EXAMPLES_NXCONSOLE to CONFIG_EXAMPLES_NXTERM; rename CONFIG_NXWM_NXCONSOLE to CONFIG_NXWM_NXTERM 2014-09-20 14:25:51 -06:00
Gregory Nutt
e09923cd8e Every defconfig file should now have a valid setting for CONFIG_WDOG_INTRESERVE 2014-09-03 06:55:06 -06:00
Gregory Nutt
3dd8c08714 Remove final traces of the 8015 from the NuttX source tree 2014-09-01 13:21:15 -06:00
Gregory Nutt
f15246ec6c Remove CONFIG_MM_MULTIHEAP. Non-multiheap operation is no longer supported 2014-08-31 10:54:55 -06:00
Gregory Nutt
1b2a96c965 Change CONFIG_ADDRENV to CONFIG_ARCH_ADDRENV; change how it is selected -- the architecure must first declare support 2014-08-24 06:42:11 -06:00
Gregory Nutt
49deb059d4 Change CONFIG_MSEC_PER_TICK to CONFIG_USEC_PER_TICK. This gives more options for system timers in general, but more importantly, let's us realize higher resolution for the case of CONFIG_SCHED_TICKLESS=y -- of course, at the risk of some new interger overvflow problems 2014-08-07 13:42:47 -06:00
Gregory Nutt
7edc6a5666 Remove CONFIG_DISABLE_CLOCK 2014-08-07 12:35:24 -06:00
Gregory Nutt
2491fe4ac0 sim/nettest, updated defconfig file 2014-07-21 18:41:34 -06:00
Gregory Nutt
cbe4d3573d Rename apps/examples/uip to apps/examples/webserver 2014-07-03 17:31:17 -06:00
Gregory Nutt
285f66a2c1 NET: Rename uiplib/UIPLIB to netlib/NETLIB 2014-07-02 16:04:25 -06:00
Gregory Nutt
bbcdf15eea TCP Read-Ahead: Convert to use I/O buffer chains 2014-06-24 15:38:00 -06:00
Gregory Nutt
b0c49a71a0 Refresh configuration files 2014-03-06 17:16:46 -06:00
Gregory Nutt
7050b91155 Removed the CONFIG_NUTTX_NEWCONFIG setting from every defconfig file 2014-03-06 12:23:26 -06:00
Gregory Nutt
f0820e75f6 configs/sim/nettest: Configuration converted to use the kconfig-frontends tools 2014-03-03 12:44:37 -06:00
patacongo
263b317427 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
88e549ad63 Set stdio buffer sizes to 0 or 64. No need for 256 or 1024 stdio buffers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5604 42af7a65-404d-4744-a932-0658087f49c3
2013-02-03 17:47:03 +00:00
patacongo
e901816a09 Don't build drivers/mtd unless CONFIG_MTD is defined (Denis Carikli)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5519 42af7a65-404d-4744-a932-0658087f49c3
2013-01-15 00:03:58 +00:00
patacongo
cf8f828900 Patch to removed MMCSD NSLOTS warning from Freddie Chopin
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5316 42af7a65-404d-4744-a932-0658087f49c3
2012-11-06 14:57:01 +00:00
patacongo
447f38418a Part I of port of Rhombus math library
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5269 42af7a65-404d-4744-a932-0658087f49c3
2012-10-28 14:31:57 +00:00
patacongo
e35b9c23ad Change all occurrences of CONFIG_EXAMPLE_ to CONFIG_EXAMPLES_ for consistency; fleshed out a few more Kconfig files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5211 42af7a65-404d-4744-a932-0658087f49c3
2012-10-04 17:36:07 +00:00
patacongo
ad91dc351e 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
755d0c1095 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
407a58ac54 Add configurable application entry point
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5070 42af7a65-404d-4744-a932-0658087f49c3
2012-08-30 20:13:50 +00:00
patacongo
607217ec79 Remove documentation from defconfig files so that they are more maintainable
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5068 42af7a65-404d-4744-a932-0658087f49c3
2012-08-30 15:44:02 +00:00
patacongo
4aabba5267 Lots of defconfig changes for compatibility with the configuration tool
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5050 42af7a65-404d-4744-a932-0658087f49c3
2012-08-23 22:46:36 +00:00
patacongo
b0a0e93cbd NSH now uses the new Telnet daemon and built-in tasks started by NSH can be used over Telnet
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4361 42af7a65-404d-4744-a932-0658087f49c3
2012-02-02 16:04:09 +00:00
patacongo
fd868ba130 Add resource.h and fixed frequently cloned typo
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3642 42af7a65-404d-4744-a932-0658087f49c3
2011-05-24 19:11:47 +00:00
patacongo
f92d46c409 Add a layer to redirect kernel-mode memory manager accesses
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3466 42af7a65-404d-4744-a932-0658087f49c3
2011-04-05 15:50:01 +00:00
patacongo
76dd2b9d58 Prep for 6.0 release
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3408 42af7a65-404d-4744-a932-0658087f49c3
2011-03-21 21:59:35 +00:00