Commit Graph

1249 Commits

Author SHA1 Message Date
Gregory Nutt
249ab6eb18 6LoWPAN: Eliminate a global variable. 2017-06-26 10:49:02 -06:00
Gregory Nutt
5a8668b362 6LoWPAN TCP: Fix more ACK handling, fix some callback flag settings. Now the TCP test appears fully functional on 6LoWPAN. 2017-06-25 13:00:42 -06:00
Gregory Nutt
58e3558c55 6LoWPAN: Modify the the way TCP headers are transferred -- yet again. TCP packet reassembly now seems to work OK, but no there now does not seem to be a listener on the port. 2017-06-24 21:12:46 -06:00
Gregory Nutt
73d32a962d 6LoWPAN: HC06, copy TCP header as though it were data. 2017-06-24 18:29:07 -06:00
Gregory Nutt
74c97f7e7f 6LoWPAN: Various fixes for a clean build if either TCP or UDP are disabled. Given the current state of TCP, it is recommended that you disable TCP. 2017-06-24 16:53:00 -06:00
Gregory Nutt
3203f0a93a 6LoWPAN TCP: Major re-architecting of TCP logic to properly handle TCP stuf like ACKs and TPC windowing which were not properly covered in the initial design. Still does not work; hangs waiting of ACKs. 2017-06-24 16:00:41 -06:00
Gregory Nutt
96af668ab8 6LoWPAN: Handle case where the local address is zero (listen socket) 2017-06-24 11:57:59 -06:00
Gregory Nutt
2fb938202c 6LoWPAN: TCP logic was not obeying MTU packet size limitations. Other TCP-specific issues also fixed. There remains a major outstanding issue with ACK handling. 2017-06-24 09:48:41 -06:00
Gregory Nutt
328a464f99 6LoWPAN: Fix a typo in an index that prevented use with HC1 and extended addresses. 2017-06-23 10:08:03 -06:00
Gregory Nutt
1a46ea644d 6LoWPAN: Add missing IPv6 address creation to HC1 decode logic. 2017-06-23 09:45:09 -06:00
Gregory Nutt
b3b3630991 6LoWPAN: fix yet another addressing problem. That does it. Several recent, proper bugfixes unmasked a few errors in the 6LoWPAN logic. But I think full functionality is restored. 2017-06-22 16:27:58 -06:00
Gregory Nutt
9c2f67c477 6LoWPAN: Fix a src/dest address confusion 2017-06-22 16:04:40 -06:00
Gregory Nutt
4a517ad48d 6LoWPAN: Just adds more debug output 2017-06-22 15:19:18 -06:00
Gregory Nutt
922454d515 6LoWPAN: Loopback driver needs to initialize the MAC meta data; Address decompression logic must have the MAC address to handle the most common compression cases. 2017-06-22 13:55:08 -06:00
Gregory Nutt
bc8ad02ee5 6LoWPAN: Various fixes from retesting on simulator with short addressing. 2017-06-22 11:42:52 -06:00
Gregory Nutt
b5994560cc 6LoWPAN: Fixes needed when extended addressing is enabled. Currently breaks short addressing. 2017-06-22 09:28:25 -06:00
Gregory Nutt
2442a9872b Logic of a353602aa9 only applies if CONFIG_NETDEV_MULTINIC 2017-06-22 07:03:37 -06:00
Roland Takacs
a353602aa9 Do not search net device when all-zeros address is used. 2017-06-22 09:14:59 +02:00
Gregory Nutt
05590a2228 6LoWPAN: Correct a few addressing issues. The apps/examples/udp test now appears to be fully functional. Also reserve two bytes at the end of the frame for the FCS. 2017-06-21 13:43:53 -06:00
Gregory Nutt
a53be51733 6LoWPAN: Correct an error in calculating the location of the UDP header. 2017-06-21 09:17:47 -06:00
Gregory Nutt
cd8ac3f070 ieee802154 MAC: Free allocated TX descriptor if an error occurs after the descriptor has been allocated. 2017-06-20 15:00:23 -06:00
Gregory Nutt
d9f549121c ieee802154_req_data: Don't modify the IOB until we are certain that no EINTR errors will occur. Otherwise, the retry will fail 2017-06-20 14:27:22 -06:00
Gregory Nutt
6dafb4f532 6LoWPAN: Add debug statements; Update configuration, need to specific 6LoWPAN compatible port numbers. 2017-06-20 10:37:32 -06:00
Gregory Nutt
8782e6e561 Merge remote-tracking branch 'origin/master' into ieee802154 2017-06-19 07:53:57 -06:00
Gregory Nutt
25689d911c Some changes from review of last PR 2017-06-19 07:48:26 -06:00
Roland Takacs
175a49a746 Merged in rtakacs/nuttx/fix_getsockname (pull request #410)
Support listening sockets in the getsockname function

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-19 13:36:52 +00:00
Gregory Nutt
cd82d03ddf IEEE 802.15.4/6LoWPAN: Correct one more usage of saddr; also update a README and the TODO list. 2017-06-19 07:31:52 -06:00
Roland Takacs
bea5140156 Support listening sockets in the getsockname function 2017-06-19 13:17:05 +02:00
Roland Takacs
4c163cf43b Throw error when error happens in the tcp_listen function 2017-06-19 12:23:35 +02:00
Anthony Merlino
b1ce07deb1 Swithches IEEE 802.15.4 based code to using byte arrays instead of uint16_t values for short address and PAN ID 2017-06-19 05:55:28 -04:00
Gregory Nutt
cfea8adacb L should be capitalized in 6LoWPAN 2017-06-18 16:00:08 -06:00
Gregory Nutt
de6999ad88 Update coding standard (with some other misc. changes to procfs strings) 2017-06-18 15:52:50 -06:00
Gregory Nutt
2ef49eb3bd Update TODO and README 2017-06-18 09:01:18 -06:00
Gregory Nutt
4588226d71 Clicker2-STM32: Enable networking and 6loWPAN in the mrf24j40-6lowpan configuration. Fix a couple of new 6loWPAN compile issues revealed by this new configuration. 2017-06-16 16:47:27 -06:00
Gregory Nutt
0b652d0451 Update some Kconfig help comments 2017-06-16 13:24:07 -06:00
Gregory Nutt
4a88d6a50a Merge branch 'ieee802154' of bitbucket.org:nuttx/nuttx into ieee802154 2017-06-15 10:32:55 -06:00
Anthony Merlino
e30501ebd4 wireless/ieee802154: Lots of fixes, cleanup, new functionality. Functional 2017-06-15 12:11:52 -04:00
Gregory Nutt
01b0a56371 TCP: tcp_input() now receives IP domain as an input parameter vs. deriving from the IP header length. 2017-05-25 08:02:08 -06:00
Masayuki Ishikawa
32a638cdfe TCP: Fix tcp_findlistner() in dual stack mode
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
2017-05-25 16:54:19 +09:00
Sebastien Lorquet
c9dc1d928d network IOCTL commands: The only place in net/netdev/netdev_ioctl.c where the interface state should change is for SIOCSIFFLAGS. the other ones .. SIOCSIFADDR, SIOSLIFADDR, SIODIFADDR .. should not change the link state. 2017-05-19 10:04:57 -06:00
Masayuki Ishikawa
0260891c96 net procfs: Fix buffer corruption and refactor netdev_statistics.c
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
2017-05-19 06:09:06 +09:00
Masayuki Ishikawa
980b17d951 IPv6: Fix net_ipv6_pref2mask()
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
2017-05-18 20:26:24 +09:00
Gregory Nutt
56c8456ff0 Update some comments. 2017-05-16 07:38:57 -06:00
Gregory Nutt
914c5dad0c TCP: An RST recevied suring the 3-way handshake requires a little more clean-up 2017-05-15 08:10:43 -06:00
Gregory Nutt
aa57fb159d TCP: Send RST if applicaiton 'unlistens()' before we complete the connection sequence. 2017-05-14 13:30:59 -06:00
Gregory Nutt
8acfea1197 Fix some typos 2017-05-14 12:14:31 -06:00
Gregory Nutt
d339ba9e0e TCP: Fix some potential error conditions that could result from deferring the connection until the full 3-way handshake has completed. 2017-05-14 10:56:25 -06:00
Simon Piriou
8dc7f6d79e tcp: wait for 3-Way Handshare before accept() returns 2017-05-14 09:08:32 -06:00
Gregory Nutt
0de294a586 Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:35:56 -06:00
Anthony Merlino
806dcd9a47 wireless/ieee802154: Brings closer to Nuttx coding style 2017-05-09 17:20:57 -04:00
Gregory Nutt
2043e1a114 IOBs: Move from driver/iob to a better location in mm/iob 2017-05-09 07:35:30 -06:00
Gregory Nutt
18eaf52e35 6loWPAN: packet meta data does not need to be a global variable 2017-05-08 10:56:35 -06:00
Gregory Nutt
d785893a65 Update some comments. 2017-05-07 16:58:49 -06:00
Gregory Nutt
c318072084 6loWPAN: Minor cleanup and re-verification of all compression modes after so menay recent changes. 2017-05-06 14:24:06 -06:00
Gregory Nutt
e072069e2d 6loWPAN: Remove usage of the now non-existent msdu_length field. 2017-05-06 06:48:06 -06:00
Gregory Nutt
0eb7ec046e 6loWPAN: Use information in struct ieee802154_data_ind_s when reassembling a packet 2017-05-05 11:36:16 -06:00
Gregory Nutt
95bacb6a34 6loWPAN: Some fixed to get a clean compile after last big changes to the radio IOCTLs. 2017-05-05 10:00:18 -06:00
Anthony Merlino
dd40014279 wireless/ieee802154: Removes radio IOCTL. Starts bringing radio and MAC closer with well-defined interface. 2017-05-05 11:15:38 -04:00
Gregory Nutt
14fc1b2d39 6loWPAN: Local MAC address is fixed by the configuration. The remote address be with short or extended. 2017-05-04 19:17:38 -06:00
Gregory Nutt
128936d9a6 6loWPAN: Design simplications; also remove unused utility function. 2017-05-04 17:16:45 -06:00
Gregory Nutt
d385f46130 6loWPAN: The last vestiges of MAC header generate stripped out. 2017-05-04 13:19:11 -06:00
Gregory Nutt
920c0a2e50 One more baby step in removing MAC knowledge from 6loWPAN. 2017-05-04 12:06:28 -06:00
Gregory Nutt
1cf891bbe1 Another baby step in removing MAC knowledge from 6loWPAN. 2017-05-04 11:33:22 -06:00
Gregory Nutt
6f6e61769a 6loWPAN: Remove final references to Rime from code. 2017-05-04 09:05:41 -06:00
Gregory Nutt
969c1ab614 6loWPAN: Replace some Rime address naming with more consistent short/exended address terminology 2017-05-04 08:20:59 -06:00
Gregory Nutt
6a45afdd75 Merge remote-tracking branch 'origin/master' into ieee802154 2017-05-04 07:11:19 -06:00
Gregory Nutt
11c14470c3 Merge remote-tracking branch 'origin/master' into photon 2017-05-03 17:36:52 -06:00
Gregory Nutt
cf988309aa 6loWPAN: Fixes hang in loopback test. 2017-05-03 11:13:07 -06:00
Gregory Nutt
858685e977 6loWPAN: Changes to use new MAC interfaces. Incomplete and needs some clean-up of dangling, unused definitions. 2017-05-03 09:40:42 -06:00
Gregory Nutt
6157653aca Update some comments 2017-05-02 14:34:11 -06:00
Gregory Nutt
fbe02dfe6b net/pkt: Eliminate a warning. 2017-05-02 10:07:31 -06:00
Simon Piriou
407fe13b8f pkt: fix compilation error 2017-04-30 20:28:56 +02:00
Gregory Nutt
a7901f5c4c Merge remote-tracking branch 'origin/master' into photon 2017-04-29 12:35:01 -06:00
Gregory Nutt
80bca0736d Update some changes from last merge that are needed on this branch. 2017-04-29 10:26:02 -06:00
Gregory Nutt
3482172a16 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-29 10:06:35 -06:00
Gregory Nutt
8262c05713 sixlowpan: Can't reuse same header on each fragment. DSN needs to increment. 2017-04-29 08:23:59 -06:00
Gregory Nutt
22615d0d6d Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-28 12:32:59 -06:00
Simon Piriou
6680eb0e0c netdev: fix compilation errors 2017-04-28 19:39:14 +02:00
Jussi Kivilinna
d928b4271d net/socket: fix cloning of local and raw sockets 2017-04-28 08:00:36 -06:00
Gregory Nutt
381842be5c Merge remote-tracking branch 'origin/master' into photon 2017-04-26 12:33:09 -06:00
Gregory Nutt
9182fb95d5 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-26 12:31:47 -06:00
Gregory Nutt
1cdc90914e network IOCTLs: Correct a compilation error when wireless IOCTLs are enabled. 2017-04-26 12:31:13 -06:00
Gregory Nutt
1c97025484 netdev_register: If there is only one ieee80211 and both CONFIG_ETHERNET and CONFIG_DRIVERS_IEEE8011, then use the wlan0 naming, not the eth0 naming. 2017-04-25 15:51:30 -06:00
Gregory Nutt
c5e636ad84 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-24 17:34:35 -06:00
Gregory Nutt
3c1d85af32 Update a README 2017-04-24 09:43:30 -06:00
Gregory Nutt
0ea071f7eb Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-22 11:58:07 -06:00
Gregory Nutt
7da031aea1 6loWPAN: Add IEEE802.15.4 Rime address to union of link layer addresses in the network driver. 2017-04-22 11:52:45 -06:00
Gregory Nutt
79256573e1 net: network drver now retains Ethernet MAC address in a union so that other link layer addresses may be used in a MULTILINK environment. 2017-04-22 11:10:30 -06:00
Gregory Nutt
1ba7aa9935 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-21 18:49:38 -06:00
Gregory Nutt
0184bf6787 Correct type in a cast 2017-04-21 18:42:13 -06:00
Gregory Nutt
e66caaf960 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-21 18:40:47 -06:00
Gregory Nutt
d884958a2e Back out most of ebf05cb9f5 2017-04-21 18:37:07 -06:00
Gregory Nutt
7c6f2c3c9a Back out most of ebf05cb9f5 2017-04-21 18:31:05 -06:00
Gregory Nutt
309f0abc14 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-21 16:34:10 -06:00
Gregory Nutt
d5207efb5a Be consistent... Use Name: consistent in function headers vs Function: 2017-04-21 16:33:14 -06:00
Gregory Nutt
5d68eb6059 6loWPAN: Remove the PAN ID from the 6loWPAN data structure. This is owned by the radio driver. Rather, use an IOCTL to obtain the PAN ID from the downstream radio driver. 2017-04-21 16:23:40 -06:00
Gregory Nutt
be415489f2 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-21 14:18:41 -06:00
Gregory Nutt
2c4800f511 Remove the 6loWPAN PANID IOCTLs they are redundant. 2017-04-21 14:17:46 -06:00
Anthony Merlino
795e70a952 wireless/ieee802154: Work on packet reception at radio layer (MRF24J40) 2017-04-21 13:06:26 -04:00
Gregory Nutt
d08b802998 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-20 16:19:42 -06:00
Gregory Nutt
bfb93338f6 Move net/iob to drivers/iob so that the I/O buffering feature can be available to other drivers when networking is disabled. 2017-04-20 16:08:49 -06:00
Gregory Nutt
bcc6b61fc1 Move include/nuttx/net/iob.h to include/drivers/iob.h; rename CONFIG_NET_IOB to CONFIG_DRIVERS_IOB 2017-04-20 14:53:30 -06:00
Gregory Nutt
9ff5e83ea7 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-19 18:07:33 -06:00
Gregory Nutt
9281cd558e 6loWPAN: Add an IOCTL to set the IEEE802.15.4 PAN ID 2017-04-19 18:06:43 -06:00
Gregory Nutt
1f7b190684 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-19 13:37:38 -06:00
Gregory Nutt
50fda0d748 6loWPAN: Fix a missing source address in header. Correct calculation of payload size. 2017-04-19 13:33:20 -06:00
Gregory Nutt
52cddc45de Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-18 10:38:08 -06:00
Gregory Nutt
04ebdbb336 Move: CONFIG_ADC_NO_START_CONV from drivers/adc/Kconfig to arch/arm/src/stm32[f7]/Kconfig as STM32[F7]_ADC_NO_START_CONV. Refresh all configurations with any reference to CONFIG_ADC_NO_START_CONV. 2017-04-18 07:16:35 -06:00
Gregory Nutt
edb8e6302d Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-16 12:20:59 -06:00
Gregory Nutt
41f3f1ced7 6loWPAN: Correct ordering of headers. fragmentation header was coming out before FCF. 2017-04-16 12:18:42 -06:00
Gregory Nutt
57dd302227 Fix typos in comments and debug statement. 2017-04-16 10:28:31 -06:00
Gregory Nutt
4729e3c7a3 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-15 10:31:19 -06:00
Gregory Nutt
ebf05cb9f5 network IOCTL: Clean up some naming and spacing. 2017-04-15 10:29:37 -06:00
Gregory Nutt
54939d4616 network IOCTLs: Some corrections and updates to a previous commit 2017-04-15 10:23:29 -06:00
Gregory Nutt
85d97a4d74 Merge remote-tracking branch 'origin/master' into ieee802154 2017-04-15 09:34:03 -06:00
Gregory Nutt
78bc1aa6bc Argument of network device IOCTL should be unsigned long, just as will all other IOCTL methods. 2017-04-15 09:33:27 -06:00
Gregory Nutt
2576f2b2b1 net/: Add IOCTL support for forwarding IEEE802.15.4 MAC and PHY IOCTLs. 2017-04-15 09:11:52 -06:00
Gregory Nutt
bdd66ea6c7 6loWPAN: Add some checks for the case where there are multiple network devices and multiple link layer protocols. 2017-04-15 08:53:42 -06:00
Gregory Nutt
eee89102d8 networking: IPv4 change of last PR should also be applied to corresponding IPv6 logic. 2017-04-15 06:00:42 -06:00
ahb
6d18300f98 not a clean fix, but at least makes DHCP working with CONFIG_NETDEV_MULTINIC 2017-04-15 11:13:24 +02:00
Gregory Nutt
ad9321b7b7 Trivial changes from review of last PR 2017-04-13 06:16:03 -06:00
Thomas Keh
7e293b28ee TUN driver: Implement TAP (OSI layer 2) mode.
Enable by setting the IFF_TAP flag instead of the IFF_TUN flag in ifr_flags.
2017-04-13 13:07:03 +02:00
Gregory Nutt
f3b10eb073 net procfs: Some long lines were being generated that cause buffer-related problems and corrupted output 2017-04-09 11:06:21 -06:00
Gregory Nutt
f9e402018b Buttons: Change return value of board_buttons() and the type of btn_buttonset_t to uint32_t so that more than 8 buttons can be supported. 2017-04-09 07:22:49 -06:00
Mark Schulte
35ca733108 pthread.h: Fix rwlock initializer 2017-04-08 12:34:08 -06:00
Gregory Nutt
3f51180cca 6loWPAN: Fix breakage in IPv6 dispatch caused by fixes to HC1 dispatch; Move some standard definitions from internal header file to include/nuttx/net/sixlowpan.h. Update a README. 2017-04-08 10:18:44 -06:00
Gregory Nutt
143b8f9591 6loWPAN: Fix more frame offsets. Reorder some logic that was appropriate only for IPv6 dispatch. 2017-04-08 09:34:30 -06:00
Gregory Nutt
fe722e44b9 6loWPAN: Fix a faulty assumption about relationship between some sizes and offsets. 2017-04-08 08:14:42 -06:00
Gregory Nutt
ee6700dbc7 Update README's and some comments. 2017-04-08 07:30:20 -06:00
Gregory Nutt
60f0186258 6loWPAN: Add calculation of TCP header size. It is not a constant. 2017-04-07 17:04:57 -06:00
Gregory Nutt
f264e6aec2 6loWPAN: Fixes for fragmented packets. Change fixes some things, breaks other. Lots more to do. 2017-04-07 15:27:53 -06:00
Gregory Nutt
47647eac8f 6loWPAN: Correct some fragmentation handling 2017-04-07 09:49:10 -06:00
Gregory Nutt
19f19e31eb 6loWPAN: Correct some list handling logic. 2017-04-07 08:13:18 -06:00
Gregory Nutt
58d0c1f228 6loWPAN: Back out part of the last commit. That included two fixes for a problem. One that didn't work and is unnecessary and one that is necessary. The commit removes the former. 2017-04-06 18:11:04 -06:00
Gregory Nutt
494d996826 6loWPAN: Fix a few UDP-related issues. 2017-04-06 17:57:15 -06:00
Gregory Nutt
27c65c3f22 6loWPAN: Add network IOCTL support to set the node address 2017-04-06 15:58:00 -06:00
Gregory Nutt
50170a6108 6loWPAN: Fixes for UDP packet transfers. 2017-04-06 11:57:43 -06:00
Gregory Nutt
1fa300f011 6loWPAN: Fix uncompressing of IPv6 encoded packet. 2017-04-06 08:32:18 -06:00
Gregory Nutt
18518eae06 6loWPAN: Fix another HC06 indexing problem. 2017-04-05 18:14:13 -06:00
Gregory Nutt
d0aa22fb80 6loWPAN: Costmetic changes. 2017-04-05 17:26:12 -06:00
Gregory Nutt
72bffeddcc 6loWPAN: Fixes another HC06 indexing problem. 2017-04-05 14:31:44 -06:00
Gregory Nutt
b7c55660cb 6loWPAN: Correct more address manipulations. 2017-04-05 13:04:22 -06:00
Gregory Nutt
cb70ce7d3c 6loWPAN: Correct some IPv6 addresses and operations on IPv6 addresses. 2017-04-05 12:11:09 -06:00
Gregory Nutt
e61fd2d45b 6loWPAN input: Fix a counting error. Input packet sizes were being calculated a little too big. 2017-04-05 09:14:28 -06:00
Gregory Nutt
3b21545480 sixlowpan: Minor reorganization to removed some unused global varialbes and structure fields. 2017-04-05 08:40:30 -06:00
Gregory Nutt
38eed0a847 6loWPAN: Various fixes for building with different configurations; Some minimal testing of HC06 2017-04-04 17:06:17 -06:00
Gregory Nutt
ca2c18c023 6loWPAN: Fix return value and other issues in sixlowpan_frame_process 2017-04-04 16:12:16 -06:00
Gregory Nutt
34da085b40 6loWPAN: Yet another fix related to buffer offsets primarily. 2017-04-04 14:27:21 -06:00
Gregory Nutt
fdf706a3a9 6loWPAN: Additional fixes related to buffer offsets primarily. 2017-04-04 13:52:02 -06:00
Gregory Nutt
1f394a61b3 6loWPAN: Add option to dump buffers. Fix some issues with calculation of the IEEE802.15.4 header size. 2017-04-04 12:31:22 -06:00