Searched defs:tlv (Results 1 - 3 of 3) sorted by relevance

/systemd/src/libsystemd-network/
H A Dlldp-internal.c37 int lldp_mib_update_objects(lldp_chassis *c, tlv_packet *tlv) { argument
45 assert_return(tlv, -EINVAL);
47 r = sd_lldp_packet_read_port_id(tlv, &type, &data, &length);
56 r = sd_lldp_packet_read_ttl(tlv, &ttl);
63 p->packet = tlv;
74 int lldp_mib_remove_objects(lldp_chassis *c, tlv_packet *tlv) { argument
82 assert_return(tlv, -EINVAL);
84 r = sd_lldp_packet_read_port_id(tlv, &type, &data, &length);
102 tlv_packet *tlv) {
113 assert_return(tlv,
100 lldp_mib_add_objects(Prioq *by_expiry, Hashmap *neighbour_mib, tlv_packet *tlv) argument
244 lldp_neighbour_port_new(lldp_chassis *c, tlv_packet *tlv, lldp_neighbour_port **ret) argument
296 lldp_chassis_new(tlv_packet *tlv, Prioq *by_expiry, Hashmap *neighbour_mib, lldp_chassis **ret) argument
[all...]
H A Dlldp-tlv.c25 #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...]
H A Dsd-lldp.c31 #include "lldp-tlv.h"
109 static int lldp_receive_frame(sd_lldp *lldp, tlv_packet *tlv) { argument
113 assert(tlv);
123 r = lldp_mib_add_objects(lldp->by_expiry, lldp->neighbour_mib, tlv);
145 int lldp_handle_packet(tlv_packet *tlv, uint16_t length) { argument
154 assert(tlv);
157 port = (lldp_port *) tlv->userdata;
167 p = tlv->pdu;
342 r = tlv_packet_parse_pdu(tlv, length);
350 return lldp_receive_frame(lldp, tlv);
[all...]

Completed in 265 milliseconds