Home
last modified time | relevance | path

Searched full:lldp (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-latest/subsys/net/l2/ethernet/lldp/
Dlldp.c2 * @brief LLDP related functions
20 #include <zephyr/net/lldp.h>
36 for (i = 0; i < ARRAY_SIZE(ctx->lldp); i++) { in lldp_find()
37 if (ctx->lldp[i].iface == iface) { in lldp_find()
41 if (found < 0 && ctx->lldp[i].iface == NULL) { in lldp_find()
47 ctx->lldp[found].iface = iface; in lldp_find()
76 static bool lldp_timedout(struct ethernet_lldp *lldp, int64_t timeout) in lldp_timedout() argument
78 return lldp_check_timeout(lldp->tx_timer_start, in lldp_timedout()
79 lldp->tx_timer_timeout, in lldp_timedout()
83 static int lldp_send(struct ethernet_lldp *lldp) in lldp_send() argument
[all …]
DKconfig5 bool "Link Layer Discovery Protocol (LLDP)"
9 Enable Link Layer Discovery Protocol (LLDP) Transmit support.
16 module-str = Log level for LLDP
17 module-help = Enables core LLDP code to output debug messages.
21 # LLDP Tx state machine config
30 please refer to section 9.2.5.7 of the LLDP spec.
39 as Time to Live in LLDP frames. For further information please
40 refer to section 9.2.5.6 of the LLDP spec.
DCMakeLists.txt6 zephyr_library_sources(lldp.c)
/Zephyr-latest/samples/net/lldp/
DREADME.rst1 .. zephyr:code-sample:: lldp
2 :name: Link Layer Discovery Protocol (LLDP)
3 :relevant-api: lldp net_l2
5 Enable LLDP support and setup VLANs.
11 LLDP support and setup VLANs if needed.
14 :zephyr_file:`samples/net/lldp`.
24 A good way to run this sample LLDP application is inside QEMU,
26 FRDM-K64F. Note that LLDP is only supported for boards that have an ethernet
29 Follow these steps to build the LLDP sample application:
32 :zephyr-app: samples/net/lldp
Dsample.yaml5 - lldp
7 description: Test LLDP functionality
8 name: LLDP sample app
10 sample.net.lldp:
Dprj.conf28 # Ethernet is needed for LLDP
65 # LLDP settings
70 # LLDPDU and register it to LLDP sub-system.
72 CONFIG_NET_LLDP_PORT_ID="lldp-test"
DKconfig1 # Private config options for LLDP sample app
8 mainmenu "LLDP sample application"
DCMakeLists.txt6 project(lldp) project
/Zephyr-latest/include/zephyr/net/
Dlldp.h2 @brief LLDP definitions and handler
17 * @brief LLDP definitions and helpers
18 * @defgroup lldp Link Layer Discovery Protocol definitions and helpers
34 /* LLDP Definitions */
107 * Calculate based on section 9.2.5.22 from LLDP spec.
110 * to zero so LLDP Rx agents can invalidate the entry related to this node.
166 * LLDP Data Unit (LLDPDU) shall contain the following ordered TLVs
176 * @brief Set the LLDP data unit for a network interface.
179 * @param lldpdu LLDP data unit struct
186 * @brief Set the Optional LLDP TLVs for a network interface.
[all …]
Dethernet.h23 #include <zephyr/net/lldp.h>
621 /** Ethernet LLDP specific parameters */
626 /** LLDP Data Unit mandatory TLVs for the interface. */
629 /** LLDP Data Unit optional TLVs for the interface */
635 /** Network interface that has LLDP supported. */
638 /** LLDP TX timer start time */
641 /** LLDP TX timeout */
644 /** LLDP RX callback function */
677 struct ethernet_lldp lldp[NET_VLAN_MAX_COUNT]; member
858 * @brief Check if the Ethernet MAC address is a LLDP multicast address.
[all …]
/Zephyr-latest/doc/connectivity/networking/api/
Dlldp.rst13 The Link Layer Discovery Protocol (LLDP) is a vendor-neutral link layer
18 `LLDP Wikipedia article <https://en.wikipedia.org/wiki/Link_Layer_Discovery_Protocol>`_.
23 .. doxygengroup:: lldp
Dethernet.rst14 lldp.rst
36 * :ref:`LLDP (Link Layer Discovery Protocol) <lldp_interface>`
/Zephyr-latest/samples/net/lldp/src/
Dmain.c145 LOG_DBG("iface %p Parsing LLDP, len %zu", iface, net_pkt_get_len(pkt)); in parse_lldp()
155 LOG_DBG("End LLDP DU TLV"); in parse_lldp()
210 LOG_ERR("Interface %p does not support %s", iface, "LLDP"); in init_app()
224 * The configuration will enable LLDP support so you should see in main()
/Zephyr-latest/samples/net/dsa/src/
Ddsa_lldp.c17 #include <zephyr/net/lldp.h>
60 /* LLDP packet data */ in dsa_lldp_send()
102 LOG_INF("LLDP pkt recv -> lan%d", lanid); in dsa_lldp_print_info()
170 LOG_ERR("Wrong LLDP packet type value [0x%x]", eth_hdr->type); in dsa_lldp_recv()
Dmain.c103 * Set static table to forward LLDP protocol packets in init_dsa_ports()
/Zephyr-latest/subsys/net/l2/ethernet/
DCMakeLists.txt30 add_subdirectory(lldp)
DKconfig106 source "subsys/net/l2/ethernet/lldp/Kconfig"
Dethernet.c20 #include <zephyr/net/lldp.h>
337 NET_DBG("LLDP Rx agent not enabled"); in ethernet_recv()
/Zephyr-latest/samples/net/dsa/
Dprj.conf31 # Ethernet is needed for LLDP
/Zephyr-latest/tests/net/all/
Dprj.conf321 # LLDP
/Zephyr-latest/drivers/ethernet/
Deth_native_posix.c37 #include <zephyr/net/lldp.h>
Ddsa_ksz8xxx.c880 * LLDP packets). in dsa_ksz8xxx_xmit_pkt()
/Zephyr-latest/doc/releases/
Drelease-notes-1.13.rst17 * Link Layer Discovery Protocol (LLDP) TX support
128 * Add Link Layer Discovery Protocol (LLDP) TX support.
697 * :github:`3233` - LLDP Transmitting Agent
Drelease-notes-2.3.rst602 * Fixed LLDPDU data in sent LLDP packets
881 * :github:`25184` - lldp: lldp_send includes bug
900 * :github:`25084` - LLDP: missing net_pkt_set_lldp in lldp_send
/Zephyr-latest/subsys/net/ip/
Dnet_core.c37 #include <zephyr/net/lldp.h>

12