Commit Graph

30197 Commits

Author SHA1 Message Date
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
Gregory Nutt
ad3ea72ff5 Update a README; refresh some configurations. 2017-06-29 10:55:01 -06:00
Gregory Nutt
6d8df90b79 Clicker2-STM32 + net/: Add configurations to support the endpoint and hub roles in a star topology. Fix various things that broke when IPv6 forwarding was enabled. 2017-06-29 08:16:46 -06:00
Gregory Nutt
a93f130002 6LoWPAN: Add configurable support for 6LoWPAN star topology. With this change, the endpoints which are the 'points' of the star will forward all traffic to the coordinator. The coordinator is assumed to be the 'hub' of the star. This function also implements IPv6 forwarding. That forwarding implementation is minimal, just enough to support the forwarding requirements of the star hub node. 2017-06-28 15:39:21 -06:00
Gregory Nutt
ca97725e55 net: Remove a semicolon that cause compile failure in certain configurations 2017-06-28 15:16:15 -06:00
Gregory Nutt
036bb345a1 net:/ Fix a backward logic in a conditional tested added yesterday. 2017-06-28 14:12:17 -06:00
Gregory Nutt
c3b14f98ea tools/: Remove dangling space at the end of lines. 2017-06-28 13:56:46 -06:00
Gregory Nutt
031fbfc6bc sched/: Remove dangling space at the end of lines. 2017-06-28 13:33:04 -06:00
Gregory Nutt
f87d5a3f81 net/: Remove dangling space at the end of lines. 2017-06-28 13:32:19 -06:00
Gregory Nutt
98d937104e mm/: Remove dangling space at the end of lines. 2017-06-28 13:31:21 -06:00
Gregory Nutt
28e9fe32b6 include/: Remove dangling space at the end of lines. 2017-06-28 13:30:08 -06:00
Gregory Nutt
a0956c9e5b graphics/: Remove dangling space at the end of lines. 2017-06-28 13:28:52 -06:00
Gregory Nutt
a469f0ef04 Documentation/: Remove dangling space at the end of lines. 2017-06-28 13:27:10 -06:00
Gregory Nutt
c67b807f43 configs/: Remove dangling spaces at the end of lines in *.c and *.h files. 2017-06-28 13:21:20 -06:00
Gregory Nutt
44545781e5 configs/: Remove dangline space at the end of lines in .txt files. 2017-06-28 13:18:41 -06:00