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
Gregory Nutt
a6ae7d4ae3
6loWPAN: Fix an error in how reassembly timeouts work.
2017-04-04 09:08:48 -06:00
Gregory Nutt
88fd667603
6loWPAN: Fix a pointer initialization problem.
2017-04-04 07:38:48 -06:00
Gregory Nutt
db48f03192
6loWPAN: Fix some compilation problems with HC1 compression is enabled.
2017-04-03 17:04:56 -06:00
Gregory Nutt
cc9445624f
6loWPAN: Correct a couple of tiny but fatal bugs.
2017-04-03 16:17:10 -06:00
Gregory Nutt
7cb34d969d
6loWPAN: More fixes from early debug.
2017-04-03 15:25:36 -06:00
Gregory Nutt
2c06f8ab78
6loWPAN: Updates/fixes from early testing with the IEEE802.15.4 loopback driver.
2017-04-03 12:01:04 -06:00
Gregory Nutt
e9d831ac60
wireless/ieee802154: Add initialization logic for loopback driver; configs/sim: Add configuration for testing 6loWPAN; net/sixlowpan: Fix for compilation with debug output enabled.
2017-04-03 09:15:00 -06:00
Kivilinna
ee4a8336ce
net/socket/accept: fix building with CONFIG_NET_LOCAL_STREAM
2017-04-03 07:38:23 -06:00
Jussi Kivilinna
ae1265c01e
net/socket/send: fix building without CONFIG_NET_6LOWPAN
2017-04-03 07:36:29 -06:00
Gregory Nutt
1b6630ee75
6loWPAN: Fix compile errors and warnings when building the complete 6loWPAN configuration.
2017-04-02 17:46:22 -06:00
Gregory Nutt
3367312401
6loWPAN: Forgot to add files with last commit.
2017-04-02 14:45:14 -06:00
Gregory Nutt
392c90b020
6loWPAN: Fix last checksum issues. Contiki 6loWPAN port is now complete (but completely untested)
2017-04-02 14:30:01 -06:00
Gregory Nutt
6e2f8f3aa3
6loWPAN: Add logic to fill in UDP/TCP headers. Still missing some checksum logic.
2017-04-02 13:27:53 -06:00
Gregory Nutt
663c48c329
6loWPAN: Hook 6loWPAN output into path of output from TCP state machine.
2017-04-02 12:01:04 -06:00
Gregory Nutt
76406af71b
6loWPAN: Add support for sendto()
2017-04-02 11:15:46 -06:00
Gregory Nutt
ec3c40d99d
6loWPAN: Finishes port of Contiki HC06 compression logic
2017-04-02 10:06:31 -06:00
Gregory Nutt
d16fc98c74
6loWPAN: Add HC06 decompression logic; Remove outboard compressor hooks.
2017-04-02 08:08:35 -06:00
Gregory Nutt
5a56d3cce7
6loWPAN: Change ordering of some operations so that the IOB is available at the time that headr compression is perfomed.
2017-04-01 18:24:21 -06:00
Gregory Nutt
5af0909275
6loWPAN: A little HC1 compression logic.
2017-04-01 15:05:38 -06:00
Gregory Nutt
64afba55dd
6loWPAN: Add a little bit of HC1 compression logic.
2017-04-01 13:42:00 -06:00
Gregory Nutt
7a4af75fcf
6lowWPAN: Add frame decompression logic to IEEE802.15.4 input
2017-04-01 12:34:08 -06:00
Gregory Nutt
52ead055fd
6loWPAN: Beginning of IEEE802.15.4 frame input logic.
2017-04-01 09:07:49 -06:00
Gregory Nutt
cccbb6c693
6loWPAN: Clean up some send logic; remove sniffer.
2017-03-31 16:33:21 -06:00
Gregory Nutt
732f0855c6
6loWPAN: Fleshes out framwork for IEEE802.15.4 send. But still has some gaping holes.
2017-03-31 15:09:07 -06:00
Gregory Nutt
85e1d15835
6loWPAN: Fix more configuration related issues detected by addition of 6loWPAN
2017-03-31 12:06:21 -06:00
Gregory Nutt
eb446d5261
net/: Permit net/neighbor to build when IPv6 is defined, but not Ethernet. Needs more work to support 6loWPAN. Also included, some minor configuration updates for 6loWPAN.
2017-03-31 11:15:16 -06:00
Gregory Nutt
a771ec65d6
6loWPAN: Fix a spelling error in macro name.
2017-03-31 10:47:40 -06:00
Gregory Nutt
ad89c88eb3
net/: Fix MULTINIC/MULTILINK selection when 6loWPAN selected.
2017-03-31 10:47:12 -06:00
Gregory Nutt
755b05ff30
TCP/IPv6: Fix a compile issue when IPv6, but not IPv4 is enabled.
2017-03-31 10:45:39 -06:00
Gregory Nutt
44f1326046
6loWPAN: Repartition device-specific vs. global data -- again.
2017-03-31 10:04:29 -06:00
Jussi Kivilinna
cd3c9634c8
Add user-space networking stack API (usrsock)
...
User-space networking stack API allows user-space daemon to
provide TCP/IP stack implementation for NuttX network.
Main use for this is to allow use and seamless integration of
HW-provided TCP/IP stacks to NuttX.
For example, user-space daemon can translate /dev/usrsock
API requests to HW TCP/IP API requests while rest of the
user-space can access standard socket API, with socket
descriptors that can be used with NuttX system calls.
2017-03-31 08:58:14 -06:00
Gregory Nutt
c999519bf2
6loWPAN: A little more IOB-related logic.
2017-03-31 08:27:39 -06:00
Gregory Nutt
0427d6c726
6loWPAN: Replace frame buffer with a list of IOBs.
2017-03-31 07:54:58 -06:00
Gregory Nutt
c5d55c62f4
6loWPAN: Pre-format frames in an IOB change before sending.
2017-03-30 20:13:59 -06:00
Gregory Nutt
1a12682f23
6loWPAN: Fix some MTU-related craziness.
2017-03-30 17:18:18 -06:00
Gregory Nutt
9aabb44118
6loWPAN: Add some comments, move a function
2017-03-30 16:30:04 -06:00
Gregory Nutt
2aca4d4ebd
6loWPAN: Add a little more send logic.
2017-03-30 15:38:56 -06:00
Juha Niskanen
21545ab643
net/local: connect: Fix warning with gcc-arm-none-eabi-5-2016q1. Using compiler from gcc-arm-none-eabi-5-2016q1 toolchain:
...
gcc version 5.3.1 20160307 (release) [ARM/embedded-5-branch revision 234589] (GNU Tools for ARM Embedded Processors)
gives error:
local/local_connect.c:188:7: error: '_local_semtake' is static but used in inline function 'local_stream_connect' which is not static [-Werror]
this is due to compiler enforcing ISO/IEC 9899:1999 6.7.4.3: "An inline definition of a function with external linkage shall not contain a definition of a modifiable object with static storage duration, and shall not contain a reference to an identifier with internal linkage."
Fix by making inlined caller to have internal linkage as well.
2017-03-30 06:54:59 -06:00
Gregory Nutt
2e48af78e7
6loWPAN: Repartition some logic
2017-03-29 18:07:52 -06:00
Gregory Nutt
c8cb2009c8
6loWPAN: Forget to add a file before last commit.
2017-03-29 17:32:12 -06:00
Gregory Nutt
8083a0437e
6loWPAN: Add beginning of some compression hooks to send logic.
2017-03-29 15:44:24 -06:00
Gregory Nutt
a6148cdb7c
6loWPAN: Adding more socket send-related logic.
2017-03-29 14:28:51 -06:00
Gregory Nutt
5fb222180c
6loWPAN: IEEE802.15.4 MAC driver will need a special form of the network device structure to manage fragmentation of the large packet into frames.
2017-03-29 10:17:34 -06:00
Gregory Nutt
ae5b5ae431
Add Rime address macros
2017-03-28 17:26:53 -06:00
Gregory Nutt
c3c8f8ed31
6loWPAN: Simplify some logic in send() if there is only an IEEE802.15.4 MAC
2017-03-28 16:14:58 -06:00
Gregory Nutt
64933246c3
6loWPAN: Tie 6loWPAN send into common socket send logic.
2017-03-28 14:08:54 -06:00
Gregory Nutt
75a8ad636c
6loWPAN: Framework to support commpress/uncompress operations.
2017-03-28 12:23:19 -06:00
Gregory Nutt
25496936cc
6loWPAN: Add dummy files to handle 6loWPAN formmatted input and output packets.
2017-03-28 11:35:46 -06:00
Gregory Nutt
d9e32ee337
6loWPAN: More configurtion settings.
2017-03-28 11:16:28 -06:00
Gregory Nutt
f32fe172d4
6loWPAN: Add HC06 initialization
2017-03-28 10:47:25 -06:00
Gregory Nutt
898b769910
6loWPAN: Add framework for initialization; move globals into a separate file.
2017-03-28 09:32:52 -06:00
Gregory Nutt
913daa908a
6loWPAN: Add some more configuration settings that will be needed.
2017-03-28 09:00:25 -06:00
Gregory Nutt
65e95b95f2
Add a little more 6loWPAN logic
2017-03-27 18:15:20 -06:00
Gregory Nutt
a522fc4f34
6loWPAN: Rename net/6lowpan to net/sixlowpan; Add Contike sixlowpan.h to include/nuttx/net
2017-03-27 14:53:52 -06:00
Pascal Speck
1b266096c7
Merged in iktek01/nuttx (pull request #284 )
...
- fixed wrong assert on udp dgram send
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-21 13:33:12 +00:00
Pascal Speck
8f91c73304
- fixed wrong assert on udp dgram send
2017-03-17 15:13:03 +01:00
Gregory Nutt
aad82bcd9f
Cosmetic change
2017-03-13 18:01:21 -06:00
Gregory Nutt
888cff30dc
Fix some errors in the previous commit
2017-03-13 10:14:38 -06:00
Gregory Nutt
b808084e57
Move wireless IOCTLs from include/nuttx/net/ioctl to include/nuttx/wireless/wireless.h. Add some linux compatible structures to use with the IOCTL commands.
2017-03-13 09:51:31 -06:00
Gregory Nutt
430b52c977
Networking: Add registration support for integrated ieee80211 wireless drivers. Rename CONFIG_IEEE802154 to CONFIG_WIRELESS_IEEE8021514 following the convention of including the location of the configuration variable as a part of its name.
2017-03-12 12:50:41 -06:00
Janne Rosberg
3331e9c49a
STM32 OTGHS host: stm32_in_transfer() fails and returns NAK if a short transfer is received. This causes problems from class drivers like CDC/ACM where short packets are expected. In those protocols, any transfer may be terminated by sending short or NUL packet.
2017-03-07 06:58:59 -06:00
Pascal Speck
1094f85bda
Merged in iktek01/nuttx (pull request #231 )
...
- fixed a nullptr-dereference on iob_clone
Approved-by: Gregory Nutt
2017-03-01 15:24:53 +00:00
Pascal Speck
40433bd7f7
- fixed a nullptr-dereference on iob_clone
2017-03-01 12:13:06 +01:00
Gregory Nutt
ba2b345990
Remove a few remaining use of the obsolteted 'Compilation Switches' program section
2017-01-22 08:57:18 -06:00
Gregory Nutt
518d19c0be
Update comments
2017-01-18 07:53:28 -06:00
Gregory Nutt
9f7d332028
Minor changes from the review of the last PR
2017-01-18 07:32:27 -06:00
Pascal Speck
2e074ca4f9
- Fixed some issues that prevented ipv6 to work with ipv4 enabled.
2017-01-18 10:57:15 +01:00
Gregory Nutt
b52e4e5ecd
Move cancellation point definitions to their own header file.
2016-12-10 09:08:26 -06:00
Gregory Nutt
bc3ca25cc7
Cancellation points: Close up some logic to eliminte some race conditions.
2016-12-10 08:36:58 -06:00
Gregory Nutt
38b9ab09d9
Fix copy-and-paste gone wrong.
2016-12-09 17:28:03 -06:00
Gregory Nutt
64ffd89ee1
Another missing header file inclusion.
2016-12-09 17:25:00 -06:00
Gregory Nutt
16be9b332e
More cancellation points
2016-12-09 15:17:58 -06:00
Gregory Nutt
f45727dffc
Fix some kruft left behind in last big commit.
2016-12-03 16:53:31 -06:00
Gregory Nutt
7467329a98
Eliminate CONFIG_NO_NOINTS. Lots of files changed -> lots of testing needed.
2016-12-03 16:28:19 -06:00
Gregory Nutt
00beb665f5
net/: Remove references to CONFIG_NET_MULTIBUFFER
2016-11-29 16:12:39 -06:00
Gregory Nutt
0804286ad3
arch/: Add option to use low-priority work queue to all Ethernet drivers in arch that support CONFIG_NET_NOINTS.
2016-11-19 09:20:01 -06:00
Gregory Nutt
936b55f608
drivers/net: Add option to use low-priority work queue to all drivers in drivers/net. Not yet added to all architecture-specific network drivers.
2016-11-18 09:22:49 -06:00
Gregory Nutt
b0dffdc2ca
Fix a number of header files with mismatched 'extern C {' and '}'
2016-11-05 07:25:05 -06:00
Gregory Nutt
6ff6cca1a0
Fix some mispellings of semaphore
2016-11-03 17:48:36 -06:00
Gregory Nutt
2d057c28c8
net: Disable priority inheritance on all semaphores used for signaling
2016-11-03 12:17:02 -06:00
Gregory Nutt
1dabbd8489
Costmetic changes
2016-10-24 16:18:30 -06:00
Vladimir Komendantskiy
e5cffc40fc
NET_TUN=y => NET_MULTIBUFFER=y
2016-09-20 13:06:47 -06:00
Gregory Nutt
9c3bade7b4
net/tcp: tcp_ipvX_bind() not actually using the ported selected with port==0. Also removes duplicate call to pkt_input(). Issues noted by Pascal Speck.
2016-08-30 07:59:57 -06:00
Gregory Nutt
9a44f3017b
Fix a few typos in the last commit
2016-07-19 13:40:54 -06:00
Gregory Nutt
6e6c04f778
Rename file_poll as fdesc_poll. The file_ namespace is used for other things.
2016-07-15 11:21:11 -06:00
Gregory Nutt
88a03ae3ec
Break out internal interface psock_ioctl()
2016-07-06 07:30:09 -06:00
Gregory Nutt
2a751068e6
Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err().
2016-06-20 12:44:38 -06:00
Gregory Nutt
43eb04bb8f
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
2016-06-20 11:59:15 -06:00
Gregory Nutt
d40a473f72
Without lowsyslog() *llwarn() is not useful. Eliminate and replace with *warn().
2016-06-20 09:37:08 -06:00
Gregory Nutt
2b445ddccc
Remove lowsyslog(). The new syslog() includes all of the functionality of lowsyslog(). No longer any need for two interfaces.
2016-06-20 08:57:08 -06:00
Jakub Łągwa
338b915008
While working with version 7.10 I discovered a problem in TCP stack that could be observed on high network load. Generally speaking, the problem is that RST flag is set in unnecessary case, in which between loss of some TCP packet and its proper retransmission, another packets had been successfully sent. The scenario is as follows: NuttX did not receive ACK for some sent packet, so it has been probably lost somewhere. But before its retransmission starts, NuttX is correctly issuing next TCP packets, with sequence numbers increasing properly. When the retransmission of previously lost packet finally succeeds, tcp_input receives the accumulated ACK value, which acknowledges also the packets sent in the meantime (i.e. between unsuccessful sending of lost packet and its proper retransmission). However, variable unackseq is still set to conn->isn + conn->sent, which is truth only if no further packets transmission occurred in the meantime. Because of incorrect (in such specific case) unackseq value, few lines further condition if (ackseq <= unackseq)is not met, and, as a result, we are going to reset label.
2016-06-20 06:55:29 -06:00
Gregory Nutt
7d0950bb22
net/: Change some nerr() ERRORS to nwarn() WARNINGS. Anomolous network events are not errors.
2016-06-12 07:09:37 -06:00
Gregory Nutt
f4fcdcdb4d
net/: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
2016-06-11 17:37:21 -06:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
e99301d7c2
Rename *lldbg to *llerr
2016-06-11 14:55:27 -06:00
Gregory Nutt
86b79b33cf
Reserver the name 'err' for other purposes
2016-06-11 14:40:07 -06:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Gregory Nutt
c98f00a93b
Update comments; trivial addtion to a document.
2016-06-10 09:36:59 -06:00
Gregory Nutt
a81a467a40
Networking: In both IPv6 and IPv4 incoming logic: (1) Should check if the packet size is large enough before trying to access the packet length in the IP header. (2) In the comparison between the IP length and the full packet length, need to subtract the size of the link layer header before making the comparison or we will get false positives (i.e., the packet is really too small).
2016-06-09 13:16:47 -06:00
Gregory Nutt
4f208600aa
Replace confusing references to uIP with just 'the network'
2016-05-30 09:31:44 -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
e523c93391
Several Makefiles: Add .PHONY definitions to prevent 'clean up to date' message weirdness.
2016-05-10 15:44:06 -06:00
Gregory Nutt
3ca5a94515
VNC: Add basic message receipt logic
2016-04-17 09:17:37 -06:00
Gregory Nutt
39a37d6aa8
Separate out psock_listen() and psock_accept() for internal use by the OS
2016-04-14 08:39:48 -06:00
Gregory Nutt
03a77c1d18
Remove most unused references to CONFIG_NET_MULTICAST. Rename other uses of CONFIG_NET_MULTICAST to avoid naming comflicts.
2016-03-20 13:16:17 -06:00
Gregory Nutt
2dd9777c7e
Fix a backward conditional test introduced with the last commit
2016-03-20 09:58:07 -06:00
Gregory Nutt
00b44959ea
TCP poll: TCP poll events can really only being processed when the poll from the correct device is received.
2016-03-20 08:39:15 -06:00
Gregory Nutt
4639cdd894
TCP timeouts: Fix some logic when there are multiple network interfaces. In this case, TCP timeout events can really only being processed when the poll from the correct device is received.
2016-03-20 08:19:00 -06:00
Gregory Nutt
fdddebbffd
net/: Finish IEEE802154->6LOWPAN renaming; remove PF_IEEE804154; Move 6LoWPAN menu to inside Internet Protocol Menu
2016-02-27 07:26:20 -06:00
Gregory Nutt
309beae2cd
Move drivers/ieee802154 to drivers/wireless/ieee802154; rename include/nuttx/net ieee802154 to 6lowpan.h
2016-02-26 15:03:16 -06:00
Gregory Nutt
2f28ca86c2
Clean up some naming; rename net/ieee802154 to net/6lowpan
2016-02-26 10:08:36 -06:00
Gregory Nutt
2c95fef501
Remove some empty code section comments
2016-02-26 07:35:55 -06:00
Gregory Nutt
8db55f6493
Back out most of previous commit
2016-02-26 06:45:37 -06:00
Gregory Nutt
b0ea870bcc
Remove some empty code section comments
2016-02-25 18:34:36 -06:00
Gregory Nutt
9ff645a298
drivers/ieee802154: Add a skeleton IEEE802154 driver
2016-02-25 15:11:30 -06:00
Gregory Nutt
0b441ff1f4
net/: Add basic IEEE 802.15-4 socket support
2016-02-25 14:01:22 -06:00
Gregory Nutt
e4e6181098
net/: IEEE 802.15-4 basic build build structure.
2016-02-25 10:43:51 -06:00
Gregory Nutt
bcbd8ee964
Networking: Cosmetic change
2016-02-24 19:02:51 -06:00
Gregory Nutt
d19e9cc448
networking: cosmetic changes
2016-02-24 16:10:20 -06:00
Gregory Nutt
0fb035f76b
Standardize some naming in code section comments
2016-02-21 18:09:04 -06:00
Gregory Nutt
aa3e778dc6
nuttx/net: Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-14 08:38:44 -06:00
Gregory Nutt
68ee9bcaed
Refresh modules + plus minor clean-up from previous commits
2016-02-08 15:13:14 -06:00
Gregory Nutt
166ad58849
DHCPD no longer calls directly into the OS, but uses network IOCTL commands to modify the ARP table. Plus, fix a warning.
2016-02-08 12:08:18 -06:00
Gregory Nutt
0af9a197ac
ARP: Add IOCTL commands to manage the ARP table
2016-02-08 11:17:22 -06:00
Gregory Nutt
0554de6c50
Networking: Simply devif_timer; Consolidate duplicated devif_poll logic
2016-02-05 07:36:07 -06:00
Gregory Nutt
b5024263e9
Networking: Add a trivial cast
2016-02-03 18:12:19 -06:00
Gregory Nutt
41164740a5
Network: Improve half-second conversion
2016-02-03 13:08:19 -06:00
Gregory Nutt
dea24c503a
Networking: Remove the HSEC argument from devif_timer.
2016-02-03 12:12:41 -06:00
Gregory Nutt
7fb7bef2d2
Fix an error introduced with last IOB fix
2016-01-26 09:55:17 -06:00
Gregory Nutt
365e015010
iob_alloc_qentry() has the same issue that was recently fixed in iob_alloc()
2016-01-25 17:46:59 -06:00