Lines Matching refs:srelen
173 u_int8_t srelen; in gre_print_0() local
179 srelen = *(bp + 3); in gre_print_0()
183 if (af == 0 && srelen == 0) in gre_print_0()
186 gre_sre_print(af, sreoff, srelen, bp, len); in gre_print_0()
188 if (len < srelen) in gre_print_0()
190 bp += srelen; in gre_print_0()
191 len -= srelen; in gre_print_0()
321 gre_sre_print(u_int16_t af, u_int8_t sreoff, u_int8_t srelen, in gre_sre_print() argument
327 gre_sre_ip_print(sreoff, srelen, bp, len); in gre_sre_print()
332 gre_sre_asn_print(sreoff, srelen, bp, len); in gre_sre_print()
340 gre_sre_ip_print(u_int8_t sreoff, u_int8_t srelen, const u_char *bp, u_int len) in gre_sre_ip_print() argument
349 if (srelen & 3) { in gre_sre_ip_print()
350 printf(", badlength=%u", srelen); in gre_sre_ip_print()
353 if (sreoff >= srelen) { in gre_sre_ip_print()
354 printf(", badoff/len=%u/%u", sreoff, srelen); in gre_sre_ip_print()
359 if (len < 4 || srelen == 0) in gre_sre_ip_print()
369 srelen -= 4; in gre_sre_ip_print()
374 gre_sre_asn_print(u_int8_t sreoff, u_int8_t srelen, const u_char *bp, u_int len) in gre_sre_asn_print() argument
382 if (srelen & 1) { in gre_sre_asn_print()
383 printf(", badlength=%u", srelen); in gre_sre_asn_print()
386 if (sreoff >= srelen) { in gre_sre_asn_print()
387 printf(", badoff/len=%u/%u", sreoff, srelen); in gre_sre_asn_print()
392 if (len < 2 || srelen == 0) in gre_sre_asn_print()
401 srelen -= 2; in gre_sre_asn_print()