Lines Matching defs:tlv
37 int lldp_mib_update_objects(lldp_chassis *c, tlv_packet *tlv) {
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) {
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, -EINVAL);
115 r = sd_lldp_packet_read_chassis_id(tlv, &subtype, &data, &length);
119 r = sd_lldp_packet_read_ttl(tlv, &ttl);
146 r = lldp_chassis_new(tlv, by_expiry, neighbour_mib, &c);
163 lldp_mib_remove_objects(c, tlv);
170 r = lldp_mib_update_objects(c, tlv);
186 r = lldp_neighbour_port_new(c, tlv, &p);
204 sd_lldp_packet_unref(tlv);
245 tlv_packet *tlv,
253 assert(tlv);
255 r = sd_lldp_packet_read_port_id(tlv, &type, &data, &length);
259 r = sd_lldp_packet_read_ttl(tlv, &ttl);
270 p->packet = tlv;
296 int lldp_chassis_new(tlv_packet *tlv,
306 assert(tlv);
308 r = sd_lldp_packet_read_chassis_id(tlv, &type, &data, &length);