Lines Matching refs:length
56 register u_int length = h->len;
63 return (chdlc_print(p,length));
67 chdlc_print(register const u_char *p, u_int length) {
72 printf("%s, ethertype %s (0x%04x), length %u: ",
76 length);
79 length -= CHDLC_HDRLEN;
84 ip_print(gndo, p, length);
88 ip6_print(gndo, p, length);
92 chdlc_slarp_print(p, length);
96 chdlc_cdp_print(p, length);
101 mpls_print(p, length);
108 isoclns_print(p+1, length-1, length-1);
110 isoclns_print(p, length, length);
122 * The fixed-length portion of a SLARP packet.
146 chdlc_slarp_print(const u_char *cp, u_int length)
151 printf("SLARP (length: %u), ",length);
152 if (length < SLARP_MIN_LEN)
181 if (length >= SLARP_MAX_LEN) { /* uptime-stamp is optional */
195 print_unknown_data(cp+4,"\n\t",length-4);
199 if (SLARP_MAX_LEN < length && vflag)
200 printf(", (trailing junk: %d bytes)", length - SLARP_MAX_LEN);
202 print_unknown_data(cp+4,"\n\t",length-4);