15 #ifndef __included_cdp_protocol_h__ 16 #define __included_cdp_protocol_h__ 41 }) ethernet_llc_snap_and_cdp_header_t;
46 }) hdlc_and_cdp_header_t;
52 }) srp_and_cdp_header_t;
63 #define foreach_cdp_tlv_type \ 89 _(port_unidirectional) \ 96 #define _(t) CDP_TLV_##t, 145 #define CDP_ROUTER_DEVICE 0x0001 146 #define CDP_TB_DEVICE 0x0002 147 #define CDP_SRB_DEVICE 0x0004 148 #define CDP_SWITCH_DEVICE 0x0008 149 #define CDP_HOST_DEVICE 0x0010 150 #define CDP_IGMP_DEVICE 0x0020 151 #define CDP_REPEATER_DEVICE 0x0040 172 #define CDP_DUPLEX_TLV_HALF 0x0 173 #define CDP_DUPLEX_TLV_FULL 0x1
#define foreach_cdp_tlv_type
typedef CLIB_PACKED(struct{u8 version;u8 ttl;u16 checksum;u8 data[0];}) cdp_hdr_t