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