Lines Matching full:length
44 * Length of an Ethernet header; note that some compilers may pad
136 ether_common_print(netdissect_options *ndo, const u_char *p, u_int length,
151 if (length < caplen) {
152 ND_PRINT("[length %u < caplen %u]", length, caplen);
154 return length;
164 orig_length = length;
176 length -= 2*MAC_ADDR_LEN;
190 length -= switch_tag_len;
196 * Get the length/type field, skip past it, and print it
202 length -= 2;
218 ND_PRINT(", length %u: ", orig_length);
222 int ret = macsec_print(ndo, &p, &length, &caplen, &hdrlen,
235 * Keep processing type/length fields.
240 length -= 2;
264 if (length < 4) {
267 return hdrlen + length;
274 ND_PRINT(", length %u: ", orig_length);
283 length -= 4;
289 * We now have the final length/type field.
293 * It's a length field, containing the length of the
297 if (length_type < length) {
298 length = length_type;
299 if (caplen > length)
300 caplen = length;
304 * Cut off the snapshot length to the end of the
307 if (!nd_push_snaplen(ndo, p, length)) {
315 ND_PRINT(", length %u: ", length);
319 * An LLC header follows the length. Print that and
322 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst);
342 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst);
355 if (length < 2) {
357 return hdrlen + length;
360 ND_PRINT(", length %u: ", orig_length);
361 int bytesConsumed = arista_ethertype_print(ndo, p, length);
364 length -= bytesConsumed;
373 ND_PRINT(", length %u: ", orig_length);
385 ND_PRINT(", length %u: ", orig_length);
389 if (ethertype_print(ndo, length_type, p, length, caplen, &src, &dst) == 0) {
401 ND_PRINT(", length %u: ", orig_length);
414 * length.
422 ether_switch_tag_print(netdissect_options *ndo, const u_char *p, u_int length,
427 return ether_common_print(ndo, p, length, caplen, print_switch_tag,
441 const u_char *p, u_int length, u_int caplen,
446 return ether_common_print(ndo, p, length, caplen, NULL, 0,
452 * to the ether header of the packet, 'h->len' is the length
467 * to the ether header of the packet, 'h->len' is the length
492 * to the ether header of the packet, 'h->len' is the length
528 u_int length, u_int caplen,
534 ip_print(ndo, p, length);
538 ip6_print(ndo, p, length);
543 arp_print(ndo, p, length, caplen);
547 decnet_print(ndo, p, length, caplen);
553 atalk_print(ndo, p, length);
557 aarp_print(ndo, p, length);
562 ipx_print(ndo, p, length);
566 if (length == 0 || caplen == 0) {
574 isoclns_print(ndo, p + 1, length - 1);
581 pppoe_print(ndo, p, length);
589 rtl_print(ndo, p, length, src, dst);
593 if (length) {
595 ppp_print(ndo, p, length);
600 mpcp_print(ndo, p, length);
604 slow_print(ndo, p, length);
609 cfm_print(ndo, p, length);
613 lldp_print(ndo, p, length);
617 nsh_print(ndo, p, length);
621 loopback_print(ndo, p, length);
626 mpls_print(ndo, p, length);
630 tipc_print(ndo, p, length, caplen);
639 geonet_print(ndo, p, length, src);
643 calm_fast_print(ndo, p, length, src);
647 aoe_print(ndo, p, length);
651 ptp_print(ndo, p, length);