Lines Matching defs:len
94 u_int len = length, vers;
96 if (len < 2) {
105 gre_print_0(bp, len);
108 gre_print_1(bp, len);
121 u_int len = length;
129 len -= 2;
132 if (len < 2)
135 len -= 2;
139 if (len < 2)
144 len -= 2;
146 if (len < 2)
150 len -= 2;
154 if (len < 4)
158 len -= 4;
162 if (len < 4)
166 len -= 4;
175 if (len < 4)
181 len -= 4;
186 gre_sre_print(af, sreoff, srelen, bp, len);
188 if (len < srelen)
191 len -= srelen;
209 ip_print(gndo, bp, len);
213 ip6_print(gndo, bp, len);
217 mpls_print(bp, len);
220 ipx_print(bp, len);
223 atalk_print(bp, len);
226 isoclns_print(bp, len, len);
229 ether_print(gndo, bp, len, len, NULL, NULL);
243 u_int len = length;
247 len -= 2;
254 if (len < 2)
257 len -= 2;
264 if (len < 4)
268 len -= 4;
273 if (len < 4)
277 len -= 4;
281 if (len < 4)
285 len -= 4;
308 ppp_print(bp, len);
322 const u_char *bp, u_int len)
327 gre_sre_ip_print(sreoff, srelen, bp, len);
332 gre_sre_asn_print(sreoff, srelen, bp, len);
340 gre_sre_ip_print(u_int8_t sreoff, u_int8_t srelen, const u_char *bp, u_int len)
354 printf(", badoff/len=%u/%u", sreoff, srelen);
359 if (len < 4 || srelen == 0)
368 len -= 4;
374 gre_sre_asn_print(u_int8_t sreoff, u_int8_t srelen, const u_char *bp, u_int len)
387 printf(", badoff/len=%u/%u", sreoff, srelen);
392 if (len < 2 || srelen == 0)
400 len -= 2;