CONFIG_NET_LLDP_PORT_ID_SUBTYPE

Port ID TLV subtype

Type: int

Help

Port ID subtype options are defined below. Please refer to section 8.5.3.2 of the 802.1AB for more info. Subtype 1 = Interface alias Subtype 2 = Port component Subtype 3 = MAC address Subtype 4 = Network address Subtype 5 = Interface name Subtype 6 = Agent circuit ID Subtype 7 = Locally assigned If subtype 3 is selected (MAC address) then configs NET_LLDP_PORT_ID_MAC0 through NET_LLDP_PORT_ID_MAC5 must be defined, otherwise you must use NET_LLDP_PORT_ID instead.

Direct dependencies

NET_LLDP && NET_L2_ETHERNET && NETWORKING

(Includes any dependencies from ifs and menus.)

Default

  • 5

Kconfig definition

At <Zephyr>/subsys/net/l2/ethernet/lldp/Kconfig:124

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:34<Zephyr>/subsys/net/Kconfig:85<Zephyr>/subsys/net/l2/Kconfig:69<Zephyr>/subsys/net/l2/ethernet/Kconfig:77

Menu path: (Top) → Sub Systems and OS Services → Networking → Link layer and IP networking support → Link layer options → Enable Ethernet support → Enable Link Layer Discovery Protocol (LLDP)

config NET_LLDP_PORT_ID_SUBTYPE
    int "Port ID TLV subtype"
    range 1 7
    default 5
    depends on NET_LLDP && NET_L2_ETHERNET && NETWORKING
    help
      Port ID subtype options are defined below.
      Please refer to section 8.5.3.2 of the 802.1AB for more info.
      Subtype 1 = Interface alias
      Subtype 2 = Port component
      Subtype 3 = MAC address
      Subtype 4 = Network address
      Subtype 5 = Interface name
      Subtype 6 = Agent circuit ID
      Subtype 7 = Locally assigned
      If subtype 3 is selected (MAC address) then configs
      NET_LLDP_PORT_ID_MAC0 through NET_LLDP_PORT_ID_MAC5 must
      be defined, otherwise you must use NET_LLDP_PORT_ID instead.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)