Lines Matching defs:length
39 uint16_t length, ttl;
47 r = sd_lldp_packet_read_port_id(tlv, &type, &data, &length);
54 if ((p->type == type && p->length == length && !memcmp(p->data, data, p->length))) {
77 uint16_t length;
84 r = sd_lldp_packet_read_port_id(tlv, &type, &data, &length);
91 if (p->type == type && p->length == length && !memcmp(p->data, data, p->length)) {
108 uint16_t ttl, length;
115 r = sd_lldp_packet_read_chassis_id(tlv, &subtype, &data, &length);
125 chassis_id.length = length;
248 uint16_t length, ttl;
255 r = sd_lldp_packet_read_port_id(tlv, &type, &data, &length);
269 p->length = length;
274 p->data = memdup(data, length);
301 uint16_t length;
308 r = sd_lldp_packet_read_chassis_id(tlv, &type, &data, &length);
318 c->chassis_id.length = length;
320 c->chassis_id.data = memdup(data, length);
338 uint16_t length;
348 length = read(fd, &packet->pdu, sizeof(packet->pdu));
351 if ((size_t) length > ETHER_MAX_LEN)
359 return lldp_handle_packet(p, (uint16_t) length);