H A D | lldp-tlv.c | 25 #include "lldp-tlv.h" 381 static int lldp_tlv_packet_read_u16_tlv(tlv_packet *tlv, uint16_t type, uint16_t *value) { argument 384 assert_return(tlv, -EINVAL); 386 r = lldp_tlv_packet_enter_container(tlv, type); 390 r = tlv_packet_read_u16(tlv, value); 391 r2 = lldp_tlv_packet_exit_container(tlv); 396 static int lldp_tlv_packet_read_string_tlv(tlv_packet *tlv, uint16_t type, char **data, uint16_t *length) { argument 400 assert_return(tlv, -EINVAL); 402 r = lldp_tlv_packet_enter_container(tlv, type); 406 r = tlv_packet_read_string(tlv, 418 sd_lldp_packet_read_chassis_id(tlv_packet *tlv, uint8_t *type, uint8_t **data, uint16_t *length) argument 456 sd_lldp_packet_read_port_id(tlv_packet *tlv, uint8_t *type, uint8_t **data, uint16_t *length) argument 507 sd_lldp_packet_read_ttl(tlv_packet *tlv, uint16_t *ttl) argument 511 sd_lldp_packet_read_system_name(tlv_packet *tlv, char **data, uint16_t *length) argument 517 sd_lldp_packet_read_system_description(tlv_packet *tlv, char **data, uint16_t *length) argument 523 sd_lldp_packet_read_port_description(tlv_packet *tlv, char **data, uint16_t *length) argument 529 sd_lldp_packet_read_system_capability(tlv_packet *tlv, uint16_t *data) argument 533 sd_lldp_packet_read_port_vlan_id(tlv_packet *tlv, uint16_t *id) argument 548 sd_lldp_packet_read_port_protocol_vlan_id(sd_lldp_packet *tlv, uint8_t *flags, uint16_t *id) argument 566 sd_lldp_packet_read_vlan_name(tlv_packet *tlv, uint16_t *vlan_id, char **name, uint16_t *length) argument 590 sd_lldp_packet_read_management_vid(tlv_packet *tlv, uint16_t *id) argument 605 sd_lldp_packet_read_link_aggregation(sd_lldp_packet *tlv, uint8_t *status, uint32_t *id) argument 623 sd_lldp_packet_get_destination_type(tlv_packet *tlv, int *dest) argument [all...] |