29 # include <sys/types.h>
35 #define LLDP_INVAL 65535
42 #define LLDP_TLV_END 0
43 #define LLDP_TLV_CHID 1
44 #define LLDP_TLV_PID 2
45 #define LLDP_TLV_TTL 3
46 #define LLDP_TLV_PORT_DESCR 4
47 #define LLDP_TLV_SYS_NAME 5
48 #define LLDP_TLV_SYS_DESCR 6
49 #define LLDP_TLV_SYS_CAPS 7
50 #define LLDP_TLV_MGMT_ADDR 8
51 #define LLDP_TLV_ORG_SPECIFIC 127
59 #define LLDP_CHIDTYPE_COMPONENT 1
61 #define LLDP_CHIDTYPE_ALIAS 2
62 #define LLDP_CHIDTYPE_PORT 3
64 #define LLDP_CHIDTYPE_MACADDR 4
65 #define LLDP_CHIDTYPE_NETADDR 5
66 #define LLDP_CHIDTYPE_IFNAME 6
67 #define LLDP_CHIDTYPE_LOCAL 7
75 #define LLDP_PIDTYPE_ALIAS 1
76 #define LLDP_PIDTYPE_COMPONENT 2
78 #define LLDP_PIDTYPE_MACADDR 3
79 #define LLDP_PIDTYPE_NETADDR 4
80 #define LLDP_PIDTYPE_IFNAME 5
81 #define LLDP_PIDTYPE_CIRCUITID 6
82 #define LLDP_PIDTYPE_LOCAL 7
89 #define LLDP_CAPMASK_REPEATER 0x02
90 #define LLDP_CAPMASK_BRIDGE 0x04
91 #define LLDP_CAPMASK_WLAN_AP 0x08
92 #define LLDP_CAPMASK_ROUTER 0x10
93 #define LLDP_CAPMASK_PHONE 0x20
94 #define LLDP_CAPMASK_DOCSIS 0x40
95 #define LLDP_CAPMASK_STATION 0x80
103 #define LLDP_ORG802_1_VLAN_PVID 1
104 #define LLDP_ORG802_1_VLAN_PORTPROTO 2
105 #define LLDP_ORG802_1_VLAN_NAME 3
106 #define LLDP_ORG802_1_VLAN_PROTOID 4
114 #define LLDP_ORG802_3_PHY_CONFIG 1
115 #define LLDP_ORG802_3_POWERVIAMDI 2
116 #define LLDP_ORG802_3_LINKAGG 3
117 #define LLDP_ORG802_3_MTU 4
123 gconstpointer
get_lldp_port_id(gconstpointer tlv_vp, gssize* idlength, gconstpointer tlv_vpend);