Commit Graph

30161 Commits

Author SHA1 Message Date
Gregory Nutt 94f26828e9 Fix a TTL-related issue introduced with last commit. 2017-07-06 09:45:52 -06:00
Julien Lecoeur 165ee0027a Eliminate a warning with arm-none-eabi-gcc 7.1.0 2017-07-06 08:32:51 -06:00
Masayuki Ishikawa 57ed574f70 Merged in masayuki2009/nuttx.nuttx/network_test (pull request #427)
FS: Remove DEBUGASSERT() in block_proxy() because the flags are cleared later.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-07-06 14:26:15 +00:00
Gregory Nutt efdc5b0c29 IP forwarding: Add missing ICMP support. 2017-07-06 07:49:55 -06:00
Gregory Nutt 04716a65a5 IP forwading: Add optional support to forward broadcast and multicast packets. 2017-07-06 07:26:01 -06:00
Gregory Nutt 24e9647156 net/Kconfig: IP forwarding no long depends on only IPv6. Also update Kconfig comments. 2017-07-05 16:35:14 -06:00
Gregory Nutt b297066eb9 IP Forwarding: Add IPv4 packet forwarding logic. Initial commit is an untested clone of the IPv6 forwarding logic with a few minor logic changes for IPv4. 2017-07-05 15:12:29 -06:00
Gregory Nutt edf16c5805 IP forwarding: In check it the Ethernet MAC address is in the ARP/Neighbor table, add an additional check to skip in the case of CONFIG_NET_MULTILINK and the devices is not an Ethernet device. 2017-07-05 12:40:26 -06:00
Jeff 10f5f8f192 configs/Board.mk: Remove comment form end of line. In windows native build, it appears to be trying to make that an extra parameter to the AR command 2017-07-05 11:38:37 -06:00
Gregory Nutt 31f832d8c5 IP forwarding: Flesh out TCP, UDP, and ICMPv6 packet forwarding logic. 2017-07-05 11:01:16 -06:00
Gregory Nutt 65c3fa6375 net/udp: Fix a copy-paste error that could effect networking when both IPv4 and IPv6 are enabled. 2017-07-05 07:27:17 -06:00
Gregory Nutt ffae9f0251 include/nuttx/input: Remove bogus, obsolete keypad.h header file. 2017-07-04 15:58:39 -06:00
Jan Pobrislo 7999822189 I've found that the interrupts aren't enabled since nothing updates them after btn_poll() marks the file descriptor structure as being polling. I've managed to make it work with this change. 2017-07-04 14:43:19 -06:00
Gregory Nutt f07420dedf SAME70-Xplained: Add MRF24J40 support. 2017-07-04 14:31:26 -06:00
Gregory Nutt 5e617f8410 UDP networking: The TTL (time to live) was not being set in the IPv4 or IPv6 header unless the UDP socket was bound. 2017-07-04 12:05:21 -06:00
Gregory Nutt c0c275c8fc IP forwarding. Adds a little more structure to handle passing packets received on one network device to another network device. Logic is still incomplete. 2017-07-04 10:19:52 -06:00
Gregory Nutt 59cb2a280b Merge remote-tracking branch 'origin/master' into ipforward 2017-07-04 07:21:50 -06:00
Gregory Nutt 32a96bda6d IPv6 forwarding logic must decrement the TTL and drop the packet if the hop limit is exceeded. 2017-07-04 07:05:42 -06:00
Masayuki Ishikawa 5efd942396 FS: Remove DEBUGASSERT() in block_proxy() because the flags are cleared later. 2017-07-04 10:56:54 +09:00
Gregory Nutt eba16af7ba Adds a little more IP foward framework 2017-07-03 16:22:57 -06:00
Gregory Nutt 856d7e73b7 Some compile time fixes 2017-07-03 16:22:25 -06:00
Gregory Nutt eafcf4d059 Clean up some conditional logic 2017-07-03 16:02:59 -06:00
Gregory Nutt 83a875f394 IP forwarding: Add some fragments of TCP forwarding logic. 2017-07-03 15:58:01 -06:00
Gregory Nutt 81cd76484f Add some partial IP forwarding logic. 2017-07-03 15:34:28 -06:00
Gregory Nutt 5060a7cdf2 samv71-xult/mrf24j40: Add reset logic (but comment out because it is not necessary) 2017-07-03 13:00:30 -06:00
Gregory Nutt 72c4f12286 samv71-xult/mrf24j40-starhub: Reset pins backward; update README. 2017-07-03 12:37:37 -06:00
Gregory Nutt 445af2e5a0 samv71-xult/mrf24j40-starhub: Should have pull-ups on interrupting inputs. 2017-07-03 12:06:17 -06:00
Gregory Nutt 3b697327cc samv71-xult/mrf24j40-starhub: Fix MRF24J40 interrupt pin. 2017-07-03 11:51:39 -06:00
Eetu Nevalainen 21dcc8cbc7 stm32f40xxx_rtcc ISR register and write protection fix 2017-07-03 11:06:07 -06:00
Gregory Nutt 68315b7444 Merged clang into master 2017-07-03 07:04:57 -06:00
Gregory Nutt e76c9875a4 Make.defs edited online with Bitbucket 2017-07-03 13:04:38 +00:00
Gregory Nutt 057b438499 samv71-xult/mrf24j40-starhub: Disabled CONFIG_BOARD_INITIALIZE; Correct MRF24J40 interrupt edge. 2017-07-03 06:56:47 -06:00
Gregory Nutt acb0dcecac samv71-xult: Fix a typo in MRF24J40 initialization. 2017-07-02 18:36:55 -06:00
Gregory Nutt 56801c3389 samv71-xult: Fix SP0 vs. TWHS0 in mrf24j40-starhub/defconfig; fix copy-paste errors in SPI initialization logic. 2017-07-02 18:33:31 -06:00
Jan Pobrislo a8f43e1216 stm32f4 discovery: Add logic to register the button driver and the user led driver if so configured 2017-07-02 16:40:11 -06:00
Gregory Nutt 41d4958a77 Add missing MRF24J40 bring-up logic 2017-07-02 15:01:11 -06:00
Gregory Nutt 634b13c143 samv71-xult/mrf24j40-starhub: Tweaks to defconfig 2017-07-02 14:25:51 -06:00
Gregory Nutt 7d7fd9112d samv71-xult/mrf24j40-starhub: Put the serial console on UART3, i.e., on a Arduino serial shield. 2017-07-02 13:06:23 -06:00
Gregory Nutt 5cb3edb552 Update some naming used in Documentation 2017-07-02 11:27:27 -06:00
Gregory Nutt 09ab651e02 samv71-xult: Add support for the MRF24J40 radio and create a mrf24j40-starhub configuration. A few fixes to IPv6 and 6LoWPAN were required to have 6LoWPAN and Ethernet coexisting. Untested and expect some complexity in the bring-up. 2017-07-02 11:04:57 -06:00
Gregory Nutt 8fa5e9772b Clang: Should there not be a prefix when using a cross compiler where clang refers to the host clang. 2017-07-02 06:51:21 -06:00
Gregory Nutt cf44fd6ec0 Add CLANG definitions in Kconfig and Toolchain.defs 2017-07-02 06:42:48 -06:00
Goran Mekić 44bd7d3b7f Initial clang compile 2017-07-02 06:24:26 -06:00
Gregory Nutt 0b4a9a0b3d same570-xplained: Refresh configurations. 2017-07-01 17:24:40 -06:00
Gregory Nutt d280f8854e include/nuttx/net and net/: Move private prototype of netdev_foreach() from the public include/nuttx/net/net.h to the private net/netdev/ndetdev.h header file where it belongs. 2017-07-01 08:39:39 -06:00
Gregory Nutt ae1771454a 6LoWPAN: TCP send logic was returning a failure in one case when, in fact, the send was successful. 2017-06-30 16:07:51 -06:00
Gregory Nutt 7de86f1ab4 This change backs out the 'misconception' fix of 76e6dba2e4 and reimplements it in a way that actually seems to work. 2017-06-30 12:39:00 -06:00
Gregory Nutt e19c52ed6e 6LoWPAN fix compile issue in star hub configuration. 2017-06-30 10:13:31 -06:00
Gregory Nutt 76e6dba2e4 6LoWPAN: Fix a misconception about HC06 16-bit IPv6 address compression. 2017-06-30 10:08:44 -06:00
Gregory Nutt af8c5c86f3 6LowPan: Change how the destination node address is handled in the start endpoint configuration. When the star endpoint sent the IPv6 destination address, the HC06 compression logic elided the address -- meaning that it could be reconstructed by the recipient based on the receiver's assigned short address. However, when intercepted by the hub, the uncompressed address does not know the short address of the recipient and instead uses the short address of the hub. This means two things: (1) it looks like the hub address is the destination address, and (2) the uncompressed UDP packet has a bad checksum. This change assures that the destination IPv6 address is not elided in the case of the star endpoint configuration. 2017-06-30 09:32:17 -06:00