42554 commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
Flavio Santes
|
bcf89dc60e |
boards/x86/pinmux: Remove unused parameter warning
This patch fixes the unused parameter warning found at the Arduino 101 and Galileo pinmux code. Change-Id: If67538e955ca1c2d12d4b8378f451bd88b4a52ff Signed-off-by: Flavio Santes <flavio.santes@intel.com> |
||
Chuck Jordan
|
314d94e7f8 |
arc: 1msec tick gives more stable scheduling
I notice that many of the other boards here use 1msec for the tick. I notice also that when switching to unified kernel, scheduling based on time has a lot more jitter with a 5msec tick. I think a better default is 1000 ticks per second for em_starterkit. Change-Id: Icc93345762dbea7d71ca9f4735bcf73f75cde273 Signed-off-by: Chuck Jordan <cjordan@synopsys.com> |
||
Ramesh Thomas
|
3cabbfd081 |
quark_se_ss: power_mgmt: fix sleep mem ordering bug
Memory access could be reorderd around sleep. Add memory in clobber list. Jira: ZEP-1408 Change-Id: I49df2542e0059ba76a262fbda58eb46b86e89bea Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com> |
||
Baohong Liu
|
4e16e77935 |
boards: all: use new kernel header file
Change-Id: Ibfbf8fc7b777d5015861dd3b4b5175176c3091bf Signed-off-by: Baohong Liu <baohong.liu@intel.com> |
||
Anas Nashif
|
688838c7d5 |
release-note: initial import with 1.6 release notes
Change-Id: I93be417f7af7f34762a80184de463c6a93bf2b38 Signed-off-by: Anas Nashif <anas.nashif@intel.com> |
||
Anas Nashif
|
a70bbacb64 |
Update version to 1.6.99
Set the stage for 1.7 development Change-Id: I9f65d5c4ca5ad6c40e1462d73e3db13e4b13ac02 Signed-off-by: Anas Nashif <anas.nashif@intel.com> |
||
Anas Nashif
|
12ef79ce93 |
Revert "maintainers: fix Ruud's email"
The email for Ruud in the maintainers file actually matches his gerrit
ID.
This reverts commit
|
||
Chuck Jordan
|
2a4e2173fd |
maintainers: fix Ruud's email
Fix Ruud Derwig's email address. Change-Id: I5711544af9d595741d03114b5883ee55cd6156b0 Signed-off-by: Chuck Jordan <cjordan@synopsys.com> |
||
Baohong Liu
|
b0cdc4bce3 |
drivers: spi_shim: add return value check
Add function return value check. This was caught by Coverity. Coverity-CID: 157124 Change-Id: I93b23325d657dc787300908b9117b6976617fdba Signed-off-by: Baohong Liu <baohong.liu@intel.com> |
||
Anas Nashif
|
a224a9a67a |
sanitycheck: update footprint data
Change-Id: I9b400a2f2ae1a1a2739e9c96eb4b9ebc098d998a Signed-off-by: Anas Nashif <anas.nashif@intel.com> |
||
Andrew Boie
|
bba445b31f |
nios2: fix irq_lock/unlock ordering bug
Memory accesses could be reordered before an irq_lock() or
after an irq_unlock() without the memory barriers.
See commit
|
||
Benjamin Walsh
|
0e2451e3a0 |
tests: increase stack size on test_errno
The stacks are overrun on ARM. Change-Id: Ic5f1555b138a732e409c92cff716278b33dfce5d Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com> |
||
Chuck Jordan
|
cd198764ba |
arc: branch too far when STACK_CHECKING enabled.
A build error was resulting if CONFIG_ARC_STACK_CHECKING is enabled. There is a breq that was too far. Adding conditional code to re-arrange the branching so that it can be done. See ZEP-1116. Change-Id: Idea85817b2e05617bbaa4450437aa74c5737e213 Signed-off-by: Chuck Jordan <cjordan@synopsys.com> |
||
Benjamin Walsh
|
a08c4b81e9 |
arc: fix irq_lock/unlock ordering bug
Memory accesses could be reordered before an irq_lock() or after an
irq_unlock() without the memory barriers.
See commit
|
||
Benjamin Walsh
|
1f8125a416 |
x86: fix irq_lock/unlock ordering bug
Memory accesses could be reordered before an irq_lock() or after an
irq_unlock() without the memory barriers.
See commit
|
||
Mahavir Jain
|
acea24138a |
kernel: replace .BSS and .DATA setup with standard library calls
Use standard library calls like memset/memcpy for setting up BSS and DATA sections during system initialization, this helps to take advantage of architecture specific optimizations from standard library. Change-Id: Ia72b42aa65b44d1df7c22dd1fbc39a44fa001be9 Signed-off-by: Mahavir Jain <mjain@marvell.com> |
||
Mahavir Jain
|
a636604cd5 |
kernel: include kernel version in boot banner
Make boot banner more informative by adding kernel version string Change-Id: I21865ea3a001fba2c30fe58e6e052aae59fef3e2 Signed-off-by: Mahavir Jain <mjain@marvell.com> |
||
Marcus Shawcroft
|
5387413c3e |
arm: fix irq_unlock() ordering bug
Add the missing memory clobber to irq_unlock() in order to prevent the compiler reordering memory operations over the unlock. Change-Id: If1d664079796618ed247ff5b33b8b3f85fb7e680 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com> |
||
Anas Nashif
|
29b2ffbb33 |
samples: usb: remove legacy APIs
Change-Id: I80fa24aaf783451af18d775a6b52c2014d26bd9e Signed-off-by: Anas Nashif <anas.nashif@intel.com> |
||
Anas Nashif
|
bf83460725 |
tests: ipm: change init level from NANOKERNEL to POST_KERNEL
Change-Id: I86bbf50525018148689be9362c191d00324c595c Signed-off-by: Anas Nashif <anas.nashif@intel.com> |
||
Anas Nashif
|
91b47b9d3c |
sensors: change init level from NANOKERNEL to POST_KERNEL
Change-Id: Iba788e2b0b60d89e6b9bf6f5de73ff2f5cdbebbc Signed-off-by: Anas Nashif <anas.nashif@intel.com> |
||
Marcus Shawcroft
|
15bc537712 |
kernel: Fix ARM irq_lock() ordering bug.
The inline asm definition of irq_lock() on the ARM architecture marks the ASM as volatile which prevents the compiler from removing the isntruction but does provide any information to the compiler to prevent the inline ASM instruction being re-ordered relative to other instructions. The instruction used in irq_lock() do not touch memory, however in order to acheive their intended purpose they must be ordered relative to other memory access instruction. This is acheived by adding the "memory" clobber. Instances of the compiler inappropriately re-ordering irq_lock() calls relative to other instructions without this patch can be observed in the code generated for k_sleep() on NRF51 target boards. Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com> Change-Id: I9d42d54cd9a50e8150c10ce6715af7ca2f5cfe51 |
||
Vincenzo Frascino
|
fc1071d91e |
tests/kernel: verify RUNTIME_NMI at runtime
This patch introduces a test that verifies the behavior of CONFIG_RUNTIME_NMI at runtime. The test is meant to be only for ARM Cortex-M targets. Change-Id: I805a88e67fe47d396ac9e29e1275e5452a4b8a36 Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org> |
||
Ramesh Thomas
|
aae7ac0765 |
quark_se_ss: power_mgmt: Remove redundant int trigger setting
Zephyr is always setting irqs to be level triggered as required by the core. It is unnecessary to set it to level again while entering sleep states. Change-Id: I10f919d619af2e1ab05dc85a67766929b6ae9402 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com> |
||
Mahavir Jain
|
45f2ef653d |
work_q: delayed work cancel returns incorrect status
If delayed work is already submitted or completed, then subsequent cancel should return -EINVAL as return status. Fixes ZEP-1373. Change-Id: I16bbacca7e31a5a5d8e5a89e729d70302ada6223 Signed-off-by: Mahavir Jain <mjain@marvell.com> |
||
Jukka Rissanen
|
09e6b95adf |
Merge net branch into master
Main changes: - Native IP stack used instead of uIP based stack. - Legacy uIP stack is removed. ---------------------------------------------------------------- Anas Nashif (3): net: do not depend on ARCH tests: net: remove qemu.pid file and bad filters test: net: remove nano/micro tests Andrei Emeltchenko (39): net: Fix documentation errors in net_if header file ieee802154_cc2520: Fix byte order swap for long address net: Fix distant address setting net: Fix link address length calculation net: Fix creating neighbour without l2addr net: Fix handling ra_neighbor net: Fix handling onlink prefix net: cc2520: Fix setting proper IEEE 802.15.4 address net: Do not source contiki headers always ieee802154_cc2520: Correct debug output net: Add TI_CC2520 RAW driver net: Add L2 RAW channel hidden option wpanusb: Export ieee802.14.5 over USB ieee802154_cc2520: Fix compiler warning with strict aliasing ieee802154: Add log domain for CC2520 driver ieee802154: Correct error logging for cc2520 driver wpanusb: Add wpan radio protocol specification wpan_serial: Implement 802.15.4 serial radio protocol wpanusb: Improve debug for wpanusb net: samples: Add samples overview for wpanusb and wpan_serial wpanusb: Correct definition names wpanusb: Add wpanusb syslog domain wpanusb: Decrease amount of debugs wpan_serial: Update README wpan_serial: hexdump and interrupt debug to VERBOSE_DEBUG wpanusb: Update wpan protocol document wpan_serial: Correct SLIP buffer size drivers: cc2520: Remove double space in debug and errors wpanusb: Allow retransmission when cc2520 transmit not done wpanusb: Send zero sequence for unsuccessful transmit wpanusb: Use INFO default logging level wpanusb: Use unified API for the wpanusb sample wpan_serial: Use unified API for wpan_serial sample wpan_serial: Correct file description wpanusb: Include shell to the sample drivers: ieee802154: cc2520: Flush RX fifo earlier when stopping drivers: ieee802154: cc2520: Log errors when starting/stopping cc2520 wpanusb: Log INF about upper layer start/stop drivers: cc2520: Inform about missing SPI device Andy Ross (19): net: tcp: Remove dead/stubbed struct elements in struct net_tcp net: tcp: Fix race in net_tcp allocation net: tcp: Clean up TCP sequence checking net: tcp: Remove broken receive window computation net: tcp: Fix connection port matching net: tcp: Correctly store the temporary connection handle net: tcp: Fix flag goof in net_tcp_alloc() net: tcp: Properly ACK received TCP data net: Refactor net_context_recv() to separate UDP and sync handling net: Wire up TCP receive callbacks net: Remove net_tcp_prepare_data_segment net: Set REMOTE_ADDR_SET flag on new TCP connection contexts net: tcp: prepare_segment needs to work with pre-allocated buffers net: tcp: Fix uninitialized garbage in TCP urgent field net: tcp: TCP transmission net: tcp: Refactor "finalize" step from "prepare" net: tcp: Rework ACK behavior net: tcp: Handle received ACK packets correctly net: tcp: Add retry handling Flavio Santes (19): net: Improve net_context_connect documentation net: Fix tests/net/nbuf/Makefile net: Fix Kconfig indentation issue iot/dns: Remove legacy DNS client sample code iot/dns: Add DNS Client support for Zephyr iot/dns: Add DNS Client sample app iot/dns: Add '+' operator iot/dns: Add support for Arduino 101 and ENC28J60 iot/dns: Improve support for additional boards iot/dns: Update README files iot: Add MQTT v3.1.1 packet handling support for Zephyr iot/mqtt: Add test app for the MQTT packet handling routines net/eth: Fix priority value for the ENC28j60 Ethernet driver iot/mqtt: Add support for frdm_k64f iot/mqtt: Add the MQTT high-level API net: Remove legacy IoT sample applications iot/dns: Update sample client application iot: Add HTTP support for Zephyr iot/http: Add test-case for HTTP header fields Jaakko Hannikainen (1): net: Add net_addr_pton() Johan Hedberg (1): net: buf: Fix minor typo in documentation Juan Manuel Cruz (8): net: Fixes the network interface naming macro net: arp: Fix issue with compiler optimization on Quark SE x86 enc28j60: The MAX_BUFFER_LENGTH is now declared in header. enc28j60: Fixes an issue reading/writing from spi enc28j60: Fixes a reception issue for big frames. enc28j60: Improves interface with native IP stack enc28j60: Fixes an issue with concurrent tx and rx ethernet: enc28j60: fixes an issue caused during an internal rebase. Juan Manuel Cruz Alcaraz (2): enc28j60: Adapt driver for native IP stack enc28j60: Modify echo server and client samples to support enc28j60 Jukka Rissanen (439): net: Initial commit for the new IP stack net: Add defines for various IP protocol header lengths net: Add ntohl() and related macros net: Use same prefix in new IP stack Kconfig net: Compile new stack if enabled net: apps: Create a skeleton echo-server for new IP stack net: Add network address information to interface net: Add multicast address to network interface net: Add IPv6 prefixes to network interface net: Add TX fifo to network interface net: Refactored RX fiber init net: Add function that feeds data to RX fifo net: Compile IPv6 and IPv4 address conditionally net: Add nbuf buffer API slip: Add driver for host to qemu connectivity net: Fix compilation error in net_if.h net: Add net_analyze_stack() macro net: Add Kconfig option for compiling IPv6 support net: Execute net_init() automatically net: Add net_if_get_by_link_addr() util function net: Add Kconfig option for compiling IPv4 support net: Add send() to net_if API net: Start to use logging macros from sys_log.h net: Refactor debug printing in net_if net: Enable compilation of net_if.c net: tests: Temporarily remove nbuf unit test net: Start to receive network packets net: Add net_context to compilation net: Add statistics gathering support net: Add debug function to print MAC address net: Add debug function to print IP address net: tests: Add unit test for IP and MAC address printing net: Receive IPv6 packet net: Drop received source mcast IPv6 packets net: Add utility func to return IP address type as a string net: Add utility functions to check IPv6 addresses net: Utilities to set and lookup interface IPv6 addresses net: tests: Add IPv6 address manipulation unit tests net: Add IPv4 addresses to network interface net: tests: Add IPv4 address unit tests net: IPv6 address utility funcs for network interface net: tests: Add more IPv6 address getters unit tests net: Network interface code compiles ok for IPv4 and IPv6 net: Receive IPv4 packet net: Added API documentation to IP address check functions net: Add ICMP protocol header struct net: Move IP address print funcs to separate file net: Network interface sets default IPv6 hop limit net: Renamed network data receive function net: Add net_send_data() that sends data to network net: Network interface needs own TX fiber stack net: Add net_hexdump() utility to print network data net: Add IP packet checksum calculation utilities net: Add debugging option for network utilities net: tests: Unit tests for network utilities net: Add ICMPv6 handler net: Add unit tests for ICMPv6 handler net: Process received ICMPv6 messages net: Process received ICMPv4 messages net: Add utility function to return default network interface net: tests: Tweak the IP address test to use new net_if API net: Do not remove fragments if main buffer is not removed net: Add utility function returning IPv4 broadcast address net: net_ipaddr_copy() macro was too fragile net: Add macro to compare two IPv4 addresses net: Add utils to set IPv4 netmask and gateway to net_if net: Add util to check if IPv4 address is part of a subnet net: Add capabilities flag to net_if API net: tests: Add tests for IPv4 netmask, gateway and subnet compare net: Added IPv4 ARP support net: tests: Unit tests for the IPv4 ARP code slip: Support TAP functionality net: Setting preferred status to manually added IPv4 address net: Only accept ARP reply if we requested data net: Make echo-server to use documentation IPv4 addresses net: Use net_nbuf_ll() to get into arp header net: tests: Fixed the ARP test net: Clarified the debug print about packet length net: IP checksum calculation should ignore ll header net: ICMPv4 checksum calculation fixed net: tests: Additional tests for ICMPv4 checksum verification net: Handle ARP messages net: Setting static IP addresses for echo-server net: Add NET_ASSERT() macro net: Moved ARP helper macro to arp.h net: Make sure that RX is started before TX net: Print available DATA buffers during nbuf alloc net: Add struct to store link layer address net: Use const for static and pre-defined IPv6 addresses net: Changing IPv4 address compare to a function net: Add IPv6 utils for address manipulation net: Add IPv6 address network interface utils net: Add a neighbor cache needed in IPv6 net: tests: Add unit tests for neighbor cache handling net: The IP protocol type needs to be set in L2 layer net: No need to do ARP for IPv6 network packet net: Buffer leak if net_if_send_data() returns NET_DROP net: Refactor various network init functions net: Process ICMPv6 packets only if IPv6 is enabled net: Use debugging net_buf unref function net: The NET_DEBUG must not be set in header file net: Do not overwrite SYS_LOG_DOMAIN net: Network stack analyzer uses now the SYS_LOG sub-system net: Print statistics using SYS_LOG net: Depending on debug flags the stdio.h is not included net: Fix arp.h so that net_arp_init() is found net: tests: Fix unit test for ARP net: Changed the IP and ll address debug prints net: tests: Fix unit test for IP addresses net: tests: Fix unit test for IP utils net: Make sure that either IPv4 or IPv6 gets selected net: Change how the L2 header space is reserved in net_buf net: Re-send ARP when needed net: Add ethernet address helpers net: Set the l2 src/dst addresses in nbuf net: Set the ll src and dst addresses in ethernet l2 driver net: Set IP protocol type when sending ethernet packet net: Make sure ethernet l2 sets src and dst addresses net: Write ethernet header in pdu when using slip and tap slip: Fix the debug print net: Add link layer reserve information to l2 driver net: Initializing the ll src and dst addresses net: ARP reply did not set the address family net: Calling net_buf_put() instead of nano_fifo_put() net: Add debug support to ethernet L2 driver net: Add utility func to return eth broadcast addr net: Both TX and RX fibers allow other fibers to run net: Add more debugging to arp.c net: IPv4 protocol type was not set to sent ARP packet net: Reserve eth ll header len in L2 ethernet driver net: Add debug checks when sending data in TX fiber net: Add more debug print in ethernet RX side net: Ethernet L2 TX side needs to setup fragments net: Add more checks when allocating nbuf net: Refactored ARP packet header handling net: ARP unit test needs to be run from fiber net: Pointer to a ethernet header was incorrectly set net: Set multicast dst address in ethernet if missing net: Remove extra debug print in ethernet L2 driver slip: Network stack needs to be up before sending data to it net: Start the network stack after device drivers slip: Do not try to unref a null pointer slip: Setup fragments properly if MTU is bigger than frag size net: Initial IPv6 neighbor discovery support net: Initial router solicitation support net: Initial router advertisement support net: Make IPv6 ND optional net: Add net_nbuf_copy() utility function net: tests: Add unit tests for net_nbuf_copy() net: Add TTL IPv4 option net: Make some IPv6 utility functions to use const addr net: Add IPv6 minimum MTU value net: Add support for ICMPv6 error message net: Add support for ICMPv4 error message net: Generic connection handler for UDP and TCP net: Initial UDP support net: Catch UDP network traffic net: tests: Unit tests for UDP handler net: tests: Fix ARP test so that it will not crash net: Utility function to compact net_buf fragments net: Utility that inserts free space to the fragment list net: tests: Unit tests for net_nbuf_push() net: tests: Turning off IPv6 for ARP tests net: Refactored IPv6 DAD and ND activation net: Fix compilation when IPv6 is disabled net: tests: ICMPv6 was missing random number config net: tests: Fix IP address test so that it will not crash net: tests: Fix project file for IP address tests net: Refactor nbuf.h and nbuf.c net: Debugging function to print fragment chain information net: Do not include anything from net/ip directory net: IP address lookup functions return interface net: Utility to get net_if according to index value net: tests: udp: Print debug info only when activated net: Address family needs to be set for multicast address net: Making IP address const in utility func net: tests: UDP unit test had incorrect ll address length net: net_hexdump_frags() is only available when debugging net: Swap ll addresses when handling ICMPv6 Echo-Request net: UDP checksum calculator net: Add sockaddr struct net: Add helpers for getting protocol specific sockaddr net: Convert network connection to use sockaddr net: Add net_conn pointer to callback net: Increasing the default IPv6 unicast addr count net: Add user space API to net_context net: Add helper to create IPv6 packet net: Add helper to create IPv4 packet net: Utility function to append UDP packet into net_buf net: Create IPv4, IPv6 and UDP packets when needed net: tests: Unit tests for user space socket API net: Set the protocol family and interface for net_buf slip: Do not send ethernet header if MTU is large enough net: Fix debug prints in net conn manager net: Neighbor cache entry was not properly init net: Do IPv6 ND if LL address is not known when sending net: Resolve LL address for IPv6 packet in ethernet L2 driver net: Use proper ll header length when sending IPv6 NS net: Add more debugging to nbuf net: Set reserve, context and iface properly in nbuf net: apps: Fix echo-server to use the new user API net: Rename ip_protocol to net_ip_protocol net: Check IPv6 NS, NA and RA messages for corruption net: Add token to nbuf net: Call send callback in net_context properly net: Call net_context send callback when packet is sent net: Check packet sending status correctly in arp.c net: nbuf variables needs clearing when allocating nbuf net: Update UDP sent packet statistics net: No need to swap ll address in IPv6 module net: IPv6 neighbor was not properly added to cache net: Ethernet driver needs to set ll address net: Return NET_CONTINUE in L2 ethernet driver in send() net: RX fiber needs bigger stack net: Change srctree to ZEPHYR_BASE in Makefiles net: Check ICMPv6 options length correctly net: Sent NS was two bytes too long net: Fix the debug prints in echo-server net: Fix compilation if IPv4 is disabled net: Add ll address checker function net: Discard ethernet frame if it is not for us net: Ethernet mac address length was incorrectly set net: Fix compilation warning net: Print buffer usage after receiving or sending data net: Utility helper to access IPv6 ND cache data net: Timeout a pending NS net: IPv6 ND fixes net: Set initial neighbor value when IPv6 NS is received net: Add debug helper for neigh tables net: Add more debugging prints in IPv6 ND handling net: Add network iface to neighbor creation call net: Add neighbor free function to IPv6 cache net: Add IPv6 ND reachability support net: Send available pending data after receiving IPv6 NA net: Use target address in IPv6 NS to lookup neighbor net: Add support for IPv6 prefix lifetime net: Neighbor cache table was incorrectly accessed net: Do not access IPv6 neighbor cache directly net: Trickle algorithm implementation net: tests: Test Trickle algorithm net: samples: Fix the location of net-tools project files net: Clarify the CONFIG_NET_TESTING setting net: samples: Fix slip config for echo-server and echo-client net: samples: Fix the echo-server IPv6 address net: tests: Enable unit tests for the new IP stack net: TODO file for networking net: Add more items to TODO net: Do not try to use net_if.h in legacy uIP stack net: tests: Fix printf modifiers in new IP stack unit tests net: Add network address length to user API net: Fix remaining debug option naming issues net: Add DEBUG Kconfig option for UDP net: Fix the statistics compilation slip: Fix debug printing net: Align net_if struct to 32-byte boundary net: Add net_nbuf_pull function net: tests: Add unit test for net_nbuf_pull functionality net: Add TCP protocol header definition net: Add TCP buffer access func to nbuf net: Context accept cb needs to return failure code net: Add utility func for calculating IPv4 checksum net: Calculate IPv4 checksum when sending IPv4 packet net: Initial architecture documentation net: User connectivity API documentation net: Fix function prototype documentation in neighbor header net: Add function to return neighbor by the index net: Added a define for unused bytes length in ICMPv6 header net: Fix reachable timer accessing NULL pointer net: Add more debugging prints to neighbor cache net: Add ref counting debugging to neighbor cache net: Add IPv6 utility func to create IPv6 packet net: Generic route handling net: tests: Add tests for route management API net: Remove nbr_data section as it is useless net: tests: Increase the timeout of trickle tests net: tests: Add initial set of IPv6 tests net: Íncorrectly named function in net_if.c net: Add be16 and be32 read helpers to nbuf.h net: Make net_nbuf_read() to return NULL if buf is NULL net: Allocate next fragment in net_nbuf_write() if needed net: Make sure buf is correct one in net_nbuf_write() net: Optimize net_nbuf_write() when handling last frag net: sample: Make sure echo-client is compiled by sanitycheck net: sample: echo-client ported to use the new IP stack net: IPv6 address should be const in net_if_get_ll_reserve net: Add more nbuf read/write helpers net: Re-order fields in net_nbuf struct net: Refactor nbuf data fragment detection net: uip: Fix the net_context.h content for legacy stack net: l2: Assert if frag cannot hold ethernet header eth: enc28j60_legacy: Make driver config_info structure const. net: Add helpers to get sockaddr pointer net: tcp: Initial TCP functionality net: tests: Add TCP unit tests iot/zoap: Temporarily disable block size transfer test net: Adapt to new behavior of net_buf_frag_add v2 slip: Fix hexdump print net: ieee802154: The lqi value was removed incorrectly tests: net: 6lo: Make sure no error in microkernel net: ieee802154: Check data frame start correctly net: ieee802154: MAC address needs to be stored in big endian format net: ieee802154: Transform MAC between big and little endian net: Make DEBUG config option naming consistent net: Add support for embedding extra data to routing entries net: Add utility function to routing to return neighbor entry net: Make neighbor add function available net: Add API to set the IPv6 reachable timer net: Moved IPv6 neighbor information struct to ipv6.h file net: Add support for link cb in net_if net: Call context send cb when packet has been really sent net: Add utility function to return neighbor by index net: route: Add function to remove route by nexthop net: Add func that checks if address is global multicast one net: Add multicast route API support net: IPv6 neighbor debug prints enhanced net: Add function to traverse through IPv6 routes net: Neighbor cache did not link ll address properly net: Get IPv6 neighbor by using index net: Add utility to go through all network interfaces net: Add helper to check if the IPv6 address is part out subnet net: Add helper to find default IPv6 router net: Add IPv6 extension header type values to net_ip.h net: Add helpers to get network interface IPv6 addresses net: rpl: Initial commit net: rpl: MRH Objective Function support net: rpl: Objective Function Zero support net: tests: Unit tests for RPL net: Add IPv6 routing support net: Add more ICMPv6 option definitions net: nbuf: Add function to add stuff to IPv6 extension map net: Add IPv6 extension option defines net: Add extra parameter to ICMPv6 error API net: Add HBHO IPv6 extension handling support net: tests: Send IPv6 hop-by-hop option to IP stack net: rpl: Add IPv6 RPL option handling net: Fix IPv6 address debug print net: Create a separate buffer when sending IPv6 NA net: Try to send IPv6 packet even if default route is missing net: Network stack analyzer re-factored net: Add helper to return network buffer information net: Add util to send ICMPv6 Echo-Request packet net: Add network utilities shell support net: apps: Set the IPv6 source address preferred for echo-server net: Fix net_nbuf_write() documentation net: Clarified the net_send_data() function return value net: Add util that checks if the IPv4 address is multicast one net: Do not send ICMP error if dst address is multicast one net: apps: Set the IPv6 source address preferred for echo-client net: Update ll reserve in net_context_sendto() net: Add util to return IPv4 ANY address net: Allow binding to any IP address net: ipv6: Move unspecified address getter to ipv6.c net: ipv4: Move broadcast address getter to ipv4.c net: nbuf: Fix UDP and TCP start of the packet calculation net: Replace deprecated kernel init level net: nbuf: Add more debugging if ref count is wrong net: Add more debugging when receiving invalid packet samples: net: Bind any IPv6 address by default in echo-server samples: net: Fix echo-server UDP packet sending net: Remember IPv6 extension header len when packet is received net: ipv6: Validity time is already in host byte order net: Add util to update IPv6 address validity time net: ipv6: Fix network interface address lifetime handling net: ipv6: Print info about unknown RA options net: ipv6: RA messages were incorrectly handled net: Add util to update router lifetime net: Add util to remove an IPv6 router from the network interface net: Fix IPv6 router lifetime handling samples: net: echo apps: Do not set preferred IPv6 address net: Replacing TICKS_UNLIMITED by K_FOREVER net: shell: Fix hostname parsing for ping command net: Add util to check if IPv4 address is a loopback one net: Add util to check if IPv4 address is unspecified net: ipv4: Add utils to create IPv4 network packet net: Add IPv4 address string max length net: Add util to send IPv4 ICMP Echo Request packet net: Check loopback and unspecified address in sending net: Fix net_addr_pton() IPv4 address parsing net: shell: Add IPv4 ping support tests: buf: Do not depend on IP stack net: Avoid compiler warning when compiled for Arduino 101 ARC net: rpl: Add RPL option to IPv6 HBHO extension header tests: net: Change the tag of network tests to net net: Fix unknown func call when getting stack vars net: Use alignment macros when copying IP address ethernet: ksdk: Use unified kernel API net: Declare a macro to define stacks used by networking net: shell: Add command to print stack usage info net: Move stack related Kconfig options to Kconfig.stack net: rpl: Increase the RX stack usage net: mgmt: Use macro to define the stack drivers: ieee802154: RX stack debug enhancements net: dhcpv4: Fix debug output samples: net: Do not use static address in DHPCv4 samples: net: Bind to any IPv4 address by default net: Add support for setting up sample apps IP addresses samples: net: echo apps can use IP address set in config file net: udp: Add util to create UDP packet net: Fix menuconfig for setting up samples IP addresses samples: net: Fix echo-server compilation error net: rpl: Use unified kernel API net: Increase the default network connection count net: Add initial IP stack offloading support net: Add util to loop all network contexts net: Local address family was not set in net_context net: shell: Add command to view active network contexts net: tcp: Add util to loop through all TCP connections net: shell: Print info about active TCP connections net: ICMPv6 Echo-Reply message was incorrectly setup ethernet: Add driver initialization priority to Kconfig net: Remove legacy Contiki based uIP stack net: Make native IP stack the default net: net_send_data() should not free the net_buf net: Check duplicate IPv6 address when adding address net: Check duplicate IPv6 prefix when adding it net: Check duplicate IPv4 address when adding address net: Drop IPv4 and IPv6 packet if size is wrong net: ipv6: Check extension header No Next Header net: Fix stack info collector in net shell net: arp: Add ethernet header if it is missing net: ipv6: Fix debug print when DAD fails net: ipv6: Make NA sending function public net: if: Print IPv6 prefix lifetime timeout value tests: net: ipv6: Fix prefix test tests: net: ipv6: Wrong IP address was added to cache tests: net: ipv6: Add test for neighbor advertisement net: todo: Removed already done tasks samples: net: Convert the echo apps config files to native stack samples: net: Remove prj.mdef file from echo sample apps samples: net: Use board specific conf file for echo apps samples: net: Use qemu_x86 config file by default for echo apps samples: net: Do not quit echo-server if sending fails net: icmpv6: Do not set destination ll address samples: zperf: Port to native IP stack net: nbuf: Provide metadata info for sent TCP buf net: Moved net/ to subsys/net net: tcp: Fixing the constness of TCP state debug string MAINTAINERS: Fix the location of IP stack doc: net: Fix the path and description of the IP stack Leandro Pereira (46): net: tcp: Use macros from byteorder.h to obtain ints net: tcp: Change TCP state to listen on call to net_context_listen() net: tcp: Return -EOPNOTSUPP for non-TCP in net_context_listen() net: tcp: Ensure iface set in LISTEN state on SYN_RCVD state net: tcp: Drop early when accepting without accept callback net: tcp: Put new_connection on handshake failure net: tcp: Master socket should never go to ESTABLISHED state net: tcp: Correctly calculate SYN_ACK ack# net: tcp: Correctly set remote address when accepting connections net: Do not dereference context before asserting net: ipv6: net_ipv6_create() should know about TCP net: tcp: Print TCP flags as a string rather than individual bits net: tcp: Add better type safety for connection handlers net: Print more debug messages when processing corrupted buffers net: Fix connection-in-use test while unregistering connection net: tcp: Provide NET_TCP_FLAGS macro net: tcp: Implement passive close (FIN packets in ESTABLISHED state) net: tcp: On error, dispose of net_buf when sending control segment net: tcp: Implement part of active connection close net: Allow changing the callback of a connection net: tcp: Implement the rest of active close machinery net: tcp: Reduce some of the boilerplate to send control segments net: Implement net_context_send() in function of net_context_sendto() net: tcp: Allow sending packets using send() and sendto() samples: net: Finish TCP support in echo server net: tcp: Disallow sending messages to unconnected contexts net: udp: Remove protocol check in (private) net_udp_append() net: Fix compile warnings when building with UDP disabled net: tcp: Send a FIN|ACK when transitioning from ESTABLISHED->LAST_ACK net: tcp: No need to #if defined(TCP) inside TCP callback net: tcp: Validate state transitions for debugging purposes net: Remove duplicated return statement net: tcp: Handshake ACK timeout should transition to LISTEN net: tcp: Print all the reasons a RST segment is sent net: tcp: Fix state transitions during handshake net: tcp: Be more careful before dereferencing pointer in accept() net: tcp: Print pointer to state when transitioning net: tcp: Revisit implementation of passive close net: tcp: Calculate ack# correctly when receiving data net: tcp: While disposing connection, properly check net_tcp pointer util: Add PART_OF_ARRAY() to check if pointer points to array element net: Use PART_OF_ARRAY() macro net: tcp: Send FIN packet when transitioning to LAST_ACK util: Ensure ARRAY_SIZE() will only take arrays net: tcp: Add more debugging messages when disposing connections net: tcp: Check for NET_TCP_IS_SHUTDOWN flag when sending/receiving Luiz Augusto von Dentz (9): net: Add initial Bluetooth support using native IP stack net: Add TODO item for Bluetooth net: Kconfig: Add NET_NBUF_USER_DATA_SIZE net: Adapt to new behavior of net_buf_frag_add net: l2: Fix warning when building Bluetooth driver net: l2: Enable security for bluetooth driver net: l2: Make NET_DEBUG_L2_BLUETOOTH depend on NET_L2_BLUETOOTH net: bt: Print data length for both recv and send net: bt: Remove comments about nbuf extra references Mahavir Jain (4): sample: dhcpv4_client: use unified kernel APIs net: shell: Fix warning in case CONFIG_NET_IPv6 is not enabled samples: net: Use unified kernel interface for sem/queue declaration ethernet: enc28j60: use unified kernel interface Marcus Shawcroft (5): net: dhcpv4: Implement XID net: dhcpv4: Add received message debug. net: dhcpv4: Issue an NET_INFO when dhcpv4 allocates an IP. net: dhcpv4: Adjust debug diagnostic wording. net: dhcpv4: Adjust DHCPv4 debug config wording. Paul Sokolovsky (5): net: samples: Fix the echo-server IPv4 address net: Make net_context_get_ip_proto check correct flag. net: apps: Fix echo-server where IPv6 TCP context was used instead of IPv4 eth: ksdk: Update driver for native IP stack. eth: ksdk: Protect Ethernet frame buffer operations with IRQ lock. Piotr Mienkowski (1): net: Definitions for IEEE 802.3, Section 2 MII compatible PHY transceivers Ravi kumar Veeramally (65): net: Fix trivial comment errors in header files net: Add UDP header definition net: Use shorter alias for __packed attribute net: Add utility to remove ipv4 address from iface net: Add a utility to hexdump all fragments net: Clear ipv6 addr parameter on create iid net: Add support for 802.15.4 short address for iid creation net: Add utility to verify given addr based on ll net: Add initial 6lowpan IPHC compression support. net: tests: Add unit tests for 6lowpan functionality net: Fix typo and alignment in 6lo net: tests: Fix 6lo tests net: Change 6lo API returned parameter net: Add 6lowpan without compression header support net: Fix wrong UDP length calc in 6lo compression net: tests: Add unit tests for 6lo IPv6 dispatch net: Add support for IEEE 802.15.4 fragmentation net: Integrate 6lo and 802.15.4 fragmentation net: Add support for IEEE 802.15.4 re-assembly net: tests: Add fragmentation unit tests for 802.15.4 net: Change NET6LO_ defines to NET_6LO net: tests: Extented 6lo unit tests net: Add TODO items for 6LoWPAN net: tests: Remove broadcast and multicast tests from ARP net: Fix slip multipackets reception net: Fix arp/ethernet broadcast and multcast addr scenario net: Fix IPv4 packet reception net: tests: Add include dir only when specific options enabled net: Fix net address state net: Add DHCPv4 client support net: tests: Add DHCPv4 client unit tests net: apps: Add DHCPv4 client sample application net: Add nbuf APIs to read/write across multiple fragments net: Add unit tests for new nbuf API's net: Adopt new nbuf API's to dhcpv4 message handlers. net: Remove multiple declarations of net_ipv6_start_rs net: Adopt new nbuf API's to RA message handlers. net: tests: Add RA message unit tests. net: Adopt net_nbuf_read_be32() api to dhcpv4 handlers net: Adopt net_nbuf_read_u8 to dhcpv4 handlers net: Fix buffer leak in 6lowpan compression net: Fix buffer leak in ieee802154 fragmentation net: tests: Decrease the required buffers count net: Remove assert and return false in net_nbuf_write net: Fix ND RA length net: Add support for 6CO net: tests: Add sample 6CO context data to IPv6 RA test net: Add more inline helper functions in 6lowpan net: Add support for 6lo context based compression net: tests: Add 6lo context based unit tests net: Calculate UDP checksum in 6lowpan uncompression net: Fix net_nbuf_read corner cases net: Update TODO for DHCPv4 net: Fix net_nbuf_write buf ref count net: Fix slip compilation issue with debug option enabled net: Fix ARP requests error net: Rename net_nbuf_write to net_nbuf_append net: Fix typos in nbuf apis net: Implement net_nbuf_write net: Implement net_nbuf_insert net: tests: Add unit tests for net_nbuf_write/insert utilites net: Add IPv4 related events net: Notify IPv4 related events on interface net: tests: Update DHCPv4 test results based on events net: ieee802154: Add offset based reassembly feature Ruslan Mstoi (1): samples: net: enable debugging with qemu target Sergio Rodriguez (7): samples/mbedtls_dtlsclient: mbedTLS sample DTLS client app. enc28j60: Fixes change to proper register bank samples/mbedtls_dtlsclient: mbedTLS sample DTLS client app on Arduino 101. samples/mbedtls_dtlsclient: mbedTLS sample DTLS compile on unified kernel. samples/mbedtls_dtlsclient: Removing unnecessary files samples/mbedtls_dtlsclient: Using unified kernel thread spawn API wpanusb: Fix include path Tomasz Bursztyka (203): net: Add generic network interface header net: Use generic wrapper for semaphore give operation net: Include toolchain related header for aliases net: debug: Indent properly some config options. net: The core initialize ARP layer relevantly net: Shorten IPv4/6 config options slip: Fix compiler warnings net: Add a helper to queue a buffer in a net_if instance net: Make net_core.h include the least amount of necessary header net: Add an L2 layer net: Re-factor Kconfig and move ARP to a better location net: Removing capabilities from net_if api net: Tiny comment fix net: Save some bytes on net_if logic net: Add comment explaining net_core's verdict values net: Kconfig: Refactor Kconfig menus for better clarity sanitycheck: Recognize native IP stack specific sections samples: Fix echo_server for native IP stack net: Refine Kconfig to put NET_BUF appart net: Moving header files to include/net/yaip net: Let's use inline function for type checking for net_nbuf net: Cleanup net_if's documentation net: Fix net_ip.h documentation net: Simplify IPV<4/6> config management in net_if net: Fix dedicated IPv4 function for net_if net: Add IPv6 ND statistics when relevant net: Fix IPv6 NS packet size check net: Add a function to retrieve a neigh from an IPv6 address net: l2 layer reserve size might need extra parameter net: Add documentation to net_l2 header file net: Add some debug message on net_if net: Add a function to lookup for an iface from a device net: Fix TX fiber on net_if net: L2 might need private data per-interface net: Add new IEEE 802.15.4 Radio API for device drivers net: Add preliminary IEEE 802.15.4 L2 driver net: Adding ALOHA radio protocol to IEEE 802.15.4 L2 driver net: Add support for the IEEE 802.15.4 ORFD tests: Add grounds for IEEE 802.15.4 stack tests. net: ieee802154: Support ACK replies tests: net: Add a IEEE 802.15.4 ACK replies test drivers: cc2520: Make current driver for legacy stack only drivers: cc2520: Add a new IP stack ready adaptation of CC2520 driver boards: quark_se_devboard: Build cc2520 if new IEEE 802.15.4 driver is in net: Sample code to play with ieee 802.15.4 stack net: SYS_INIT() routines are never ran twice net: ieee802154: Logging header should be loaded first samples: ieee802154: Debugging needs new Kconfig option net: Giving uncompressed buffer to 6lo is not an error net: Follow file naming in ieee802154 l2 stack net: Built IEEE 802.15.4 fragmentation logic if requested net: Handle ll part in 6lo logic when relevant net: Add debug messages when dropping packets net: Add debug print on IPv6 preliminary check net: 6lo uncompression should continue to proceed after src addr net: 6lo: Grab uncompressed header type relevantly net: Add more debugging messages to 6lo net: ieee802154: Handle plain/compressed ll addr net: Integrate 6lo compression support in IEEE 802.15.4 L2 stack net: Add packet display in ieee802154 l2 stack samples: Build ieee802154 sample with 6lo support drivers: cc2520: Raise Rx stack size net: Add TODO items for L2 and 802.15.4 sanitycheck: Add support for section net_l2_data net: drivers: ieee802154: sys_log is needed on legacy driver net: Add a macro to create specific net if instances net: Legacy IP stack Kconfig has nothing to do with new stack net: Move IPv6 related Kconfig options to its own file net: Move IPv4 related Kconfig options to its own file net: Normalize Kconfig and fix it net: Split debug Kconfig options from legacy to new stack net: drivers: cc2520 ieee802154 drivers select relevant options net: drivers: Normalize ieee802154 Kconfig net: drivers: Add a fake ieee802154 radio driver for qemu samples: net: Moving the current ieee802154 sample samples: net: Qemu make utilities update net: samples: Add a simple Qemu sample for testing off-line 802.15.4 net: ieee802154: Add basic support for IEEE 802.15.4e on FCF net: ieee802154: Normalize Kconfig net: Centralize generic IEEE 802.15.4 radio utility functions net: ieee802154: Add CSMA-CA non slotted radio protocol support net: ieee802154: Endianess order is reversed on MAC net: Add IEEE 802.15.4 Beacon frame validation support net: tests: Add a simple IEEE 802.15.4 Beacon frame test net: ieee802154: Auto ACK and CRC are always on samples: quark_se_devboard has been renamed to quark_se_c1000_devboard net: cc2520: Let's provide ll addr in LE already net: Add network management API tests: net: Add a basic network management API test net: Add support for event handling on network management API net: Add debugging to network management event part tests: net: Add net management event sender/receiver tests net: Normalizing net_mgmt API names net: mgmt: Add some macro helpers for filling in the bit field net: Add network management event code for IPv6 net: net_if: Notify about IPv6 address related changes tests: Add network core event tests drivers: cc2520: Fix 80 chars lenght limit net: ieee802154: End of buffer contains LQI drivers: cc2520: Fix LQI computation and generalize it net: events: Fix a mix up between code and command net: ethernet: Drop the packet early when relevant net: ethernet: Set ll_reserve only when ready net: Differentiate IPv6 event command and final event net: ethernet: Update the data pointer according to ll reserve net: nbuf: Make sure ll_reserve is not holding previous value net: drivers: SLIP should not reserve anything while receiving net: drivers: Slip can get the MTU set on it's interface net: driver: SLIP does not need to store ll reserve at any time net: drivers: slip: Let's cleanup a bit for better readability net: Remove unused net sections net: Renaming net_l2_init sections to net_l2 drivers: ieee802154: cc2520: do not recalibrate rx after tx net: mgmt: Define request handlers to avoid build warning net: mgmt: Fix include recursion loop net: l2: ieee802154: Fix radio utils comment net: ieee802154: Optimizing how dst addr is validated in beacons net: ieee802154: Optimize context structure usage net: ieee802154: Refactor how address fields are generated drivers: ieee802154: Make CC2520 ready to tx only one fragment drivers: ieee802154: Make uart pipe driver tx one fragment only tests: ieee802154: Make the test ready to handle multi fragments buffer net: ieee802154: Refactor data frame function signature net: ieee802154: L2 radio drivers should handle multi-fragment buffers net: ieee802154: Make pkt_hexdump ready to handle multi-fragment buffer net: ieee802154: Generate 802.15.4 data frame for each data frag net: ieee802154: Fix minor style issues in fragmentation part net: ieee802154: Let's update fragmentation tag on relevant buffers net: ieee802154: Reverse 6lo fragmentation verdict net: ieee802154: Improve 6lo frag reassemble API net: ieee802154: Integrate 6lo fragmentation reassembly net: ieee802154: Integrate 6lo fragmentation when sending tests: net: Multiple test will go inside ieee802154 tests: net: Moving IEEE 802.15.4 fragmentation test in proper place net: ieee802154: Reindent Kconfig help as they are mandated to be net: ieee802154: Add RFD feature level choice net: ieee802154: Add support for requesting ACK on packets net: ieee802154: Add MAC command frames structures net: ieee802154: Add support for parsing MAC command frames net: ieee802154: Add the capability to create MAC command frames samples: ieee802154: Fragmentation is now supported so enabling it doc: Add a Network Management API usage document samples: ieee802154: L2 debug Kconfig option has changed net: ieee802154: Fix a small indentation issue net: ieee802154: MAC command frames needs a buffer from tx pool net: ieee802154: Limit MAC command frame generation to RFD net: ieee802154: Add debug output to radio strategy drivers net: ieee802154: Let ORFD setting ACK flag through net_mgmt net: 6lo: Make editor happy drivers: ieee802154: Fix length handling in uart-pipe drivers: ieee802154: Rework RX buffer handling in cc2520 drivers: ieee802154: Let's timeout on cc2520 tx tests: net: Unified kernel is now default and only one net: unified: Remove legacy selected Kconfig options tests: net: TCP Context needs to be listening before running accept samples: net: Add CC2520 dedicated prj.conf files for echo apps drivers: ieee802154: Fix some old left-over before multi-frag support net: ieee802154: Initiate IPv6 NS when relevant net: ieee802154: Let's ask LQI through driver API drivers: ieee802154: Implement get_lqi() relevantly net: Set nbuf user data size according to 802.15.4 MTU net: ieee802154: Create data frame after 6lo processing drivers: ieee802154: cc2520: Priority range is now 1-15 samples: net: Do not set nbuf data size on 802.15.4 samples drivers: ieee802154: Using unified kernel API net: core: Using unified kernel API net: context: Using unified kernel API net: mgmt: Using unified kernel API net: if: Using unified kernel API net: ipv6: Using unified kernel API net: l2: Using unified kernel API net: tcp: Using unified kernel API net: nbuf: Using unified kernel API net: dhcpv4: Using unified kernel API net: route/rpl: Using unified kernel API tests: net: Using unified kernel API net: trickle: Using unified kernel API samples: net: echo apps: Using unified kernel API net: context: Instead of 0 as timeout, K_NO_WAIT is better. drivers: ieee802154: Let the initialization priority be done via Kconfig net: ieee802154: Fix a double ll address swap tests: ieee802154: Fix compilation error in fragment test net: 6lo: LL content is set after 6lo compression/fragmentation net: ieee802154: Fix some debug output net: ieee802154: Fix and use pkt_hexdump relevantly samples: net: Use uart-pipe for 802154 iface in echo apps samples: net: Fix how k_sem_take is used in echo_client samples: net: Put a proper stack size for echo-client net: ieee802154: Fix current stack to completely drop CRC handling net: Raise TX stack size to 1200 bytes by default net: ieee802154: Fix wrong ifdef statement drivers: ieee802154: Set a fake MTU of 125 instead of real 127 net: ieee802154: Add debug output to 6lo fragmentation samples: net: No need of full debug output on cc2520 in echo client drivers: ieee802154: Fix cc2520 raw mode wpan_serial: Minimize debug output by default and set proper nbuf size wpanusb: Minimize debug output by default and set proper nbuf size ieee802154: cc2520: Externalize how GPIOs are configured samples: net: echo apps: Add cc2520 configuration for arduino_101 net: ieee802154: Add support for big endian drivers: ieee802154: cc2520: Let's use only symetrical tx/rx spi buffer drivers: ieee802154: cc2520: Rename RX stack Kconfig option drivers: ieee802154: cc2520: Debug cleanup Vinicius Costa Gomes (32): net: Fix listening on IPv6 ports drivers/slip: Fix warnings when TAP support is disabled tests/net: Exclude tests needing more RAM than available tests/net/nbuf: Fix wrong size to linearize() call tests/net/nbuf: Fix invalid memory access net: Disable warning about unused label net: Small simplififcation to net_nbuf_write zoap: Fix alignment of multiline function arguments iot/zoap: Add support for error 4.15 iot/zoap: Port to the native stack iot/zoap: Add helper for generating tokens samples/zoap_client: Use token generator helper net/yaip: Separate SLIP support into TAP and TUN options drivers/slip: Fix circular dependency on NET_SLIP tests/zoap: Port observer tests to the native stack tests/zoap: Fix extra unref on net_buf fragments samples/zoap_server: Fix retrieving the wrong address samples/zoap_server: Fix wrong reference count net: ipv6: Fix sending packets with invalid addresses net: ieee802154: Fix typo zoap: Add support for retrieving the underlying net_buf iot/zoap: Add support for RFC6690 link format samples/net: Add a simple demo for the link-format feature iot/zoap: Remove unnecessary cflags net: Fix compilation when DEBUG is enabled iot/zoap: Increase the range of timeouts samples/zoap_client: Using unified kernel API samples/zoap_server: Using unified kernel API samples/leds_demo: Add config for using 802.15.4 samples/leds-demo: Fix missing include file samples/leds-demo: Fix not using the LED correctly samples/leds-demo: Listen on the ANY address MAINTAINERS | 4 +- Makefile | 2 +- .../x86/quark_se_c1000_devboard/Kconfig.defconfig | 4 +- boards/x86/quark_se_c1000_devboard/Makefile | 9 - boards/x86/quark_se_c1000_devboard/board.c | 53 +- boards/x86/quark_se_c1000_devboard/board.h | 35 +- .../networking/connectivity-example-app.c | 214 ++ .../networking/ip-stack-architecture.dia | Bin 0 -> 3467 bytes .../networking/ip-stack-architecture.png | Bin 0 -> 55050 bytes .../networking/ip-stack-architecture.rst | 105 + .../networking/ip-stack-architecture.svg | 229 ++ doc/subsystems/networking/ip-stack-data-flow.dia | Bin 0 -> 3735 bytes doc/subsystems/networking/ip-stack-data-flow.png | Bin 0 -> 47931 bytes doc/subsystems/networking/ip-stack-data-flow.svg | 219 ++ .../networking/network-management-api.rst | 100 + doc/subsystems/networking/networking-api-usage.rst | 57 + doc/subsystems/networking/networking.rst | 8 +- drivers/Kconfig | 7 + drivers/Makefile | 5 +- drivers/ethernet/Kconfig | 10 + drivers/ethernet/Kconfig.enc28j60 | 11 +- drivers/ethernet/Kconfig.ksdk | 2 +- drivers/ethernet/Makefile | 6 +- drivers/ethernet/eth_dw.c | 2 +- drivers/ethernet/eth_enc28j60.c | 314 +- drivers/ethernet/eth_enc28j60_legacy.c | 644 ++++ drivers/ethernet/eth_enc28j60_priv.h | 21 +- drivers/ethernet/eth_ksdk.c | 173 +- drivers/ieee802154/Kconfig | 114 +- drivers/ieee802154/Makefile | 9 +- drivers/ieee802154/ieee802154_cc2520.c | 872 ++--- drivers/ieee802154/ieee802154_cc2520.h | 20 +- drivers/ieee802154/ieee802154_uart_pipe.c | 297 ++ .../ieee802154/ieee802154_uart_pipe.h | 27 +- drivers/slip/Kconfig | 80 + drivers/slip/Makefile | 3 + drivers/slip/slip.c | 438 +++ ext/lib/crypto/mbedtls/configs/config-threadnet.h | 1 - .../drivers/ieee802154/cc2520.h | 26 +- include/iot/dns_client.h | 184 + include/iot/http_parser.h | 325 ++ include/iot/mqtt.h | 389 ++ include/iot/mqtt_types.h | 89 + include/linker/common-ram.ld | 26 + include/linker/common-rom.ld | 7 + include/misc/util.h | 27 +- include/net/arp.h | 16 +- include/net/buf.h | 5 +- include/net/dhcpv4.h | 48 + include/net/ethernet.h | 29 + include/net/ieee802154.h | 63 + include/net/ieee802154_radio.h | 102 + include/net/ip_buf.h | 402 -- include/net/l2_buf.h | 166 - include/net/mii.h | 89 + include/net/nbuf.h | 969 ++++- include/net/net_context.h | 650 +++- include/net/net_core.h | 200 +- include/net/net_event.h | 83 + include/net/net_if.h | 1128 +++++- include/net/net_ip.h | 782 +++- include/net/net_l2.h | 104 + include/net/net_linkaddr.h | 54 + include/net/net_mgmt.h | 182 + include/net/net_socket.h | 17 - include/net/net_stats.h | 102 +- include/net/offload_ip.h | 449 +++ include/net/trickle.h | 136 + include/net/uip/net_core.h | 164 - include/net/uip/net_if.h | 163 - include/net/uip/net_ip.h | 119 - include/net/uip/net_socket.h | 135 - lib/iot/Kbuild | 5 +- lib/iot/Kconfig | 6 + lib/iot/Makefile | 12 + lib/iot/dns/Kconfig | 45 + lib/iot/dns/Makefile | 5 + lib/iot/dns/README | 22 + lib/iot/dns/dns_client.c | 424 ++ .../net/dns_client/src => lib/iot/dns}/dns_pack.c | 184 +- .../net/dns_client/src => lib/iot/dns}/dns_pack.h | 82 +- .../publisher/src/Makefile => lib/iot/http/Kconfig | 25 +- lib/iot/http/Makefile | 3 + lib/iot/http/README_http_parser | 11 + lib/iot/http/http_parser.c | 2935 ++++++++++++++ lib/iot/mqtt/Kconfig | 53 + lib/iot/mqtt/Makefile | 2 + lib/iot/mqtt/mqtt.c | 602 +++ lib/iot/mqtt/mqtt_pkt.c | 1201 ++++++ lib/iot/mqtt/mqtt_pkt.h | 401 ++ lib/iot/zoap/Kbuild | 5 +- lib/iot/zoap/link-format.c | 312 ++ lib/iot/zoap/link-format.h | 52 + lib/iot/zoap/zoap.c | 209 +- lib/iot/zoap/zoap.h | 33 +- net/Makefile | 2 - net/ip/Kconfig | 609 --- net/ip/Kconfig.debug | 284 -- net/ip/Makefile | 184 - net/ip/cc2520_15_4_radio.h | 8 - net/ip/contiki/contiki-conf.h | 254 -- net/ip/contiki/contiki-default-conf.h | 266 -- net/ip/contiki/contiki-lib.h | 43 - net/ip/contiki/contiki-net.h | 59 - net/ip/contiki/contiki-version.h | 41 - net/ip/contiki/contiki.h | 61 - net/ip/contiki/ip/dhcpc.c | 495 --- net/ip/contiki/ip/dhcpc.h | 61 - net/ip/contiki/ip/psock.c | 342 -- net/ip/contiki/ip/psock.h | 400 -- net/ip/contiki/ip/simple-udp.c | 221 -- net/ip/contiki/ip/simple-udp.h | 182 - net/ip/contiki/ip/tcpip.c | 956 ----- net/ip/contiki/ip/tcpip.h | 391 -- net/ip/contiki/ip/udp-socket.c | 207 - net/ip/contiki/ip/udp-socket.h | 197 - net/ip/contiki/ip/uip-debug.c | 107 - net/ip/contiki/ip/uip-debug.h | 108 - net/ip/contiki/ip/uip-nameserver.c | 236 -- net/ip/contiki/ip/uip-nameserver.h | 101 - net/ip/contiki/ip/uip-packetqueue.c | 85 - net/ip/contiki/ip/uip-packetqueue.h | 37 - net/ip/contiki/ip/uip-split.h | 95 - net/ip/contiki/ip/uip-udp-packet.c | 124 - net/ip/contiki/ip/uip-udp-packet.h | 54 - net/ip/contiki/ip/uip.h | 2236 ----------- net/ip/contiki/ip/uipaddr.h | 97 - net/ip/contiki/ip/uiplib.c | 143 - net/ip/contiki/ip/uiplib.h | 80 - net/ip/contiki/ip/uipopt.h | 684 ---- net/ip/contiki/ipv4/uip-neighbor.c | 158 - net/ip/contiki/ipv4/uip-neighbor.h | 60 - net/ip/contiki/ipv4/uip.c | 2278 ----------- net/ip/contiki/ipv4/uip_arp.c | 437 --- net/ip/contiki/ipv4/uip_arp.h | 142 - net/ip/contiki/ipv6/multicast/README.md | 114 - net/ip/contiki/ipv6/multicast/roll-tm.c | 1448 ------- net/ip/contiki/ipv6/multicast/roll-tm.h | 244 -- net/ip/contiki/ipv6/multicast/smrf.c | 221 -- net/ip/contiki/ipv6/multicast/smrf.h | 88 - net/ip/contiki/ipv6/multicast/uip-mcast6-engines.h | 55 - net/ip/contiki/ipv6/multicast/uip-mcast6-route.c | 135 - net/ip/contiki/ipv6/multicast/uip-mcast6-route.h | 110 - net/ip/contiki/ipv6/multicast/uip-mcast6-stats.c | 54 - net/ip/contiki/ipv6/multicast/uip-mcast6-stats.h | 117 - net/ip/contiki/ipv6/multicast/uip-mcast6.h | 181 - net/ip/contiki/ipv6/uip-ds6-nbr.c | 335 -- net/ip/contiki/ipv6/uip-ds6-nbr.h | 114 - net/ip/contiki/ipv6/uip-ds6-route.c | 649 ---- net/ip/contiki/ipv6/uip-ds6-route.h | 169 - net/ip/contiki/ipv6/uip-ds6.c | 737 ---- net/ip/contiki/ipv6/uip-ds6.h | 350 -- net/ip/contiki/ipv6/uip-icmp6.c | 426 --- net/ip/contiki/ipv6/uip-icmp6.h | 243 -- net/ip/contiki/ipv6/uip-nd6.c | 1159 ------ net/ip/contiki/ipv6/uip-nd6.h | 577 --- net/ip/contiki/ipv6/uip6.c | 2647 ------------- net/ip/contiki/linkaddr.c | 90 - net/ip/contiki/linkaddr.h | 140 - net/ip/contiki/llsec/anti-replay.c | 112 - net/ip/contiki/llsec/anti-replay.h | 82 - net/ip/contiki/llsec/ccm-star.c | 192 - net/ip/contiki/llsec/ccm-star.h | 87 - net/ip/contiki/llsec/llsec.h | 99 - net/ip/contiki/llsec/llsec802154.h | 99 - net/ip/contiki/llsec/nullsec.c | 105 - net/ip/contiki/llsec/nullsec.h | 63 - net/ip/contiki/mac/csma.c | 479 --- net/ip/contiki/mac/csma.h | 51 - net/ip/contiki/mac/frame802154.c | 404 -- net/ip/contiki/mac/frame802154.h | 199 - net/ip/contiki/mac/framer-802154.c | 300 -- net/ip/contiki/mac/framer-802154.h | 50 - net/ip/contiki/mac/framer-nullmac.c | 99 - net/ip/contiki/mac/framer-nullmac.h | 46 - net/ip/contiki/mac/framer.c | 50 - net/ip/contiki/mac/framer.h | 62 - net/ip/contiki/mac/handler-802154.c | 420 -- net/ip/contiki/mac/handler-802154.h | 86 - net/ip/contiki/mac/mac-sequence.c | 110 - net/ip/contiki/mac/mac-sequence.h | 66 - net/ip/contiki/mac/mac.c | 79 - net/ip/contiki/mac/mac.h | 113 - net/ip/contiki/mac/nullmac.c | 96 - net/ip/contiki/mac/nullmac.h | 49 - net/ip/contiki/mac/rdc.h | 94 - net/ip/contiki/mac/sicslowmac/sicslowmac.c | 292 -- net/ip/contiki/mac/sicslowmac/sicslowmac.h | 53 - net/ip/contiki/mac/simplerdc.c | 289 -- net/ip/contiki/nbr-table.c | 350 -- net/ip/contiki/nbr-table.h | 103 - net/ip/contiki/netstack.c | 50 - net/ip/contiki/netstack.h | 149 - net/ip/contiki/os/dev/nullradio.c | 109 - net/ip/contiki/os/dev/nullradio.h | 8 - net/ip/contiki/os/dev/radio.h | 284 -- net/ip/contiki/os/dev/slip-arch.c | 34 - net/ip/contiki/os/dev/slip.c | 474 --- net/ip/contiki/os/dev/slip.h | 108 - net/ip/contiki/os/dev/watchdog.h | 42 - net/ip/contiki/os/lib/aes-128.c | 198 - net/ip/contiki/os/lib/aes-128.h | 82 - net/ip/contiki/os/lib/list.c | 330 -- net/ip/contiki/os/lib/list.h | 157 - net/ip/contiki/os/lib/memb.c | 124 - net/ip/contiki/os/lib/memb.h | 138 - net/ip/contiki/os/lib/mmem.c | 164 - net/ip/contiki/os/lib/mmem.h | 93 - net/ip/contiki/os/lib/random.c | 36 - net/ip/contiki/os/lib/random.h | 52 - net/ip/contiki/os/rtimer-arch.h | 33 - net/ip/contiki/os/sys/arg.c | 133 - net/ip/contiki/os/sys/arg.h | 42 - net/ip/contiki/os/sys/autostart.h | 62 - net/ip/contiki/os/sys/cc.h | 140 - net/ip/contiki/os/sys/clock.c | 76 - net/ip/contiki/os/sys/clock.h | 162 - net/ip/contiki/os/sys/ctimer.c | 175 - net/ip/contiki/os/sys/ctimer.h | 152 - net/ip/contiki/os/sys/energest.h | 129 - net/ip/contiki/os/sys/etimer.c | 250 -- net/ip/contiki/os/sys/etimer.h | 245 -- net/ip/contiki/os/sys/inttypes.h | 1 - net/ip/contiki/os/sys/lc-switch.h | 75 - net/ip/contiki/os/sys/lc.h | 130 - net/ip/contiki/os/sys/loader.h | 132 - net/ip/contiki/os/sys/log.h | 45 - net/ip/contiki/os/sys/process.c | 398 -- net/ip/contiki/os/sys/process.h | 539 --- net/ip/contiki/os/sys/procinit.h | 44 - net/ip/contiki/os/sys/pt.h | 322 -- net/ip/contiki/os/sys/rtimer.c | 108 - net/ip/contiki/os/sys/rtimer.h | 157 - net/ip/contiki/os/sys/stimer.c | 163 - net/ip/contiki/os/sys/stimer.h | 97 - net/ip/contiki/os/sys/time.h | 1 - net/ip/contiki/os/sys/timer.c | 267 -- net/ip/contiki/os/sys/timer.h | 116 - net/ip/contiki/os/sys/types.h | 1 - net/ip/contiki/packetbuf.c | 344 -- net/ip/contiki/packetbuf.h | 500 --- net/ip/contiki/queuebuf.c | 532 --- net/ip/contiki/queuebuf.h | 117 - net/ip/contiki/rpl/rpl-conf.h | 271 -- net/ip/contiki/rpl/rpl-dag.c | 1440 ------- net/ip/contiki/rpl/rpl-ext-header.c | 391 -- net/ip/contiki/rpl/rpl-icmp6.c | 997 ----- net/ip/contiki/rpl/rpl-mrhof.c | 297 -- net/ip/contiki/rpl/rpl-of0.c | 175 - net/ip/contiki/rpl/rpl-private.h | 330 -- net/ip/contiki/rpl/rpl-timers.c | 429 --- net/ip/contiki/rpl/rpl.c | 321 -- net/ip/contiki/rpl/rpl.h | 298 -- net/ip/contiki/sicslowpan/compression.h | 31 - net/ip/contiki/sicslowpan/null_compression.c | 55 - net/ip/contiki/sicslowpan/null_compression.h | 26 - net/ip/contiki/sicslowpan/null_fragmentation.c | 120 - net/ip/contiki/sicslowpan/null_fragmentation.h | 26 - net/ip/contiki/sicslowpan/sicslowpan_compression.c | 1102 ------ net/ip/contiki/sicslowpan/sicslowpan_compression.h | 268 -- .../contiki/sicslowpan/sicslowpan_fragmentation.c | 792 ---- .../contiki/sicslowpan/sicslowpan_fragmentation.h | 43 - net/ip/contiki/trickle/trickle-timer.c | 409 -- net/ip/contiki/trickle/trickle-timer.h | 514 --- net/ip/contiki/uip-log.c | 47 - net/ip/dummy_15_4_radio.c | 329 -- net/ip/dummy_15_4_radio.h | 8 - net/ip/er-coap/er-coap-block1.c | 111 - net/ip/er-coap/er-coap-block1.h | 47 - net/ip/er-coap/er-coap-conf.h | 74 - net/ip/er-coap/er-coap-constants.h | 168 - net/ip/er-coap/er-coap-context.c | 687 ---- net/ip/er-coap/er-coap-context.h | 172 - net/ip/er-coap/er-coap-engine.c | 540 --- net/ip/er-coap/er-coap-engine.h | 93 - net/ip/er-coap/er-coap-observe-client.c | 352 -- net/ip/er-coap/er-coap-observe-client.h | 127 - net/ip/er-coap/er-coap-observe.c | 315 -- net/ip/er-coap/er-coap-observe.h | 96 - net/ip/er-coap/er-coap-res-well-known-core.c | 201 - net/ip/er-coap/er-coap-separate.c | 142 - net/ip/er-coap/er-coap-separate.h | 69 - net/ip/er-coap/er-coap-transactions.c | 218 -- net/ip/er-coap/er-coap-transactions.h | 85 - net/ip/er-coap/er-coap.c | 1273 ------ net/ip/er-coap/er-coap.h | 292 -- net/ip/ip_buf.c | 411 -- net/ip/l2_buf.c | 171 - net/ip/net_context.c | 697 ---- net/ip/net_core.c | 1174 ------ net/ip/net_driver_15_4.c | 178 - net/ip/net_driver_15_4.h | 19 - net/ip/net_driver_bt.c | 206 - net/ip/net_driver_bt.h | 17 - net/ip/net_driver_ethernet.c | 154 - net/ip/net_driver_ethernet.h | 16 - net/ip/net_driver_loopback.c | 93 - net/ip/net_driver_slip.c | 63 - net/ip/net_driver_slip.h | 6 - net/ip/rest-engine/rest-constants.h | 118 - net/ip/rest-engine/rest-engine.c | 222 -- net/ip/rest-engine/rest-engine.h | 262 -- net/ip/tinydtls/.gitignore | 29 - net/ip/tinydtls/LICENSE | 21 - net/ip/tinydtls/Makefile.in | 141 - net/ip/tinydtls/Makefile.tinydtls | 27 - net/ip/tinydtls/README | 26 - net/ip/tinydtls/aes/Makefile.in | 76 - net/ip/tinydtls/aes/rijndael.c | 1280 ------- net/ip/tinydtls/aes/rijndael.h | 66 - net/ip/tinydtls/alert.h | 81 - net/ip/tinydtls/ccm.c | 311 -- net/ip/tinydtls/ccm.h | 69 - net/ip/tinydtls/configure.in | 121 - net/ip/tinydtls/crypto.c | 572 --- net/ip/tinydtls/crypto.h | 359 -- net/ip/tinydtls/debug.c | 380 -- net/ip/tinydtls/debug.h | 143 - net/ip/tinydtls/doc/Doxyfile.in | 1551 -------- net/ip/tinydtls/doc/DoxygenLayout.xml | 184 - net/ip/tinydtls/doc/Makefile.in | 36 - net/ip/tinydtls/dtls.c | 4032 -------------------- net/ip/tinydtls/dtls.h | 733 ---- net/ip/tinydtls/dtls_config.h | 153 - net/ip/tinydtls/dtls_time.c | 79 - net/ip/tinydtls/dtls_time.h | 69 - net/ip/tinydtls/ecc/Makefile.contiki | 7 - net/ip/tinydtls/ecc/Makefile.ecc | 3 - net/ip/tinydtls/ecc/Makefile.in | 90 - net/ip/tinydtls/ecc/ecc.c | 707 ---- net/ip/tinydtls/ecc/ecc.h | 86 - net/ip/tinydtls/ecc/test_helper.c | 79 - net/ip/tinydtls/ecc/test_helper.h | 51 - net/ip/tinydtls/ecc/testecc.c | 226 -- net/ip/tinydtls/ecc/testfield.c | 290 -- net/ip/tinydtls/examples/contiki/Makefile.in | 59 - net/ip/tinydtls/examples/contiki/dtls-client.c | 337 -- net/ip/tinydtls/examples/contiki/dtls-server.c | 332 -- net/ip/tinydtls/global.h | 147 - net/ip/tinydtls/hmac.c | 171 - net/ip/tinydtls/hmac.h | 154 - net/ip/tinydtls/netq.c | 140 - net/ip/tinydtls/netq.h | 103 - net/ip/tinydtls/numeric.h | 142 - net/ip/tinydtls/peer.c | 90 - net/ip/tinydtls/peer.h | 140 - net/ip/tinydtls/platform-specific/Makefile.in | 27 - .../tinydtls/platform-specific/config-cc2538dk.h | 2 - .../tinydtls/platform-specific/config-econotag.h | 2 - .../platform-specific/config-minimal-net.h | 1 - net/ip/tinydtls/platform-specific/config-native.h | 1 - net/ip/tinydtls/platform-specific/config-sky.h | 3 - net/ip/tinydtls/platform-specific/config-wismote.h | 1 - net/ip/tinydtls/platform-specific/platform.h | 91 - net/ip/tinydtls/prng.h | 87 - net/ip/tinydtls/session.c | 83 - net/ip/tinydtls/session.h | 78 - net/ip/tinydtls/sha2/Makefile.in | 78 - net/ip/tinydtls/sha2/README | 272 -- net/ip/tinydtls/sha2/sha2.c | 1101 ------ net/ip/tinydtls/sha2/sha2.h | 216 -- net/ip/tinydtls/sha2/sha2prog.c | 132 - net/ip/tinydtls/sha2/sha2speed.c | 174 - net/ip/tinydtls/sha2/sha2test.pl | 358 -- net/ip/tinydtls/sha2/testvectors/vector001.dat | 1 - net/ip/tinydtls/sha2/testvectors/vector001.info | 21 - net/ip/tinydtls/sha2/testvectors/vector002.dat | 1 - net/ip/tinydtls/sha2/testvectors/vector002.info | 21 - net/ip/tinydtls/sha2/testvectors/vector003.dat | 1 - net/ip/tinydtls/sha2/testvectors/vector003.info | 22 - net/ip/tinydtls/sha2/testvectors/vector004.dat | 1 - net/ip/tinydtls/sha2/testvectors/vector004.info | 22 - net/ip/tinydtls/sha2/testvectors/vector005.dat | 0 net/ip/tinydtls/sha2/testvectors/vector005.info | 23 - net/ip/tinydtls/sha2/testvectors/vector006.dat | 1 - net/ip/tinydtls/sha2/testvectors/vector006.info | 22 - net/ip/tinydtls/sha2/testvectors/vector007.dat | 1 - net/ip/tinydtls/sha2/testvectors/vector007.info | 22 - net/ip/tinydtls/sha2/testvectors/vector008.dat | 1 - net/ip/tinydtls/sha2/testvectors/vector008.info | 22 - net/ip/tinydtls/sha2/testvectors/vector009.dat | 1 - net/ip/tinydtls/sha2/testvectors/vector009.info | 22 - net/ip/tinydtls/sha2/testvectors/vector010.dat | Bin 320 -> 0 bytes net/ip/tinydtls/sha2/testvectors/vector010.info | 22 - net/ip/tinydtls/sha2/testvectors/vector011.dat | Bin 447 -> 0 bytes net/ip/tinydtls/sha2/testvectors/vector011.info | 22 - net/ip/tinydtls/sha2/testvectors/vector012.dat | Bin 640 -> 0 bytes net/ip/tinydtls/sha2/testvectors/vector012.info | 22 - net/ip/tinydtls/sha2/testvectors/vector013.dat | Bin 2175 -> 0 bytes net/ip/tinydtls/sha2/testvectors/vector013.info | 22 - net/ip/tinydtls/sha2/testvectors/vector014.dat | Bin 16384 -> 0 bytes net/ip/tinydtls/sha2/testvectors/vector014.info | 22 - net/ip/tinydtls/sha2/testvectors/vector015.dat | 1 - net/ip/tinydtls/sha2/testvectors/vector015.info | 21 - net/ip/tinydtls/sha2/testvectors/vector016.dat | 1 - net/ip/tinydtls/sha2/testvectors/vector016.info | 23 - net/ip/tinydtls/sha2/testvectors/vector017.dat | Bin 12271 -> 0 bytes net/ip/tinydtls/sha2/testvectors/vector017.info | 32 - net/ip/tinydtls/sha2/testvectors/vector018.dat | Bin 1079 -> 0 bytes net/ip/tinydtls/sha2/testvectors/vector018.info | 26 - net/ip/tinydtls/state.h | 64 - net/ip/tinydtls/t_list.h | 194 - net/ip/tinydtls/tests/Makefile.in | 84 - net/ip/tinydtls/tests/cbc_aes128-test.c | 60 - net/ip/tinydtls/tests/cbc_aes128-testdata.c | 72 - net/ip/tinydtls/tests/ccm-test.c | 96 - net/ip/tinydtls/tests/ccm-testdata.c | 395 -- net/ip/tinydtls/tests/dsrv-test.c | 108 - net/ip/tinydtls/tests/dtls-client.c | 502 --- net/ip/tinydtls/tests/dtls-server.c | 366 -- net/ip/tinydtls/tests/netq-test.c | 103 - net/ip/tinydtls/tests/pcap.c | 478 --- net/ip/tinydtls/tests/prf-test.c | 31 - net/ip/tinydtls/tests/secure-server.c | 862 ----- net/ip/tinydtls/tinydtls.h | 45 - net/ip/tinydtls/tinydtls.h.in | 44 - samples/bluetooth/ipsp/src/Makefile | 4 - samples/bluetooth/ipsp/testcase.ini | 1 + samples/net/README | 19 +- samples/net/coap_observe_client/Makefile | 30 - samples/net/coap_observe_client/prj.mdef | 5 - samples/net/coap_observe_client/prj_802154.conf | 12 - samples/net/coap_observe_client/prj_bt.conf | 8 - samples/net/coap_observe_client/prj_slip.conf | 13 - samples/net/coap_observe_client/src/Makefile | 20 - .../coap_observe_client/src/coap-observe-client.c | 367 -- samples/net/coap_observe_client/testcase.ini | 12 - samples/net/coap_server/Makefile | 30 - samples/net/coap_server/prj.mdef | 5 - samples/net/coap_server/prj_802154.conf | 10 - samples/net/coap_server/prj_bt.conf | 7 - samples/net/coap_server/prj_slip.conf | 10 - samples/net/coap_server/src/Makefile | 38 - samples/net/coap_server/src/coap-server.c | 322 -- samples/net/coap_server/src/er-plugtest.h | 55 - .../src/resources/res-plugtest-create1.c | 80 - .../src/resources/res-plugtest-create2.c | 60 - .../src/resources/res-plugtest-create3.c | 80 - .../src/resources/res-plugtest-large-create.c | 91 - .../src/resources/res-plugtest-large-update.c | 128 - .../coap_server/src/resources/res-plugtest-large.c | 92 - .../coap_server/src/resources/res-plugtest-links.c | 71 - .../src/resources/res-plugtest-locquery.c | 65 - .../src/resources/res-plugtest-longpath.c | 68 - .../coap_server/src/resources/res-plugtest-multi.c | 87 - .../coap_server/src/resources/res-plugtest-obs.c | 155 - .../coap_server/src/resources/res-plugtest-path.c | 72 - .../coap_server/src/resources/res-plugtest-query.c | 75 - .../src/resources/res-plugtest-separate.c | 136 - .../coap_server/src/resources/res-plugtest-test.c | 166 - .../src/resources/res-plugtest-validate.c | 139 - samples/net/coap_server/testcase.ini | 12 - samples/net/common/Makefile.ipstack | 18 +- samples/net/common/cc2520_a101.c | 67 + samples/net/dhcp_client/prj.mdef | 5 - samples/net/dhcp_client/prj_frdm_k64f.conf | 32 - samples/net/dhcp_client/prj_galileo.conf | 34 - samples/net/dhcp_client/src/Makefile | 6 - samples/net/dhcpv4_client/Makefile | 7 + .../zoap => samples/net/dhcpv4_client}/prj.mdef | 2 +- samples/net/dhcpv4_client/prj_x86.conf | 25 + samples/net/dhcpv4_client/src/Makefile | 2 + samples/net/dhcpv4_client/src/main.c | 77 + samples/net/dns_client/KNOWN_ISSUES | 17 - samples/net/dns_client/Makefile | 8 +- samples/net/dns_client/README | 139 - samples/net/dns_client/README_API | 22 - samples/net/dns_client/README_IPv4 | 131 + samples/net/dns_client/README_IPv6 | 74 + samples/net/dns_client/README_arduino_101 | 55 + samples/net/dns_client/prj_arduino_101.conf | 43 + samples/net/dns_client/prj_galileo.conf | 17 - samples/net/dns_client/prj_qemu_x86.conf | 28 + samples/net/dns_client/src/Makefile | 8 - .../net/dns_client/src/{dns_utils.h => config.h} | 23 +- samples/net/dns_client/src/dns_utils.c | 153 - samples/net/dns_client/src/main.c | 261 +- samples/net/dns_client/src/tcp.c | 120 - samples/net/dns_client/testcase.ini | 2 +- samples/net/dtls_client/prj.mdef | 5 - samples/net/dtls_client/prj_802154.conf | 11 - samples/net/dtls_client/prj_qemu.conf | 13 - samples/net/dtls_client/prj_slip.conf | 10 - samples/net/dtls_client/src/Makefile | 12 - samples/net/dtls_client/src/dtls-client.c | 479 --- samples/net/dtls_server/Makefile | 30 - samples/net/dtls_server/prj.mdef | 5 - samples/net/dtls_server/prj_802154.conf | 10 - samples/net/dtls_server/prj_bt.conf | 6 - samples/net/dtls_server/prj_qemu.conf | 13 - samples/net/dtls_server/prj_slip.conf | 11 - samples/net/dtls_server/src/Makefile | 17 - samples/net/dtls_server/src/dtls-server.c | 406 -- samples/net/echo_client/Makefile | 4 +- samples/net/echo_client/prj.mdef | 5 - samples/net/echo_client/prj_802154.conf | 10 - samples/net/echo_client/prj_arduino_101.conf | 28 + .../net/echo_client/prj_arduino_101_cc2520.conf | 51 + samples/net/echo_client/prj_cc2520.conf | 42 + samples/net/echo_client/prj_qemu.conf | 13 - samples/net/echo_client/prj_qemu_802154.conf | 44 + samples/net/echo_client/prj_qemu_x86.conf | 28 + samples/net/echo_client/prj_slip.conf | 33 +- samples/net/echo_client/src/Makefile | 15 +- samples/net/echo_client/src/echo-client.c | 805 ++-- samples/net/echo_client/testcase.ini | 2 + samples/net/echo_server/Makefile | 4 +- samples/net/echo_server/prj.mdef | 5 - samples/net/echo_server/prj_802154.conf | 10 - samples/net/echo_server/prj_arduino_101.conf | 28 + .../net/echo_server/prj_arduino_101_cc2520.conf | 51 + samples/net/echo_server/prj_cc2520.conf | 45 + samples/net/echo_server/prj_ethernet.conf | 9 - samples/net/echo_server/prj_frdm_k64f.conf | 41 + samples/net/echo_server/prj_qemu.conf | 12 - samples/net/echo_server/prj_qemu_802154.conf | 44 + samples/net/echo_server/prj_qemu_x86.conf | 28 + samples/net/echo_server/prj_slip.conf | 34 +- samples/net/echo_server/src/Makefile | 11 +- samples/net/echo_server/src/echo-server.c | 648 +++- samples/net/echo_server/testcase.ini | 2 + .../subscriber => ieee802154/cc2520}/Makefile | 9 +- samples/net/ieee802154/cc2520/prj.conf | 46 + samples/net/ieee802154/cc2520/src/Makefile | 1 + .../cc2520/src/ieee802154_test.c} | 52 +- samples/net/ieee802154/qemu/Makefile | 25 + .../qemu/Makefile.qemu} | 33 +- samples/net/ieee802154/qemu/prj.conf | 42 + samples/net/ieee802154/qemu/src/Makefile | 1 + .../net/ieee802154/qemu/src/ieee802154_qemu_test.c | 66 + samples/net/{dtls_client => leds_demo}/Makefile | 10 +- samples/net/leds_demo/prj.conf | 9 + samples/net/leds_demo/prj_802154.conf | 12 + samples/net/leds_demo/src/Makefile | 15 + samples/net/leds_demo/src/leds-demo.c | 510 +++ .../net/{dhcp_client => leds_demo}/testcase.ini | 2 +- samples/net/loopback_test/Makefile | 22 - samples/net/loopback_test/prj.conf | 5 - samples/net/loopback_test/prj_10000.conf | 6 - samples/net/loopback_test/sample.tc | 8 - samples/net/loopback_test/src/Makefile | 6 - samples/net/loopback_test/src/network.c | 263 -- samples/net/loopback_test/testcase.ini | 4 - .../{dhcp_client => mbedtls_dtlsclient}/Makefile | 6 +- samples/net/mbedtls_dtlsclient/README | 121 + samples/net/mbedtls_dtlsclient/README_arduino_101 | 55 + .../net/mbedtls_dtlsclient/prj_arduino_101.conf | 34 + samples/net/mbedtls_dtlsclient/prj_qemu_x86.conf | 21 + .../publisher => mbedtls_dtlsclient/src}/Makefile | 7 +- samples/net/mbedtls_dtlsclient/src/dtls_client.c | 321 ++ samples/net/mbedtls_dtlsclient/src/udp.c | 156 + .../src/tcp.h => mbedtls_dtlsclient/src/udp.h} | 16 +- .../src/udp_cfg.h} | 32 +- samples/net/mbedtls_dtlsclient/testcase.ini | 4 + samples/net/mbedtls_sslclient/testcase.ini | 1 + samples/net/nats_clients/KNOWN_ISSUES | 34 - samples/net/nats_clients/README | 49 - samples/net/nats_clients/publisher/README | 118 - .../net/nats_clients/publisher/prj_galileo.conf | 22 - samples/net/nats_clients/publisher/src/app_buf.h | 19 - samples/net/nats_clients/publisher/src/main.c | 122 - .../net/nats_clients/publisher/src/nats_client.c | 153 - .../net/nats_clients/publisher/src/nats_client.h | 120 - samples/net/nats_clients/publisher/src/nats_pack.c | 455 --- samples/net/nats_clients/publisher/src/nats_pack.h | 247 -- samples/net/nats_clients/publisher/src/netz.c | 223 -- samples/net/nats_clients/publisher/src/netz.h | 163 - samples/net/nats_clients/subscriber/Kbuild | 1 - samples/net/nats_clients/subscriber/README | 104 - .../net/nats_clients/subscriber/prj_galileo.conf | 22 - samples/net/nats_clients/subscriber/src/Makefile | 26 - samples/net/nats_clients/subscriber/src/main.c | 162 - .../net/paho_mqtt_clients/publisher/KNOWN_ISSUES | 30 - samples/net/paho_mqtt_clients/publisher/Kbuild | 10 - samples/net/paho_mqtt_clients/publisher/README | 132 - .../paho_mqtt_clients/publisher/prj_galileo.conf | 19 - .../net/paho_mqtt_clients/publisher/src/Makefile | 25 - .../net/paho_mqtt_clients/publisher/src/app_buf.h | 19 - samples/net/paho_mqtt_clients/publisher/src/main.c | 121 - samples/net/paho_mqtt_clients/publisher/src/mqtt.c | 661 ---- samples/net/paho_mqtt_clients/publisher/src/mqtt.h | 271 -- .../paho_mqtt_clients/publisher/src/mqtt_pack.c | 336 -- .../paho_mqtt_clients/publisher/src/mqtt_pack.h | 299 -- samples/net/paho_mqtt_clients/publisher/src/netz.c | 225 -- samples/net/paho_mqtt_clients/publisher/src/netz.h | 163 - .../net/paho_mqtt_clients/subscriber/KNOWN_ISSUES | 1 - samples/net/paho_mqtt_clients/subscriber/Kbuild | 10 - samples/net/paho_mqtt_clients/subscriber/README | 131 - .../paho_mqtt_clients/subscriber/prj_galileo.conf | 19 - .../net/paho_mqtt_clients/subscriber/src/Makefile | 26 - .../net/paho_mqtt_clients/subscriber/src/main.c | 158 - samples/net/test/test_15_4/Makefile | 25 - samples/net/test/test_15_4/README | 84 - samples/net/test/test_15_4/prj.conf | 8 - samples/net/test/test_15_4/prj.mdef | 1 - samples/net/test_15_4/Makefile | 25 - samples/net/test_15_4/README | 84 - samples/net/test_15_4/prj.conf | 7 - samples/net/test_15_4/prj.mdef | 11 - samples/net/test_15_4/sample.tc | 16 - samples/net/test_15_4/src/Makefile | 7 - samples/net/test_15_4/src/network.c | 414 -- samples/net/trickle-legacy/Makefile | 31 - samples/net/trickle-legacy/prj.mdef | 5 - samples/net/trickle-legacy/prj_802154.conf | 13 - samples/net/trickle-legacy/prj_bt.conf | 17 - samples/net/trickle-legacy/prj_ethernet.conf | 12 - samples/net/trickle-legacy/prj_qemu.conf | 9 - samples/net/trickle-legacy/prj_slip.conf | 13 - samples/net/trickle-legacy/src/Makefile | 13 - samples/net/trickle-legacy/src/main.c | 192 - samples/net/wpan_serial/Makefile | 5 + samples/net/wpan_serial/README | 28 + samples/net/wpan_serial/prj.conf | 30 + samples/net/wpan_serial/src/Makefile | 3 + samples/net/wpan_serial/src/main.c | 641 ++++ .../net/{test_15_4 => wpan_serial}/testcase.ini | 7 +- samples/net/wpanusb/Makefile | 5 + samples/net/wpanusb/README | 29 + samples/net/wpanusb/prj-legacy.conf | 20 + samples/net/wpanusb/prj.conf | 28 + samples/net/wpanusb/src/Makefile | 9 + samples/net/wpanusb/src/wpanusb.c | 620 +++ samples/net/wpanusb/src/wpanusb.h | 50 + samples/net/wpanusb/wpan-radio-spec.txt | 107 + samples/net/zoap_client/Makefile | 1 - samples/net/zoap_client/prj.conf | 19 +- samples/net/zoap_client/prj.mdef | 5 - samples/net/zoap_client/src/Makefile | 5 - samples/net/zoap_client/src/zoap-client.c | 158 +- samples/net/zoap_server/Makefile | 1 - samples/net/zoap_server/prj.conf | 18 +- samples/net/zoap_server/prj.mdef | 5 - samples/net/zoap_server/src/Makefile | 5 +- samples/net/zoap_server/src/zoap-server.c | 235 +- samples/net/zperf/Makefile | 7 +- samples/net/zperf/README.rst | 31 +- samples/net/zperf/prj.mdef | 5 - samples/net/zperf/prj_frdm_k64f.conf | 48 + samples/net/zperf/prj_frdm_k64f_prof.conf | 49 + samples/net/zperf/prj_prof.mdef | 6 - samples/net/zperf/prj_qemu_x86.conf | 41 + samples/net/zperf/prj_quark_se_c1000_devboard.conf | 44 + samples/net/zperf/src/Makefile | 11 +- samples/net/zperf/src/shell_utils.c | 125 - samples/net/zperf/src/shell_utils.h | 8 - samples/net/zperf/src/zperf.h | 7 +- samples/net/zperf/src/zperf_internal.h | 67 +- samples/net/zperf/src/zperf_session.c | 69 +- samples/net/zperf/src/zperf_session.h | 14 +- samples/net/zperf/src/zperf_shell.c | 956 ++++- samples/net/zperf/src/zperf_tcp_receiver.c | 18 +- samples/net/zperf/src/zperf_udp_receiver.c | 516 ++- samples/net/zperf/src/zperf_udp_uploader.c | 380 +- samples/net/zperf/testcase.ini | 3 +- samples/testing/unit/Makefile | 2 + scripts/sanitycheck | 5 +- subsys/Kconfig | 2 + subsys/Makefile | 1 + {net => subsys/net}/Kconfig | 24 +- subsys/net/Makefile | 9 + subsys/net/TODO | 329 ++ {net => subsys/net}/buf.c | 0 subsys/net/ip/6lo.c | 1454 +++++++ subsys/net/ip/6lo.h | 75 + subsys/net/ip/6lo_private.h | 104 + subsys/net/ip/Kconfig | 265 ++ subsys/net/ip/Kconfig.debug | 92 + subsys/net/ip/Kconfig.ipv4 | 70 + subsys/net/ip/Kconfig.ipv6 | 123 + subsys/net/ip/Kconfig.mgmt | 80 + subsys/net/ip/Kconfig.rpl | 251 ++ subsys/net/ip/Kconfig.samples | 61 + subsys/net/ip/Kconfig.stack | 54 + subsys/net/ip/Makefile | 28 + subsys/net/ip/connection.c | 805 ++++ subsys/net/ip/connection.h | 162 + subsys/net/ip/dhcpv4.c | 779 ++++ subsys/net/ip/icmpv4.c | 280 ++ subsys/net/ip/icmpv4.h | 76 + subsys/net/ip/icmpv6.c | 386 ++ subsys/net/ip/icmpv6.h | 207 + subsys/net/ip/ipv4.c | 141 + subsys/net/ip/ipv4.h | 95 + subsys/net/ip/ipv6.c | 2108 ++++++++++ subsys/net/ip/ipv6.h | 309 ++ subsys/net/ip/l2/Kconfig | 113 + subsys/net/ip/l2/Makefile | 8 + subsys/net/ip/l2/arp.c | 488 +++ subsys/net/ip/l2/bluetooth.c | 257 ++ subsys/net/ip/l2/dummy.c | 49 + subsys/net/ip/l2/ethernet.c | 308 ++ subsys/net/ip/l2/ieee802154/Kconfig | 131 + subsys/net/ip/l2/ieee802154/Kconfig.radio | 76 + subsys/net/ip/l2/ieee802154/Makefile | 10 + subsys/net/ip/l2/ieee802154/ieee802154.c | 353 ++ subsys/net/ip/l2/ieee802154/ieee802154_fragment.c | 562 +++ subsys/net/ip/l2/ieee802154/ieee802154_fragment.h | 63 + subsys/net/ip/l2/ieee802154/ieee802154_frame.c | 716 ++++ subsys/net/ip/l2/ieee802154/ieee802154_frame.h | 415 ++ subsys/net/ip/l2/ieee802154/ieee802154_mgmt.c | 43 + .../net/ip/l2/ieee802154/ieee802154_radio_aloha.c | 81 + .../ip/l2/ieee802154/ieee802154_radio_csma_ca.c | 108 + .../net/ip/l2/ieee802154/ieee802154_radio_utils.h | 91 + subsys/net/ip/nbr.c | 236 ++ subsys/net/ip/nbr.h | 225 ++ subsys/net/ip/nbuf.c | 1446 +++++++ subsys/net/ip/net_context.c | 1969 ++++++++++ subsys/net/ip/net_core.c | 869 +++++ subsys/net/ip/net_if.c | 1336 +++++++ subsys/net/ip/net_mgmt.c | 220 ++ subsys/net/ip/net_private.h | 191 + subsys/net/ip/net_shell.c | 768 ++++ .../config-zephyr.h => subsys/net/ip/net_shell.h | 23 +- subsys/net/ip/route.c | 715 ++++ subsys/net/ip/route.h | 254 ++ subsys/net/ip/rpl-mrhof.c | 372 ++ subsys/net/ip/rpl-of0.c | 251 ++ subsys/net/ip/rpl.c | 3943 +++++++++++++++++++ subsys/net/ip/rpl.h | 980 +++++ subsys/net/ip/tcp.c | 839 ++++ subsys/net/ip/tcp.h | 324 ++ subsys/net/ip/trickle.c | 240 ++ subsys/net/ip/udp.h | 142 + subsys/net/ip/utils.c | 489 +++ .../iot/test_http_header}/Makefile | 4 +- tests/iot/test_http_header/README | 27 + tests/iot/test_http_header/prj.conf | 5 + .../iot/test_http_header/src}/Makefile | 7 +- tests/iot/test_http_header/src/test_http_header.c | 941 +++++ tests/iot/test_http_header/testcase.ini | 3 + tests/iot/test_mqtt_packet/Makefile | 4 + tests/iot/test_mqtt_packet/README | 76 + tests/iot/test_mqtt_packet/prj.conf | 8 + tests/iot/test_mqtt_packet/src/Makefile | 4 + tests/iot/test_mqtt_packet/src/test_mqtt_packet.c | 1036 +++++ tests/iot/test_mqtt_packet/testcase.ini | 4 + tests/net/6lo/Makefile | 4 + tests/net/6lo/prj.conf | 23 + tests/net/6lo/src/Makefile | 3 + tests/net/6lo/src/main.c | 924 +++++ tests/net/6lo/testcase.ini | 4 + tests/net/arp/Makefile | 4 + tests/net/arp/prj.conf | 19 + tests/net/arp/src/Makefile | 3 + tests/net/arp/src/main.c | 720 ++++ .../net/dtls_client => tests/net/arp}/testcase.ini | 1 - tests/net/buf/src/Makefile | 1 + tests/net/buf/src/main.c | 12 +- tests/net/context/Makefile | 4 + tests/net/context/prj.conf | 23 + tests/net/context/src/Makefile | 3 + tests/net/context/src/main.c | 1237 ++++++ .../dtls_server => tests/net/context}/testcase.ini | 2 - tests/net/dhcpv4/Makefile | 4 + tests/net/dhcpv4/prj.conf | 20 + tests/net/dhcpv4/src/Makefile | 3 + tests/net/dhcpv4/src/main.c | 565 +++ tests/net/dhcpv4/testcase.ini | 3 + tests/net/icmpv6/Makefile | 4 + tests/net/icmpv6/prj.conf | 11 + tests/net/icmpv6/src/Makefile | 3 + tests/net/icmpv6/src/main.c | 147 + tests/net/icmpv6/testcase.ini | 4 + tests/net/ieee802154/fragment/Makefile | 4 + tests/net/ieee802154/fragment/prj.conf | 21 + tests/net/ieee802154/fragment/src/Makefile | 4 + tests/net/ieee802154/fragment/src/main.c | 550 +++ tests/net/ieee802154/fragment/testcase.ini | 4 + tests/net/ieee802154/l2/Makefile | 4 + tests/net/ieee802154/l2/prj.conf | 16 + tests/net/ieee802154/l2/src/Makefile | 6 + .../net/ieee802154/l2/src/ieee802154_fake_driver.c | 157 + tests/net/ieee802154/l2/src/ieee802154_test.c | 309 ++ tests/net/ieee802154/l2/testcase.ini | 4 + tests/net/ip-addr/Makefile | 4 + tests/net/ip-addr/prj.conf | 16 + tests/net/ip-addr/src/Makefile | 3 + tests/net/ip-addr/src/main.c | 464 +++ tests/net/ip-addr/testcase.ini | 4 + tests/net/ipv6/Makefile | 4 + tests/net/ipv6/prj.conf | 24 + tests/net/ipv6/src/Makefile | 3 + tests/net/ipv6/src/main.c | 658 ++++ .../subscriber => tests/net/ipv6}/testcase.ini | 1 - tests/net/mgmt/Makefile | 4 + tests/net/mgmt/prj.conf | 13 + tests/net/mgmt/src/Makefile | 3 + tests/net/mgmt/src/mgmt.c | 277 ++ tests/net/mgmt/testcase.ini | 4 + tests/net/nbuf/Makefile | 4 + tests/net/nbuf/prj.conf | 15 + tests/net/nbuf/src/Makefile | 3 + tests/net/nbuf/src/main.c | 1209 ++++++ tests/net/nbuf/testcase.ini | 4 + tests/net/neighbor/Makefile | 4 + tests/net/neighbor/prj.conf | 15 + tests/net/neighbor/src/Makefile | 3 + tests/net/neighbor/src/main.c | 390 ++ tests/net/neighbor/testcase.ini | 4 + tests/net/route/Makefile | 4 + tests/net/route/prj.conf | 29 + tests/net/route/src/Makefile | 3 + tests/net/route/src/main.c | 705 ++++ tests/net/route/testcase.ini | 4 + tests/net/rpl/Makefile | 4 + tests/net/rpl/prj.conf | 30 + tests/net/rpl/src/Makefile | 3 + tests/net/rpl/src/main.c | 712 ++++ tests/net/rpl/testcase.ini | 4 + tests/net/tcp/Makefile | 4 + tests/net/tcp/prj.conf | 27 + tests/net/tcp/src/Makefile | 3 + tests/net/tcp/src/main.c | 1496 ++++++++ .../publisher => tests/net/tcp}/testcase.ini | 1 - tests/net/trickle/Makefile | 4 + tests/net/trickle/prj.conf | 17 + tests/net/trickle/src/Makefile | 3 + tests/net/trickle/src/main.c | 318 ++ tests/net/trickle/testcase.ini | 4 + tests/net/udp/Makefile | 4 + tests/net/udp/prj.conf | 22 + tests/net/udp/src/Makefile | 3 + tests/net/udp/src/main.c | 611 +++ tests/net/udp/testcase.ini | 4 + tests/net/utils/Makefile | 4 + tests/net/utils/prj.conf | 13 + tests/net/utils/src/Makefile | 3 + tests/net/utils/src/main.c | 396 ++ tests/net/utils/testcase.ini | 4 + tests/net/zoap/Makefile | 1 - tests/net/zoap/prj.conf | 3 +- tests/net/zoap/src/Makefile | 5 - tests/net/zoap/src/main.c | 354 +- tests/net/zoap/testcase.ini | 2 + tests/unit/net/buf/Makefile | 2 + 836 files changed, 65756 insertions(+), 88549 deletions(-) create mode 100644 doc/subsystems/networking/connectivity-example-app.c create mode 100644 doc/subsystems/networking/ip-stack-architecture.dia create mode 100644 doc/subsystems/networking/ip-stack-architecture.png create mode 100644 doc/subsystems/networking/ip-stack-architecture.rst create mode 100644 doc/subsystems/networking/ip-stack-architecture.svg create mode 100644 doc/subsystems/networking/ip-stack-data-flow.dia create mode 100644 doc/subsystems/networking/ip-stack-data-flow.png create mode 100644 doc/subsystems/networking/ip-stack-data-flow.svg create mode 100644 doc/subsystems/networking/network-management-api.rst create mode 100644 doc/subsystems/networking/networking-api-usage.rst create mode 100644 drivers/ethernet/eth_enc28j60_legacy.c create mode 100644 drivers/ieee802154/ieee802154_uart_pipe.c rename net/ip/contiki/sicslowpan/fragmentation.h => drivers/ieee802154/ieee802154_uart_pipe.h (54%) create mode 100644 drivers/slip/Kconfig create mode 100644 drivers/slip/Makefile create mode 100644 drivers/slip/slip.c rename net/ip/net_driver_loopback.h => include/drivers/ieee802154/cc2520.h (63%) create mode 100644 include/iot/dns_client.h create mode 100644 include/iot/http_parser.h create mode 100644 include/iot/mqtt.h create mode 100644 include/iot/mqtt_types.h create mode 100644 include/net/dhcpv4.h create mode 100644 include/net/ieee802154.h create mode 100644 include/net/ieee802154_radio.h delete mode 100644 include/net/ip_buf.h delete mode 100644 include/net/l2_buf.h create mode 100644 include/net/mii.h create mode 100644 include/net/net_event.h create mode 100644 include/net/net_mgmt.h delete mode 100644 include/net/net_socket.h create mode 100644 include/net/offload_ip.h create mode 100644 include/net/trickle.h delete mode 100644 include/net/uip/net_core.h delete mode 100644 include/net/uip/net_if.h delete mode 100644 include/net/uip/net_ip.h delete mode 100644 include/net/uip/net_socket.h create mode 100644 lib/iot/dns/Kconfig create mode 100644 lib/iot/dns/Makefile create mode 100644 lib/iot/dns/README create mode 100644 lib/iot/dns/dns_client.c rename {samples/net/dns_client/src => lib/iot/dns}/dns_pack.c (51%) rename {samples/net/dns_client/src => lib/iot/dns}/dns_pack.h (80%) rename samples/net/nats_clients/publisher/src/Makefile => lib/iot/http/Kconfig (56%) create mode 100644 lib/iot/http/Makefile create mode 100644 lib/iot/http/README_http_parser create mode 100644 lib/iot/http/http_parser.c create mode 100644 lib/iot/mqtt/Kconfig create mode 100644 lib/iot/mqtt/Makefile create mode 100644 lib/iot/mqtt/mqtt.c create mode 100644 lib/iot/mqtt/mqtt_pkt.c create mode 100644 lib/iot/mqtt/mqtt_pkt.h create mode 100644 lib/iot/zoap/link-format.c create mode 100644 lib/iot/zoap/link-format.h delete mode 100644 net/Makefile delete mode 100644 net/ip/Kconfig delete mode 100644 net/ip/Kconfig.debug delete mode 100644 net/ip/Makefile delete mode 100644 net/ip/cc2520_15_4_radio.h delete mode 100644 net/ip/contiki/contiki-conf.h delete mode 100644 net/ip/contiki/contiki-default-conf.h delete mode 100644 net/ip/contiki/contiki-lib.h delete mode 100644 net/ip/contiki/contiki-net.h delete mode 100644 net/ip/contiki/contiki-version.h delete mode 100644 net/ip/contiki/contiki.h delete mode 100644 net/ip/contiki/ip/dhcpc.c delete mode 100644 net/ip/contiki/ip/dhcpc.h delete mode 100644 net/ip/contiki/ip/psock.c delete mode 100644 net/ip/contiki/ip/psock.h delete mode 100644 net/ip/contiki/ip/simple-udp.c delete mode 100644 net/ip/contiki/ip/simple-udp.h delete mode 100644 net/ip/contiki/ip/tcpip.c delete mode 100644 net/ip/contiki/ip/tcpip.h delete mode 100644 net/ip/contiki/ip/udp-socket.c delete mode 100644 net/ip/contiki/ip/udp-socket.h delete mode 100644 net/ip/contiki/ip/uip-debug.c delete mode 100644 net/ip/contiki/ip/uip-debug.h delete mode 100644 net/ip/contiki/ip/uip-nameserver.c delete mode 100644 net/ip/contiki/ip/uip-nameserver.h delete mode 100644 net/ip/contiki/ip/uip-packetqueue.c delete mode 100644 net/ip/contiki/ip/uip-packetqueue.h delete mode 100644 net/ip/contiki/ip/uip-split.h delete mode 100644 net/ip/contiki/ip/uip-udp-packet.c delete mode 100644 net/ip/contiki/ip/uip-udp-packet.h delete mode 100644 net/ip/contiki/ip/uip.h delete mode 100644 net/ip/contiki/ip/uipaddr.h delete mode 100644 net/ip/contiki/ip/uiplib.c delete mode 100644 net/ip/contiki/ip/uiplib.h delete mode 100644 net/ip/contiki/ip/uipopt.h delete mode 100644 net/ip/contiki/ipv4/uip-neighbor.c delete mode 100644 net/ip/contiki/ipv4/uip-neighbor.h delete mode 100644 net/ip/contiki/ipv4/uip.c delete mode 100644 net/ip/contiki/ipv4/uip_arp.c delete mode 100644 net/ip/contiki/ipv4/uip_arp.h delete mode 100644 net/ip/contiki/ipv6/multicast/README.md delete mode 100644 net/ip/contiki/ipv6/multicast/roll-tm.c delete mode 100644 net/ip/contiki/ipv6/multicast/roll-tm.h delete mode 100644 net/ip/contiki/ipv6/multicast/smrf.c delete mode 100644 net/ip/contiki/ipv6/multicast/smrf.h delete mode 100644 net/ip/contiki/ipv6/multicast/uip-mcast6-engines.h delete mode 100644 net/ip/contiki/ipv6/multicast/uip-mcast6-route.c delete mode 100644 net/ip/contiki/ipv6/multicast/uip-mcast6-route.h delete mode 100644 net/ip/contiki/ipv6/multicast/uip-mcast6-stats.c delete mode 100644 net/ip/contiki/ipv6/multicast/uip-mcast6-stats.h delete mode 100644 net/ip/contiki/ipv6/multicast/uip-mcast6.h delete mode 100644 net/ip/contiki/ipv6/uip-ds6-nbr.c delete mode 100644 net/ip/contiki/ipv6/uip-ds6-nbr.h delete mode 100644 net/ip/contiki/ipv6/uip-ds6-route.c delete mode 100644 net/ip/contiki/ipv6/uip-ds6-route.h delete mode 100644 net/ip/contiki/ipv6/uip-ds6.c delete mode 100644 net/ip/contiki/ipv6/uip-ds6.h delete mode 100644 net/ip/contiki/ipv6/uip-icmp6.c delete mode 100644 net/ip/contiki/ipv6/uip-icmp6.h delete mode 100644 net/ip/contiki/ipv6/uip-nd6.c delete mode 100644 net/ip/contiki/ipv6/uip-nd6.h delete mode 100644 net/ip/contiki/ipv6/uip6.c delete mode 100644 net/ip/contiki/linkaddr.c delete mode 100644 net/ip/contiki/linkaddr.h delete mode 100644 net/ip/contiki/llsec/anti-replay.c delete mode 100644 net/ip/contiki/llsec/anti-replay.h delete mode 100644 net/ip/contiki/llsec/ccm-star.c delete mode 100644 net/ip/contiki/llsec/ccm-star.h delete mode 100644 net/ip/contiki/llsec/llsec.h delete mode 100644 net/ip/contiki/llsec/llsec802154.h delete mode 100644 net/ip/contiki/llsec/nullsec.c delete mode 100644 net/ip/contiki/llsec/nullsec.h delete mode 100644 net/ip/contiki/mac/csma.c delete mode 100644 net/ip/contiki/mac/csma.h delete mode 100644 net/ip/contiki/mac/frame802154.c delete mode 100644 net/ip/contiki/mac/frame802154.h delete mode 100644 net/ip/contiki/mac/framer-802154.c delete mode 100644 net/ip/contiki/mac/framer-802154.h delete mode 100644 net/ip/contiki/mac/framer-nullmac.c delete mode 100644 net/ip/contiki/mac/framer-nullmac.h delete mode 100644 net/ip/contiki/mac/framer.c delete mode 100644 net/ip/contiki/mac/framer.h delete mode 100644 net/ip/contiki/mac/handler-802154.c delete mode 100644 net/ip/contiki/mac/handler-802154.h delete mode 100644 net/ip/contiki/mac/mac-sequence.c delete mode 100644 net/ip/contiki/mac/mac-sequence.h delete mode 100644 net/ip/contiki/mac/mac.c delete mode 100644 net/ip/contiki/mac/mac.h delete mode 100644 net/ip/contiki/mac/nullmac.c delete mode 100644 net/ip/contiki/mac/nullmac.h delete mode 100644 net/ip/contiki/mac/rdc.h delete mode 100644 net/ip/contiki/mac/sicslowmac/sicslowmac.c delete mode 100644 net/ip/contiki/mac/sicslowmac/sicslowmac.h delete mode 100644 net/ip/contiki/mac/simplerdc.c delete mode 100644 net/ip/contiki/nbr-table.c delete mode 100644 net/ip/contiki/nbr-table.h delete mode 100644 net/ip/contiki/netstack.c delete mode 100644 net/ip/contiki/netstack.h delete mode 100644 net/ip/contiki/os/dev/nullradio.c delete mode 100644 net/ip/contiki/os/dev/nullradio.h delete mode 100644 net/ip/contiki/os/dev/radio.h delete mode 100644 net/ip/contiki/os/dev/slip-arch.c delete mode 100644 net/ip/contiki/os/dev/slip.c delete mode 100644 net/ip/contiki/os/dev/slip.h delete mode 100644 net/ip/contiki/os/dev/watchdog.h delete mode 100644 net/ip/contiki/os/lib/aes-128.c delete mode 100644 net/ip/contiki/os/lib/aes-128.h delete mode 100644 net/ip/contiki/os/lib/list.c delete mode 100644 net/ip/contiki/os/lib/list.h delete mode 100644 net/ip/contiki/os/lib/memb.c delete mode 100644 net/ip/contiki/os/lib/memb.h delete mode 100644 net/ip/contiki/os/lib/mmem.c delete mode 100644 net/ip/contiki/os/lib/mmem.h delete mode 100644 net/ip/contiki/os/lib/random.c delete mode 100644 net/ip/contiki/os/lib/random.h delete mode 100644 net/ip/contiki/os/rtimer-arch.h delete mode 100644 net/ip/contiki/os/sys/arg.c delete mode 100644 net/ip/contiki/os/sys/arg.h delete mode 100644 net/ip/contiki/os/sys/autostart.h delete mode 100644 net/ip/contiki/os/sys/cc.h delete mode 100644 net/ip/contiki/os/sys/clock.c delete mode 100644 net/ip/contiki/os/sys/clock.h delete mode 100644 net/ip/contiki/os/sys/ctimer.c delete mode 100644 net/ip/contiki/os/sys/ctimer.h delete mode 100644 net/ip/contiki/os/sys/energest.h delete mode 100644 net/ip/contiki/os/sys/etimer.c delete mode 100644 net/ip/contiki/os/sys/etimer.h delete mode 100644 net/ip/contiki/os/sys/inttypes.h delete mode 100644 net/ip/contiki/os/sys/lc-switch.h delete mode 100644 net/ip/contiki/os/sys/lc.h delete mode 100644 net/ip/contiki/os/sys/loader.h delete mode 100644 net/ip/contiki/os/sys/log.h delete mode 100644 net/ip/contiki/os/sys/process.c delete mode 100644 net/ip/contiki/os/sys/process.h delete mode 100644 net/ip/contiki/os/sys/procinit.h delete mode 100644 net/ip/contiki/os/sys/pt.h delete mode 100644 net/ip/contiki/os/sys/rtimer.c delete mode 100644 net/ip/contiki/os/sys/rtimer.h delete mode 100644 net/ip/contiki/os/sys/stimer.c delete mode 100644 net/ip/contiki/os/sys/stimer.h delete mode 100644 net/ip/contiki/os/sys/time.h delete mode 100644 net/ip/contiki/os/sys/timer.c delete mode 100644 net/ip/contiki/os/sys/timer.h delete mode 100644 net/ip/contiki/os/sys/types.h delete mode 100644 net/ip/contiki/packetbuf.c delete mode 100644 net/ip/contiki/packetbuf.h delete mode 100644 net/ip/contiki/queuebuf.c delete mode 100644 net/ip/contiki/queuebuf.h delete mode 100644 net/ip/contiki/rpl/rpl-conf.h delete mode 100644 net/ip/contiki/rpl/rpl-dag.c delete mode 100644 net/ip/contiki/rpl/rpl-ext-header.c delete mode 100644 net/ip/contiki/rpl/rpl-icmp6.c delete mode 100644 net/ip/contiki/rpl/rpl-mrhof.c delete mode 100644 net/ip/contiki/rpl/rpl-of0.c delete mode 100644 net/ip/contiki/rpl/rpl-private.h delete mode 100644 net/ip/contiki/rpl/rpl-timers.c delete mode 100644 net/ip/contiki/rpl/rpl.c delete mode 100644 net/ip/contiki/rpl/rpl.h delete mode 100644 net/ip/contiki/sicslowpan/compression.h delete mode 100644 net/ip/contiki/sicslowpan/null_compression.c delete mode 100644 net/ip/contiki/sicslowpan/null_compression.h delete mode 100644 net/ip/contiki/sicslowpan/null_fragmentation.c delete mode 100644 net/ip/contiki/sicslowpan/null_fragmentation.h delete mode 100644 net/ip/contiki/sicslowpan/sicslowpan_compression.c delete mode 100644 net/ip/contiki/sicslowpan/sicslowpan_compression.h delete mode 100644 net/ip/contiki/sicslowpan/sicslowpan_fragmentation.c delete mode 100644 net/ip/contiki/sicslowpan/sicslowpan_fragmentation.h delete mode 100644 net/ip/contiki/trickle/trickle-timer.c delete mode 100644 net/ip/contiki/trickle/trickle-timer.h delete mode 100644 net/ip/contiki/uip-log.c delete mode 100644 net/ip/dummy_15_4_radio.c delete mode 100644 net/ip/dummy_15_4_radio.h delete mode 100644 net/ip/er-coap/er-coap-block1.c delete mode 100644 net/ip/er-coap/er-coap-block1.h delete mode 100644 net/ip/er-coap/er-coap-conf.h delete mode 100644 net/ip/er-coap/er-coap-constants.h delete mode 100644 net/ip/er-coap/er-coap-context.c delete mode 100644 net/ip/er-coap/er-coap-context.h delete mode 100644 net/ip/er-coap/er-coap-engine.c delete mode 100644 net/ip/er-coap/er-coap-engine.h delete mode 100644 net/ip/er-coap/er-coap-observe-client.c delete mode 100644 net/ip/er-coap/er-coap-observe-client.h delete mode 100644 net/ip/er-coap/er-coap-observe.c delete mode 100644 net/ip/er-coap/er-coap-observe.h delete mode 100644 net/ip/er-coap/er-coap-res-well-known-core.c delete mode 100644 net/ip/er-coap/er-coap-separate.c delete mode 100644 net/ip/er-coap/er-coap-separate.h delete mode 100644 net/ip/er-coap/er-coap-transactions.c delete mode 100644 net/ip/er-coap/er-coap-transactions.h delete mode 100644 net/ip/er-coap/er-coap.c delete mode 100644 net/ip/er-coap/er-coap.h delete mode 100644 net/ip/ip_buf.c delete mode 100644 net/ip/l2_buf.c delete mode 100644 net/ip/net_context.c delete mode 100644 net/ip/net_core.c delete mode 100644 net/ip/net_driver_15_4.c delete mode 100644 net/ip/net_driver_15_4.h delete mode 100644 net/ip/net_driver_bt.c delete mode 100644 net/ip/net_driver_bt.h delete mode 100644 net/ip/net_driver_ethernet.c delete mode 100644 net/ip/net_driver_ethernet.h delete mode 100644 net/ip/net_driver_loopback.c delete mode 100644 net/ip/net_driver_slip.c delete mode 100644 net/ip/net_driver_slip.h delete mode 100644 net/ip/rest-engine/rest-constants.h delete mode 100644 net/ip/rest-engine/rest-engine.c delete mode 100644 net/ip/rest-engine/rest-engine.h delete mode 100644 net/ip/tinydtls/.gitignore delete mode 100644 net/ip/tinydtls/LICENSE delete mode 100644 net/ip/tinydtls/Makefile.in delete mode 100644 net/ip/tinydtls/Makefile.tinydtls delete mode 100644 net/ip/tinydtls/README delete mode 100644 net/ip/tinydtls/aes/Makefile.in delete mode 100644 net/ip/tinydtls/aes/rijndael.c delete mode 100644 net/ip/tinydtls/aes/rijndael.h delete mode 100644 net/ip/tinydtls/alert.h delete mode 100644 net/ip/tinydtls/ccm.c delete mode 100644 net/ip/tinydtls/ccm.h delete mode 100644 net/ip/tinydtls/configure.in delete mode 100644 net/ip/tinydtls/crypto.c delete mode 100644 net/ip/tinydtls/crypto.h delete mode 100644 net/ip/tinydtls/debug.c delete mode 100644 net/ip/tinydtls/debug.h delete mode 100644 net/ip/tinydtls/doc/Doxyfile.in delete mode 100644 net/ip/tinydtls/doc/DoxygenLayout.xml delete mode 100644 net/ip/tinydtls/doc/Makefile.in delete mode 100644 net/ip/tinydtls/dtls.c delete mode 100644 net/ip/tinydtls/dtls.h delete mode 100644 net/ip/tinydtls/dtls_config.h delete mode 100644 net/ip/tinydtls/dtls_time.c delete mode 100644 net/ip/tinydtls/dtls_time.h delete mode 100644 net/ip/tinydtls/ecc/Makefile.contiki delete mode 100644 net/ip/tinydtls/ecc/Makefile.ecc delete mode 100644 net/ip/tinydtls/ecc/Makefile.in delete mode 100644 net/ip/tinydtls/ecc/ecc.c delete mode 100644 net/ip/tinydtls/ecc/ecc.h delete mode 100644 net/ip/tinydtls/ecc/test_helper.c delete mode 100644 net/ip/tinydtls/ecc/test_helper.h delete mode 100644 net/ip/tinydtls/ecc/testecc.c delete mode 100644 net/ip/tinydtls/ecc/testfield.c delete mode 100644 net/ip/tinydtls/examples/contiki/Makefile.in delete mode 100644 net/ip/tinydtls/examples/contiki/dtls-client.c delete mode 100644 net/ip/tinydtls/examples/contiki/dtls-server.c delete mode 100644 net/ip/tinydtls/global.h delete mode 100644 net/ip/tinydtls/hmac.c delete mode 100644 net/ip/tinydtls/hmac.h delete mode 100644 net/ip/tinydtls/netq.c delete mode 100644 net/ip/tinydtls/netq.h delete mode 100644 net/ip/tinydtls/numeric.h delete mode 100644 net/ip/tinydtls/peer.c delete mode 100644 net/ip/tinydtls/peer.h delete mode 100644 net/ip/tinydtls/platform-specific/Makefile.in delete mode 100644 net/ip/tinydtls/platform-specific/config-cc2538dk.h delete mode 100644 net/ip/tinydtls/platform-specific/config-econotag.h delete mode 100644 net/ip/tinydtls/platform-specific/config-minimal-net.h delete mode 100644 net/ip/tinydtls/platform-specific/config-native.h delete mode 100644 net/ip/tinydtls/platform-specific/config-sky.h delete mode 100644 net/ip/tinydtls/platform-specific/config-wismote.h delete mode 100644 net/ip/tinydtls/platform-specific/platform.h delete mode 100644 net/ip/tinydtls/prng.h delete mode 100644 net/ip/tinydtls/session.c delete mode 100644 net/ip/tinydtls/session.h delete mode 100644 net/ip/tinydtls/sha2/Makefile.in delete mode 100644 net/ip/tinydtls/sha2/README delete mode 100644 net/ip/tinydtls/sha2/sha2.c delete mode 100644 net/ip/tinydtls/sha2/sha2.h delete mode 100644 net/ip/tinydtls/sha2/sha2prog.c delete mode 100644 net/ip/tinydtls/sha2/sha2speed.c delete mode 100755 net/ip/tinydtls/sha2/sha2test.pl delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector001.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector001.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector002.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector002.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector003.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector003.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector004.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector004.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector005.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector005.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector006.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector006.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector007.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector007.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector008.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector008.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector009.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector009.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector010.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector010.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector011.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector011.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector012.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector012.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector013.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector013.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector014.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector014.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector015.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector015.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector016.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector016.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector017.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector017.info delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector018.dat delete mode 100644 net/ip/tinydtls/sha2/testvectors/vector018.info delete mode 100644 net/ip/tinydtls/state.h delete mode 100644 net/ip/tinydtls/t_list.h delete mode 100644 net/ip/tinydtls/tests/Makefile.in delete mode 100644 net/ip/tinydtls/tests/cbc_aes128-test.c delete mode 100644 net/ip/tinydtls/tests/cbc_aes128-testdata.c delete mode 100644 net/ip/tinydtls/tests/ccm-test.c delete mode 100644 net/ip/tinydtls/tests/ccm-testdata.c delete mode 100644 net/ip/tinydtls/tests/dsrv-test.c delete mode 100644 net/ip/tinydtls/tests/dtls-client.c delete mode 100644 net/ip/tinydtls/tests/dtls-server.c delete mode 100644 net/ip/tinydtls/tests/netq-test.c delete mode 100644 net/ip/tinydtls/tests/pcap.c delete mode 100644 net/ip/tinydtls/tests/prf-test.c delete mode 100644 net/ip/tinydtls/tests/secure-server.c delete mode 100644 net/ip/tinydtls/tinydtls.h delete mode 100644 net/ip/tinydtls/tinydtls.h.in delete mode 100644 samples/net/coap_observe_client/Makefile delete mode 100644 samples/net/coap_observe_client/prj.mdef delete mode 100644 samples/net/coap_observe_client/prj_802154.conf delete mode 100644 samples/net/coap_observe_client/prj_bt.conf delete mode 100644 samples/net/coap_observe_client/prj_slip.conf delete mode 100644 samples/net/coap_observe_client/src/Makefile delete mode 100644 samples/net/coap_observe_client/src/coap-observe-client.c delete mode 100644 samples/net/coap_observe_client/testcase.ini delete mode 100644 samples/net/coap_server/Makefile delete mode 100644 samples/net/coap_server/prj.mdef delete mode 100644 samples/net/coap_server/prj_802154.conf delete mode 100644 samples/net/coap_server/prj_bt.conf delete mode 100644 samples/net/coap_server/prj_slip.conf delete mode 100644 samples/net/coap_server/src/Makefile delete mode 100644 samples/net/coap_server/src/coap-server.c delete mode 100644 samples/net/coap_server/src/er-plugtest.h delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-create1.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-create2.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-create3.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-large-create.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-large-update.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-large.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-links.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-locquery.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-longpath.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-multi.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-obs.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-path.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-query.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-separate.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-test.c delete mode 100644 samples/net/coap_server/src/resources/res-plugtest-validate.c delete mode 100644 samples/net/coap_server/testcase.ini create mode 100644 samples/net/common/cc2520_a101.c delete mode 100644 samples/net/dhcp_client/prj.mdef delete mode 100644 samples/net/dhcp_client/prj_frdm_k64f.conf delete mode 100644 samples/net/dhcp_client/prj_galileo.conf delete mode 100644 samples/net/dhcp_client/src/Makefile create mode 100644 samples/net/dhcpv4_client/Makefile rename {tests/net/zoap => samples/net/dhcpv4_client}/prj.mdef (82%) create mode 100644 samples/net/dhcpv4_client/prj_x86.conf create mode 100644 samples/net/dhcpv4_client/src/Makefile create mode 100644 samples/net/dhcpv4_client/src/main.c delete mode 100644 samples/net/dns_client/KNOWN_ISSUES delete mode 100644 samples/net/dns_client/README delete mode 100644 samples/net/dns_client/README_API create mode 100644 samples/net/dns_client/README_IPv4 create mode 100644 samples/net/dns_client/README_IPv6 create mode 100644 samples/net/dns_client/README_arduino_101 create mode 100644 samples/net/dns_client/prj_arduino_101.conf delete mode 100644 samples/net/dns_client/prj_galileo.conf create mode 100644 samples/net/dns_client/prj_qemu_x86.conf rename samples/net/dns_client/src/{dns_utils.h => config.h} (57%) delete mode 100644 samples/net/dns_client/src/dns_utils.c delete mode 100644 samples/net/dns_client/src/tcp.c delete mode 100644 samples/net/dtls_client/prj.mdef delete mode 100644 samples/net/dtls_client/prj_802154.conf delete mode 100644 samples/net/dtls_client/prj_qemu.conf delete mode 100644 samples/net/dtls_client/prj_slip.conf delete mode 100644 samples/net/dtls_client/src/Makefile delete mode 100644 samples/net/dtls_client/src/dtls-client.c delete mode 100644 samples/net/dtls_server/Makefile delete mode 100644 samples/net/dtls_server/prj.mdef delete mode 100644 samples/net/dtls_server/prj_802154.conf delete mode 100644 samples/net/dtls_server/prj_bt.conf delete mode 100644 samples/net/dtls_server/prj_qemu.conf delete mode 100644 samples/net/dtls_server/prj_slip.conf delete mode 100644 samples/net/dtls_server/src/Makefile delete mode 100644 samples/net/dtls_server/src/dtls-server.c delete mode 100644 samples/net/echo_client/prj.mdef delete mode 100644 samples/net/echo_client/prj_802154.conf create mode 100644 samples/net/echo_client/prj_arduino_101.conf create mode 100644 samples/net/echo_client/prj_arduino_101_cc2520.conf create mode 100644 samples/net/echo_client/prj_cc2520.conf delete mode 100644 samples/net/echo_client/prj_qemu.conf create mode 100644 samples/net/echo_client/prj_qemu_802154.conf create mode 100644 samples/net/echo_client/prj_qemu_x86.conf delete mode 100644 samples/net/echo_server/prj.mdef delete mode 100644 samples/net/echo_server/prj_802154.conf create mode 100644 samples/net/echo_server/prj_arduino_101.conf create mode 100644 samples/net/echo_server/prj_arduino_101_cc2520.conf create mode 100644 samples/net/echo_server/prj_cc2520.conf delete mode 100644 samples/net/echo_server/prj_ethernet.conf create mode 100644 samples/net/echo_server/prj_frdm_k64f.conf delete mode 100644 samples/net/echo_server/prj_qemu.conf create mode 100644 samples/net/echo_server/prj_qemu_802154.conf create mode 100644 samples/net/echo_server/prj_qemu_x86.conf rename samples/net/{nats_clients/subscriber => ieee802154/cc2520}/Makefile (82%) create mode 100644 samples/net/ieee802154/cc2520/prj.conf create mode 100644 samples/net/ieee802154/cc2520/src/Makefile rename samples/net/{dhcp_client/src/dhcp-client.c => ieee802154/cc2520/src/ieee802154_test.c} (56%) create mode 100644 samples/net/ieee802154/qemu/Makefile rename samples/net/{test_15_4/Makefile.15_4 => ieee802154/qemu/Makefile.qemu} (67%) create mode 100644 samples/net/ieee802154/qemu/prj.conf create mode 100644 samples/net/ieee802154/qemu/src/Makefile create mode 100644 samples/net/ieee802154/qemu/src/ieee802154_qemu_test.c rename samples/net/{dtls_client => leds_demo}/Makefile (80%) create mode 100644 samples/net/leds_demo/prj.conf create mode 100644 samples/net/leds_demo/prj_802154.conf create mode 100644 samples/net/leds_demo/src/Makefile create mode 100644 samples/net/leds_demo/src/leds-demo.c rename samples/net/{dhcp_client => leds_demo}/testcase.ini (52%) delete mode 100644 samples/net/loopback_test/Makefile delete mode 100644 samples/net/loopback_test/prj.conf delete mode 100644 samples/net/loopback_test/prj_10000.conf delete mode 100644 samples/net/loopback_test/sample.tc delete mode 100644 samples/net/loopback_test/src/Makefile delete mode 100644 samples/net/loopback_test/src/network.c delete mode 100644 samples/net/loopback_test/testcase.ini rename samples/net/{dhcp_client => mbedtls_dtlsclient}/Makefile (89%) create mode 100644 samples/net/mbedtls_dtlsclient/README create mode 100644 samples/net/mbedtls_dtlsclient/README_arduino_101 create mode 100644 samples/net/mbedtls_dtlsclient/prj_arduino_101.conf create mode 100644 samples/net/mbedtls_dtlsclient/prj_qemu_x86.conf rename samples/net/{paho_mqtt_clients/publisher => mbedtls_dtlsclient/src}/Makefile (79%) create mode 100644 samples/net/mbedtls_dtlsclient/src/dtls_client.c create mode 100644 samples/net/mbedtls_dtlsclient/src/udp.c rename samples/net/{dns_client/src/tcp.h => mbedtls_dtlsclient/src/udp.h} (69%) rename samples/net/{dns_client/src/tcp_config.h => mbedtls_dtlsclient/src/udp_cfg.h} (58%) create mode 100644 samples/net/mbedtls_dtlsclient/testcase.ini delete mode 100644 samples/net/nats_clients/KNOWN_ISSUES delete mode 100644 samples/net/nats_clients/README delete mode 100644 samples/net/nats_clients/publisher/README delete mode 100644 samples/net/nats_clients/publisher/prj_galileo.conf delete mode 100644 samples/net/nats_clients/publisher/src/app_buf.h delete mode 100644 samples/net/nats_clients/publisher/src/main.c delete mode 100644 samples/net/nats_clients/publisher/src/nats_client.c delete mode 100644 samples/net/nats_clients/publisher/src/nats_client.h delete mode 100644 samples/net/nats_clients/publisher/src/nats_pack.c delete mode 100644 samples/net/nats_clients/publisher/src/nats_pack.h delete mode 100644 samples/net/nats_clients/publisher/src/netz.c delete mode 100644 samples/net/nats_clients/publisher/src/netz.h delete mode 100644 samples/net/nats_clients/subscriber/Kbuild delete mode 100644 samples/net/nats_clients/subscriber/README delete mode 100644 samples/net/nats_clients/subscriber/prj_galileo.conf delete mode 100644 samples/net/nats_clients/subscriber/src/Makefile delete mode 100644 samples/net/nats_clients/subscriber/src/main.c delete mode 100644 samples/net/paho_mqtt_clients/publisher/KNOWN_ISSUES delete mode 100644 samples/net/paho_mqtt_clients/publisher/Kbuild delete mode 100644 samples/net/paho_mqtt_clients/publisher/README delete mode 100644 samples/net/paho_mqtt_clients/publisher/prj_galileo.conf delete mode 100644 samples/net/paho_mqtt_clients/publisher/src/Makefile delete mode 100644 samples/net/paho_mqtt_clients/publisher/src/app_buf.h delete mode 100644 samples/net/paho_mqtt_clients/publisher/src/main.c delete mode 100644 samples/net/paho_mqtt_clients/publisher/src/mqtt.c delete mode 100644 samples/net/paho_mqtt_clients/publisher/src/mqtt.h delete mode 100644 samples/net/paho_mqtt_clients/publisher/src/mqtt_pack.c delete mode 100644 samples/net/paho_mqtt_clients/publisher/src/mqtt_pack.h delete mode 100644 samples/net/paho_mqtt_clients/publisher/src/netz.c delete mode 100644 samples/net/paho_mqtt_clients/publisher/src/netz.h delete mode 100644 samples/net/paho_mqtt_clients/subscriber/KNOWN_ISSUES delete mode 100644 samples/net/paho_mqtt_clients/subscriber/Kbuild delete mode 100644 samples/net/paho_mqtt_clients/subscriber/README delete mode 100644 samples/net/paho_mqtt_clients/subscriber/prj_galileo.conf delete mode 100644 samples/net/paho_mqtt_clients/subscriber/src/Makefile delete mode 100644 samples/net/paho_mqtt_clients/subscriber/src/main.c delete mode 100644 samples/net/test/test_15_4/Makefile delete mode 100644 samples/net/test/test_15_4/README delete mode 100644 samples/net/test/test_15_4/prj.conf delete mode 100644 samples/net/test/test_15_4/prj.mdef delete mode 100644 samples/net/test_15_4/Makefile delete mode 100644 samples/net/test_15_4/README delete mode 100644 samples/net/test_15_4/prj.conf delete mode 100644 samples/net/test_15_4/prj.mdef delete mode 100644 samples/net/test_15_4/sample.tc delete mode 100644 samples/net/test_15_4/src/Makefile delete mode 100644 samples/net/test_15_4/src/network.c delete mode 100644 samples/net/trickle-legacy/Makefile delete mode 100644 samples/net/trickle-legacy/prj.mdef delete mode 100644 samples/net/trickle-legacy/prj_802154.conf delete mode 100644 samples/net/trickle-legacy/prj_bt.conf delete mode 100644 samples/net/trickle-legacy/prj_ethernet.conf delete mode 100644 samples/net/trickle-legacy/prj_qemu.conf delete mode 100644 samples/net/trickle-legacy/prj_slip.conf delete mode 100644 samples/net/trickle-legacy/src/Makefile delete mode 100644 samples/net/trickle-legacy/src/main.c create mode 100644 samples/net/wpan_serial/Makefile create mode 100644 samples/net/wpan_serial/README create mode 100644 samples/net/wpan_serial/prj.conf create mode 100644 samples/net/wpan_serial/src/Makefile create mode 100644 samples/net/wpan_serial/src/main.c rename samples/net/{test_15_4 => wpan_serial}/testcase.ini (59%) create mode 100644 samples/net/wpanusb/Makefile create mode 100644 samples/net/wpanusb/README create mode 100644 samples/net/wpanusb/prj-legacy.conf create mode 100644 samples/net/wpanusb/prj.conf create mode 100644 samples/net/wpanusb/src/Makefile create mode 100644 samples/net/wpanusb/src/wpanusb.c create mode 100644 samples/net/wpanusb/src/wpanusb.h create mode 100644 samples/net/wpanusb/wpan-radio-spec.txt delete mode 100644 samples/net/zoap_client/prj.mdef delete mode 100644 samples/net/zoap_server/prj.mdef delete mode 100644 samples/net/zperf/prj.mdef create mode 100644 samples/net/zperf/prj_frdm_k64f.conf create mode 100644 samples/net/zperf/prj_frdm_k64f_prof.conf delete mode 100644 samples/net/zperf/prj_prof.mdef create mode 100644 samples/net/zperf/prj_qemu_x86.conf create mode 100644 samples/net/zperf/prj_quark_se_c1000_devboard.conf rename {net => subsys/net}/Kconfig (72%) create mode 100644 subsys/net/Makefile create mode 100644 subsys/net/TODO rename {net => subsys/net}/buf.c (100%) create mode 100644 subsys/net/ip/6lo.c create mode 100644 subsys/net/ip/6lo.h create mode 100644 subsys/net/ip/6lo_private.h create mode 100644 subsys/net/ip/Kconfig create mode 100644 subsys/net/ip/Kconfig.debug create mode 100644 subsys/net/ip/Kconfig.ipv4 create mode 100644 subsys/net/ip/Kconfig.ipv6 create mode 100644 subsys/net/ip/Kconfig.mgmt create mode 100644 subsys/net/ip/Kconfig.rpl create mode 100644 subsys/net/ip/Kconfig.samples create mode 100644 subsys/net/ip/Kconfig.stack create mode 100644 subsys/net/ip/Makefile create mode 100644 subsys/net/ip/connection.c create mode 100644 subsys/net/ip/connection.h create mode 100644 subsys/net/ip/dhcpv4.c create mode 100644 subsys/net/ip/icmpv4.c create mode 100644 subsys/net/ip/icmpv4.h create mode 100644 subsys/net/ip/icmpv6.c create mode 100644 subsys/net/ip/icmpv6.h create mode 100644 subsys/net/ip/ipv4.c create mode 100644 subsys/net/ip/ipv4.h create mode 100644 subsys/net/ip/ipv6.c create mode 100644 subsys/net/ip/ipv6.h create mode 100644 subsys/net/ip/l2/Kconfig create mode 100644 subsys/net/ip/l2/Makefile create mode 100644 subsys/net/ip/l2/arp.c create mode 100644 subsys/net/ip/l2/bluetooth.c create mode 100644 subsys/net/ip/l2/dummy.c create mode 100644 subsys/net/ip/l2/ethernet.c create mode 100644 subsys/net/ip/l2/ieee802154/Kconfig create mode 100644 subsys/net/ip/l2/ieee802154/Kconfig.radio create mode 100644 subsys/net/ip/l2/ieee802154/Makefile create mode 100644 subsys/net/ip/l2/ieee802154/ieee802154.c create mode 100644 subsys/net/ip/l2/ieee802154/ieee802154_fragment.c create mode 100644 subsys/net/ip/l2/ieee802154/ieee802154_fragment.h create mode 100644 subsys/net/ip/l2/ieee802154/ieee802154_frame.c create mode 100644 subsys/net/ip/l2/ieee802154/ieee802154_frame.h create mode 100644 subsys/net/ip/l2/ieee802154/ieee802154_mgmt.c create mode 100644 subsys/net/ip/l2/ieee802154/ieee802154_radio_aloha.c create mode 100644 subsys/net/ip/l2/ieee802154/ieee802154_radio_csma_ca.c create mode 100644 subsys/net/ip/l2/ieee802154/ieee802154_radio_utils.h create mode 100644 subsys/net/ip/nbr.c create mode 100644 subsys/net/ip/nbr.h create mode 100644 subsys/net/ip/nbuf.c create mode 100644 subsys/net/ip/net_context.c create mode 100644 subsys/net/ip/net_core.c create mode 100644 subsys/net/ip/net_if.c create mode 100644 subsys/net/ip/net_mgmt.c create mode 100644 subsys/net/ip/net_private.h create mode 100644 subsys/net/ip/net_shell.c rename net/ip/tinydtls/platform-specific/config-zephyr.h => subsys/net/ip/net_shell.h (68%) create mode 100644 subsys/net/ip/route.c create mode 100644 subsys/net/ip/route.h create mode 100644 subsys/net/ip/rpl-mrhof.c create mode 100644 subsys/net/ip/rpl-of0.c create mode 100644 subsys/net/ip/rpl.c create mode 100644 subsys/net/ip/rpl.h create mode 100644 subsys/net/ip/tcp.c create mode 100644 subsys/net/ip/tcp.h create mode 100644 subsys/net/ip/trickle.c create mode 100644 subsys/net/ip/udp.h create mode 100644 subsys/net/ip/utils.c rename {samples/net/nats_clients/publisher => tests/iot/test_http_header}/Makefile (93%) create mode 100644 tests/iot/test_http_header/README create mode 100644 tests/iot/test_http_header/prj.conf rename {samples/net/paho_mqtt_clients/subscriber => tests/iot/test_http_header/src}/Makefile (79%) create mode 100644 tests/iot/test_http_header/src/test_http_header.c create mode 100644 tests/iot/test_http_header/testcase.ini create mode 100644 tests/iot/test_mqtt_packet/Makefile create mode 100644 tests/iot/test_mqtt_packet/README create mode 100644 tests/iot/test_mqtt_packet/prj.conf create mode 100644 tests/iot/test_mqtt_packet/src/Makefile create mode 100644 tests/iot/test_mqtt_packet/src/test_mqtt_packet.c create mode 100644 tests/iot/test_mqtt_packet/testcase.ini create mode 100644 tests/net/6lo/Makefile create mode 100644 tests/net/6lo/prj.conf create mode 100644 tests/net/6lo/src/Makefile create mode 100644 tests/net/6lo/src/main.c create mode 100644 tests/net/6lo/testcase.ini create mode 100644 tests/net/arp/Makefile create mode 100644 tests/net/arp/prj.conf create mode 100644 tests/net/arp/src/Makefile create mode 100644 tests/net/arp/src/main.c rename {samples/net/dtls_client => tests/net/arp}/testcase.ini (79%) create mode 100644 tests/net/context/Makefile create mode 100644 tests/net/context/prj.conf create mode 100644 tests/net/context/src/Makefile create mode 100644 tests/net/context/src/main.c rename {samples/net/dtls_server => tests/net/context}/testcase.ini (78%) create mode 100644 tests/net/dhcpv4/Makefile create mode 100644 tests/net/dhcpv4/prj.conf create mode 100644 tests/net/dhcpv4/src/Makefile create mode 100644 tests/net/dhcpv4/src/main.c create mode 100644 tests/net/dhcpv4/testcase.ini create mode 100644 tests/net/icmpv6/Makefile create mode 100644 tests/net/icmpv6/prj.conf create mode 100644 tests/net/icmpv6/src/Makefile create mode 100644 tests/net/icmpv6/src/main.c create mode 100644 tests/net/icmpv6/testcase.ini create mode 100644 tests/net/ieee802154/fragment/Makefile create mode 100644 tests/net/ieee802154/fragment/prj.conf create mode 100644 tests/net/ieee802154/fragment/src/Makefile create mode 100644 tests/net/ieee802154/fragment/src/main.c create mode 100644 tests/net/ieee802154/fragment/testcase.ini create mode 100644 tests/net/ieee802154/l2/Makefile create mode 100644 tests/net/ieee802154/l2/prj.conf create mode 100644 tests/net/ieee802154/l2/src/Makefile create mode 100644 tests/net/ieee802154/l2/src/ieee802154_fake_driver.c create mode 100644 tests/net/ieee802154/l2/src/ieee802154_test.c create mode 100644 tests/net/ieee802154/l2/testcase.ini create mode 100644 tests/net/ip-addr/Makefile create mode 100644 tests/net/ip-addr/prj.conf create mode 100644 tests/net/ip-addr/src/Makefile create mode 100644 tests/net/ip-addr/src/main.c create mode 100644 tests/net/ip-addr/testcase.ini create mode 100644 tests/net/ipv6/Makefile create mode 100644 tests/net/ipv6/prj.conf create mode 100644 tests/net/ipv6/src/Makefile create mode 100644 tests/net/ipv6/src/main.c rename {samples/net/nats_clients/subscriber => tests/net/ipv6}/testcase.ini (66%) create mode 100644 tests/net/mgmt/Makefile create mode 100644 tests/net/mgmt/prj.conf create mode 100644 tests/net/mgmt/src/Makefile create mode 100644 tests/net/mgmt/src/mgmt.c create mode 100644 tests/net/mgmt/testcase.ini create mode 100644 tests/net/nbuf/Makefile create mode 100644 tests/net/nbuf/prj.conf create mode 100644 tests/net/nbuf/src/Makefile create mode 100644 tests/net/nbuf/src/main.c create mode 100644 tests/net/nbuf/testcase.ini create mode 100644 tests/net/neighbor/Makefile create mode 100644 tests/net/neighbor/prj.conf create mode 100644 tests/net/neighbor/src/Makefile create mode 100644 tests/net/neighbor/src/main.c create mode 100644 tests/net/neighbor/testcase.ini create mode 100644 tests/net/route/Makefile create mode 100644 tests/net/route/prj.conf create mode 100644 tests/net/route/src/Makefile create mode 100644 tests/net/route/src/main.c create mode 100644 tests/net/route/testcase.ini create mode 100644 tests/net/rpl/Makefile create mode 100644 tests/net/rpl/prj.conf create mode 100644 tests/net/rpl/src/Makefile create mode 100644 tests/net/rpl/src/main.c create mode 100644 tests/net/rpl/testcase.ini create mode 100644 tests/net/tcp/Makefile create mode 100644 tests/net/tcp/prj.conf create mode 100644 tests/net/tcp/src/Makefile create mode 100644 tests/net/tcp/src/main.c rename {samples/net/nats_clients/publisher => tests/net/tcp}/testcase.ini (66%) create mode 100644 tests/net/trickle/Makefile create mode 100644 tests/net/trickle/prj.conf create mode 100644 tests/net/trickle/src/Makefile create mode 100644 tests/net/trickle/src/main.c create mode 100644 tests/net/trickle/testcase.ini create mode 100644 tests/net/udp/Makefile create mode 100644 tests/net/udp/prj.conf create mode 100644 tests/net/udp/src/Makefile create mode 100644 tests/net/udp/src/main.c create mode 100644 tests/net/udp/testcase.ini create mode 100644 tests/net/utils/Makefile create mode 100644 tests/net/utils/prj.conf create mode 100644 tests/net/utils/src/Makefile create mode 100644 tests/net/utils/src/main.c create mode 100644 tests/net/utils/testcase.ini Change-Id: I7e3f8499d40fa903646278eae125ecaeab18cc17 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> |
||
Tomasz Bursztyka
|
efe6f50892 |
drivers: ieee802154: cc2520: Debug cleanup
- Removing SYS_LOG_NO_NEWLINE - Enabling gpio/exceptions print out on full debug mode - Fixing style issues around debug routine calls Change-Id: I5e4c01c9051a6aae169269d4bfddd4fca0365faa Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> |
||
Tomasz Bursztyka
|
589a361e53 |
drivers: ieee802154: cc2520: Rename RX stack Kconfig option
Fibers do not exist anymore in unified kernel. Also, let's just use that option directly so removing the internal define which is then useless. Change-Id: I1179d84401934b339d3a9ccd12f6145a120bcb2f Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> |
||
Tomasz Bursztyka
|
386b2f9ec9 |
drivers: ieee802154: cc2520: Let's use only symetrical tx/rx spi buffer
Other driver than QMSI might have this limitation. Let's wait for a future rework of SPI API to properly fix that. Change-Id: Ibad382ce86e7479961b275c4851abf88ed581023 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> |
||
Tomasz Bursztyka
|
562f9c1c2e |
net: ieee802154: Add support for big endian
Structures attribute need to be ordered according to endianness. Change-Id: Ib3053728cbc49e54631057c779aba0f16aace283 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> |
||
Jukka Rissanen
|
5ad60c8ee6 |
doc: net: Fix the path and description of the IP stack
As the Contiki uIP stack is no more there remove any reference to it. The path to IP stack is also set correctly. Change-Id: Ia2e10514f173cf8083d6dd258111a901987bd038 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> |
||
Jukka Rissanen
|
2f273a2572 |
MAINTAINERS: Fix the location of IP stack
Change the path to IP stack as it was moved from net/ to subsys/net/ Change-Id: I6fee4939e9b4d137d0e1bd2ff98178e2c7c90959 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> |
||
Tomasz Bursztyka
|
f3c1b442ba |
samples: net: echo apps: Add cc2520 configuration for arduino_101
CC2520 is not embedded on an arduino_101, it is however possible to wire one, and thus it requires to provide cc2520_configure_gpios() function. This one, being common to a101 is found in samples/net/common. Change-Id: I86f2734847edb3f6a968522afccc3099ed854d13 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> |
||
Tomasz Bursztyka
|
ba90139cbd |
ieee802154: cc2520: Externalize how GPIOs are configured
Currently it's only possible to configure those GPIOs through boards.<h/c> files and thus it's not relevant for board that do not embed cc2520 but might get one wired to it, unlike quark_se_c1000_devboard which directly embeds one cc2520. Change-Id: I819bc1d2de707ea12eb70dc60a40b28f92666e51 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> |
||
Flavio Santes
|
a1dc687b5d |
iot/http: Add test-case for HTTP header fields
This commit adds the following routines: - test_invalid_header_content - test_invalid_header_content - test_invalid_header_field - test_invalid_header_field - test_preserve_data - test_parse_url - test_method_str - test_header_nread_value - test_double_content_length_error - test_chunked_content_length_error - test_header_cr_no_lf_error - test_invalid_header_field_token_error - test_invalid_header_field_content_error - test_double_content_length_error - test_chunked_content_length_error - test_header_cr_no_lf_error - test_invalid_header_field_token_error - test_invalid_header_field_content_error Origin: https://github.com/nodejs/http-parser/releases/tag/v2.7.1 https://github.com/nodejs/http-parser/archive/v2.7.1.tar.gz This patch reformats some http_parser files to reduce checkpatch warnings. See: https://gitlab.com/santes/http_parser/tree/refactoring1 Commit: c58dd8350fdf6ead0807ba37107b19f58e4f434c Furthermore, method_str overflow test was updated to avoid compiler warnings on some platforms. Before: Line 627: http_method_str(1337) After: Line 627: http_method_str(127) Jira: ZEP-346 Jira: ZEP-776 Change-Id: If6163f59de21186f22f4f02d8c44f43ddbf9b59b Signed-off-by: Flavio Santes <flavio.santes@intel.com> |
||
Flavio Santes
|
b965fb5ff1 |
iot: Add HTTP support for Zephyr
This commit adds HTTP message handling support for Zephyr. So, no network routines are involved at this level. To add HTTP message handling support for Zephyr, we explored the following options: 1. Importing an external project and perhaps adapting it to fit our requirements. The criteria to pick one codebase among all the available projects are: licensing, correctness and performance. 2. Writing our own implementation from scratch. We decided to import an external project instead of implementing our own parser, mainly due to code maturity and correctness. It could take more time to obtain a production-ready parser from scratch than adapting a state-of-art library. The following is a list of some projects offering similar functionality. lighttpd (many files) * License: revised BSD license * Supported: active * Comments: this parser can't be integrated to Zephyr due to dependencies that currently are not satisficed by our SDK. nginx (src/http/ngx_http_parse.c) * License: 2-clause BSD-like * Supported: very active * Comments: this parser can't be integrated to Zephyr due to dependencies that currently are not satisficed by our SDK. wget (src/http-parse.c) * License: GPL 3.0 * Supported: very active * Comments: this code can't be included in Zephyr due to licensing issues curl (lib/http.c) * License: MIT/X derivate, see: https://curl.haxx.se/docs/copyright.html * Supported: very active * Comment: it must be forked and adapted to run in Zephyr. It is not optimized for low-power devices. nodejs http-parser (http_parser.c) * License: nginx license (2-clause BSD-like) and MIT license * Supported: very active * Comments: optimized with performance in mind. From https://github.com/nodejs/http-parser: "It does not make any syscalls nor allocations, it does not buffer data, it can be interrupted at anytime. It only requires about 40 bytes of data per message stream." So, nodejs/http-parser looks a very good choice for Zephyr. In this commit, we integrate nodejs' parser to Zephyr. Origin: https://github.com/nodejs/http-parser/releases/tag/v2.7.1 https://github.com/nodejs/http-parser/archive/v2.7.1.tar.gz NOTE: This patch reformats the http_parser files to reduce checkpatch warnings. Changes made in this refactoring are available at: Repo: https://gitlab.com/santes/http_parser/commits/refactoring1 Commit: 9ccfaa23f1c8438855211fa902ec8e7236b702b1 Jira: ZEP-346 Jira: ZEP-776 Change-Id: I29b1d47f323a5841cd4d0a2afbc2cc83a0f576f0 Signed-off-by: Flavio Santes <flavio.santes@intel.com> |
||
Jukka Rissanen
|
5ece8c26b5 |
net: tcp: Fixing the constness of TCP state debug string
Change-Id: I42a8271cf10efcd9ce67ef860a45fa54c0690387 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> |
||
Sergio Rodriguez
|
e6b5239c33 |
wpanusb: Fix include path
Commit https://gerrit.zephyrproject.org/r/#/c/6971/ changed the location of some include files, making compilation fail. Change-Id: I43c124be28b55e550ef2204ca9faa7031665fb4a Signed-off-by: Sergio Rodriguez <sergio.sf.rodriguez@intel.com> |
||
Flavio Santes
|
c2f7c907c9 |
iot/dns: Update sample client application
This commit updates the dns client application to use the new kernel API. Change-Id: Ibf920532b02a1561bfb38f69e5dd994ab21574bc Signed-off-by: Flavio Santes <flavio.santes@intel.com> |
||
Jukka Rissanen
|
3eaec41ab8 |
net: Moved net/ to subsys/net
* Moved networking code into subsys/net. * Renamed net/yaip to net/ip at the same time. * Fixed the tests/net to compile * Fixed the Makefiles and Kconfig files in subsys/net to use the new location of the IP stack Change-Id: Ie45d9e8cb45a93fefdf969b20a81e3b1d3c16355 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> |
||
Andy Ross
|
01f5fbdadd |
net: tcp: Add retry handling
Adds a simple retry mechanism on top of the existing queueing framework. * On the first packet transmitted with an empty queue, the timer is started (to an initial timeout of 200ms). * On a received, valid ACK, the timer is restarted. * The timer is stopped whenever the last packet is ACKed and the queue becomes empty. * On timer expiration, the timeout is doubled and the first unacknowledged packet is retransmitted. * When receiving an ACK when we are known to be retransmitting, we mark all sent packets as needing to be sent again. Change-Id: Iee3544ed43d0a2d50c29fa82f958a34cc10f7cda Signed-off-by: Andy Ross <andrew.j.ross@intel.com> Signed-off-by: Leandro Pereira <leandro.pereira@intel.com> |
||
Jukka Rissanen
|
481f67e266 |
net: nbuf: Provide metadata info for sent TCP buf
Create a variable in nbuf metadata area for storing TCP buf_sent information. Change-Id: I21a85c58183f1e4997d03d4a93546ddd9b32e977 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> |
||
Andy Ross
|
ab3b4656f3 |
net: tcp: Handle received ACK packets correctly
Retain transmitted packets in the queue, and remove them only when a matching ACK arrives. Change-Id: I76d6586879dc0499371c52979128bd47e1204132 Signed-off-by: Andy Ross <andrew.j.ross@intel.com> Signed-off-by: Leandro Pereira <leandro.pereira@intel.com> |
||
Andy Ross
|
1ddb9f94d4 |
net: tcp: Rework ACK behavior
TCP ACK values aren't known until packet transmission time. Set the ACK value then, logging the last one sent for later comparison. Note that this allows us to effect a neat trick: if your net_context_send() callback produces a synchronous reply on the stream, Zephyr can include the ACK in the sent data and not have to transmit a separate packet. Traditional OSes with internal queing and a syscall interface can't do this. Change-Id: If8b8546dac6163d763b8f8dd75865192f2eb302a Signed-off-by: Andy Ross <andrew.j.ross@intel.com> Signed-off-by: Leandro Pereira <leandro.pereira@intel.com> |
||
Andy Ross
|
a93779b041 |
net: tcp: Refactor "finalize" step from "prepare"
The ACK field of a packet depends on the received sequence number from the other side of a connection, which can change long after a packet is prepared/queued. The IP finalize step (which computes things like the TCP checksum) needs to be invoked just before a packet is sent, not from prepare. Split it out to a separate function. Change-Id: Ibdae0c9b6833bdfb130cc381f823150dceab6637 Signed-off-by: Andy Ross <andrew.j.ross@intel.com> |
||
Andy Ross
|
094c65051c |
net: tcp: TCP transmission
Hook up TCP transmission through the net_context_send() API. Queues packets via a list in the net_buf header, but as of right now simply transmits the queue synchronously, ignoring the need for retransmit and the limits of the receive window on the other side. Requires that the ACK transmission be moved ahead of the net_context callback invokation. This to work around a glitch in the way ACKs work with queueing (they depend on current state, but packets are assembled just once) that will be fixed in a coming patch. Change-Id: I7490333e4b314e7734fcc03f2a63d76ae89d698a Signed-off-by: Andy Ross <andrew.j.ross@intel.com> Signed-off-by: Leandro Pereira <leandro.pereira@intel.com> |
||
Andy Ross
|
74c3b9a3f4 |
net: tcp: Fix uninitialized garbage in TCP urgent field
Per spec, this is required to be zero when URG is unset, but we were never initializing it. It seems benign AFAICT, but produces warnings in wireshark. Change-Id: Ie4e28070e32767aabc60c63bb85287c1215ebb0d Signed-off-by: Andy Ross <andrew.j.ross@intel.com> Signed-off-by: Leandro Pereira <leandro.pereira@intel.com> |
||
Andy Ross
|
e5a5f1da95 |
net: tcp: prepare_segment needs to work with pre-allocated buffers
Transmitted data coming in via net_context_send() must already have an allocated TX nbuf. Let prepare_segment() work with one if available, adding any trailing data to the end of the generated buf chain. Change-Id: I4f084ce51e6713773a48b8c9c59450656bc87d8e Signed-off-by: Andy Ross <andrew.j.ross@intel.com> |
||
Andy Ross
|
b926166d56 |
net: Set REMOTE_ADDR_SET flag on new TCP connection contexts
Having this unset hits an error check in net_context_send(). Should consider making this implicit in the destination address being valid instead... Change-Id: I52c273d018c3b780837f40678643255da34b6418 Signed-off-by: Andy Ross <andrew.j.ross@intel.com> |
||
Andy Ross
|
17656ecdb6 |
net: Remove net_tcp_prepare_data_segment
This is dead code in the tree as it stands, and the upcoming rework is so changed as to make trying to evolve it in place impossible. Also removes some temporary tracking fields in the net_tcp and tcp_segment structs which had been intended for this implementation. Change-Id: I59fe00cd2d5c3e48bc5d38d3d096d9ff72fcdccf Signed-off-by: Andy Ross <andrew.j.ross@intel.com> Signed-off-by: Leandro Pereira <leandro.pereira@intel.com> |