2015-08-08 02:40:56 +08:00
|
|
|
.. _networking:
|
|
|
|
|
2015-06-24 07:35:44 +08:00
|
|
|
Networking
|
|
|
|
###########
|
2015-06-11 16:22:15 +08:00
|
|
|
|
2016-05-27 19:05:19 +08:00
|
|
|
The networking section contains information regarding the network stack
|
2015-06-24 07:35:44 +08:00
|
|
|
of the Zephyr kernel. Use the information to understand the
|
2015-06-11 16:22:15 +08:00
|
|
|
principles behind the operation of the stacks and how they were implemented.
|
2016-05-27 19:05:19 +08:00
|
|
|
|
2016-08-22 16:03:51 +08:00
|
|
|
The networking stack supports the following features:
|
|
|
|
|
|
|
|
* IPv6
|
|
|
|
|
|
|
|
* IPv6 header compresson, which is part of the 6LoWPAN support
|
|
|
|
|
|
|
|
* UDP
|
|
|
|
* IPv4
|
|
|
|
|
|
|
|
* In this version of the IP stack, IPv6 and IPv4 cannot be utilized at the
|
|
|
|
same time.
|
|
|
|
* DHCP client support for IPv4
|
|
|
|
|
|
|
|
* TCP
|
|
|
|
|
|
|
|
* Both client and server roles are supported
|
|
|
|
|
|
|
|
* RPL (Ripple) IPv6 mesh routing
|
|
|
|
* CoAP
|
|
|
|
* MQTT
|
|
|
|
* Highly configurable
|
|
|
|
|
|
|
|
* Features, buffer sizes/counts, stack sizes, etc.
|
|
|
|
|
|
|
|
Additionally these network technologies are supported:
|
|
|
|
|
|
|
|
* IEEE 802.15.4
|
|
|
|
* Bluetooth
|
|
|
|
* Ethernet
|
|
|
|
* SLIP (for testing with Qemu)
|
|
|
|
|
|
|
|
Source tree layout
|
|
|
|
==================
|
|
|
|
|
|
|
|
The IP stack source code tree is organized as follows:
|
|
|
|
|
|
|
|
``net/ip/``
|
|
|
|
The core stack itself. This is where the Contiki uIP stack code
|
|
|
|
is located.
|
|
|
|
|
|
|
|
``include/net/``
|
|
|
|
Public API header files. These are the header files applications need
|
|
|
|
to include to use IP networking functionality.
|
|
|
|
|
|
|
|
``samples/net/``
|
|
|
|
Sample networking code. This is a good reference to get started with
|
|
|
|
network application development.
|
|
|
|
|
|
|
|
``tests/net/``
|
|
|
|
Test applications. These applications are used to verify the
|
|
|
|
functionality of the IP stack, but are not the best
|
|
|
|
source for sample code (see ``samples/net`` instead).
|
|
|
|
|
2016-05-27 19:05:19 +08:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
buffers.rst
|