Home | History | Annotate | Download | only in tcpdump

Lines Matching full:len

91 	int type, len, i, j;
113 len = EXTRACT_16BITS(tptr+2); /* object length includes the 4 bytes header length */
115 len -= 4;
117 if (!TTEST2(*tptr, len))
126 len,
127 len>1 ? "s" : ""); /* plural */
133 printf(", Device-ID '%.*s'", len, tptr);
135 printf("'%.*s'", len, tptr);
138 if (cdp_print_addr(tptr, len) < 0)
142 printf("'%.*s'", len, tptr);
151 for (i=0;i<len;i++) {
159 printf("'%.*s'", len, tptr);
162 if (cdp_print_prefixes(tptr, len) < 0)
168 printf("'%.*s'", len,tptr);
186 cdp_get_number(tptr, len)/1000.0 );
198 printf("'%.*s'", len, tptr);
201 if (cdp_print_addr(tptr, len) < 0)
205 printf("0x%02x/%.*s", *(tptr), len - 1, tptr + 1 );
208 print_unknown_data(tptr,"\n\t ",len);
213 if (len == 0)
215 tptr = tptr+len;