Lines Matching defs:length
112 uint16_t length;
121 assert_se(tlv_packet_read_bytes(m, &p, &length) >= 0);
138 uint16_t length;
147 assert_se(tlv_packet_read_string(m, &str, &length) >= 0);
149 p = strndup(str, length-1);
166 uint16_t length;
169 assert_se(tlv_packet_read_string(m, &str, &length) >= 0);
171 p = strndup(str, length);
184 uint16_t length;
187 assert_se(tlv_packet_read_string(m, &str, &length) >= 0);
189 p = strndup(str, length);
242 tlv_packet_parse_pdu(tlv, tlv->length);
244 lldp_parse_tlv_packet(tlv, tlv->length);
302 uint16_t length, ttl;
330 assert_se(sd_lldp_packet_read_chassis_id(packets[0], &type, &data, &length) == 0);
332 assert_se(length == ETH_ALEN);
335 assert_se(sd_lldp_packet_read_port_id(packets[0], &type, &data, &length) == 0);
337 assert_se(length == 3);
340 assert_se(sd_lldp_packet_read_port_description(packets[0], &str, &length) == 0);
341 assert_se(length == 4);
344 assert_se(sd_lldp_packet_read_system_name(packets[0], &str, &length) == 0);
345 assert_se(length == 3);
348 assert_se(sd_lldp_packet_read_system_description(packets[0], &str, &length) == 0);
349 assert_se(length == 4); /* This is the real length in the TLV packet */