Skip to end of metadata
Go to start of metadata
/* Chassis ID subtype */
#define LLDP_CHASSISID_SUBTYPE_CHASSIS  1
#define LLDP_CHASSISID_SUBTYPE_IFALIAS  2
#define LLDP_CHASSISID_SUBTYPE_PORT     3
#define LLDP_CHASSISID_SUBTYPE_LLADDR	4
#define LLDP_CHASSISID_SUBTYPE_ADDR     5
#define LLDP_CHASSISID_SUBTYPE_IFNAME   6
#define LLDP_CHASSISID_SUBTYPE_LOCAL    7

/* Port ID subtype */
#define LLDP_PORTID_SUBTYPE_UNKNOWN   0
#define LLDP_PORTID_SUBTYPE_IFALIAS   1
#define LLDP_PORTID_SUBTYPE_PORT      2
#define LLDP_PORTID_SUBTYPE_LLADDR    3
#define LLDP_PORTID_SUBTYPE_ADDR      4
#define LLDP_PORTID_SUBTYPE_IFNAME    5
#define LLDP_PORTID_SUBTYPE_AGENTCID  6
#define LLDP_PORTID_SUBTYPE_LOCAL     7
#define LLDP_PORTID_SUBTYPE_MAX       LLDP_PORTID_SUBTYPE_LOCAL
static lldpctl_map_t port_id_subtype_map[] = {
   	{ LLDP_PORTID_SUBTYPE_IFNAME,   "ifname"},
   	{ LLDP_PORTID_SUBTYPE_IFALIAS,  "ifalias" },
   	{ LLDP_PORTID_SUBTYPE_LOCAL,    "local" },
   	{ LLDP_PORTID_SUBTYPE_LLADDR,   "mac" },
   	{ LLDP_PORTID_SUBTYPE_ADDR,     "ip" },
   	{ LLDP_PORTID_SUBTYPE_PORT,     "unhandled" },
   	{ LLDP_PORTID_SUBTYPE_AGENTCID, "unhandled" },
   	{ 0, NULL},
};

static lldpctl_map_t chassis_id_subtype_map[] = {
   	{ LLDP_CHASSISID_SUBTYPE_IFNAME,  "ifname"},
   	{ LLDP_CHASSISID_SUBTYPE_IFALIAS, "ifalias" },
   	{ LLDP_CHASSISID_SUBTYPE_LOCAL,   "local" },
   	{ LLDP_CHASSISID_SUBTYPE_LLADDR,  "mac" },
   	{ LLDP_CHASSISID_SUBTYPE_ADDR,    "ip" },
   	{ LLDP_CHASSISID_SUBTYPE_PORT,    "unhandled" },
   	{ LLDP_CHASSISID_SUBTYPE_CHASSIS, "unhandled" },
   	{ 0, NULL},
};
  • No labels