zephyr/doc/api
Jesus Sanchez-Palencia 598276262c net: l2: Add support for Link Layer Discovery Protocol (LLDP)
The LLDP protocol defines 2 separate agents, the Transmitters and
the Receivers. For the context of Zephyr, we are only interested in
the Tx agent, thus we drop any LLDP frames received by Zephyr.

LLDP frames are basically composed by an ethernet header followed by
the LLDP Protocol Data Unit (LLDPDU). The LLDPDU is composed by several
TLVs, some of them being mandatory and some optional.

Our approach here is having TLVs fully configured from Kconfig, thus
having the entire LLDPDU constructed on build time.

The commit adds NET_ETH_PTYPE_LLDP definition and related handling.

If CONFIG_NET_LLDP is enabled then ethernet_context has a pointer to
the struct net_lldpdu that belongs to that ethernet interface. Also
when CONFIG_NET_LLDP is enabled, the LLDP state machine will start to
send packets when network interface is coming up.

Currently the LLDP state machine is just a k_delayed_work() sending the
LLDPDU at a given period (defined by CONFIG_NET_LLDP_TX_INTERVAL).

Fixes #3233

Signed-off-by: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-08-08 09:53:24 +03:00
..
api.rst doc: subsys: logging: Add documentation for new logger 2018-07-06 19:18:19 -04:00
bluetooth.rst doc: mark bt_test_cb API as not documented 2018-05-19 09:23:10 +03:00
device.rst doc: improve API docs with sections 2017-09-12 07:48:37 -04:00
display_api.rst doc: add missing API content 2017-12-01 08:58:56 -05:00
file_system.rst doc: add missing API content 2017-12-01 08:58:56 -05:00
io_interfaces.rst doc: add missing API content 2017-12-01 08:58:56 -05:00
kernel_api.rst doc: kernel: capitalize Fifo/Lifo 2018-03-20 14:01:30 -04:00
logger_api.rst doc: subsys: logging: Add documentation for new logger 2018-07-06 19:18:19 -04:00
misc_api.rst doc: add missing API content 2017-12-01 08:58:56 -05:00
networking.rst net: l2: Add support for Link Layer Discovery Protocol (LLDP) 2018-08-08 09:53:24 +03:00
power_management_api.rst doc: improve API docs with sections 2017-09-12 07:48:37 -04:00
timer_counter_interfaces.rst drivers: watchdog: Watchdog API redesign 2018-05-14 10:28:23 -05:00