Lines Matching refs:srelen
176 uint8_t srelen; in gre_print_0() local
183 srelen = *(bp + 3); in gre_print_0()
187 if (af == 0 && srelen == 0) in gre_print_0()
190 if (!gre_sre_print(ndo, af, sreoff, srelen, bp, len)) in gre_print_0()
193 if (len < srelen) in gre_print_0()
195 bp += srelen; in gre_print_0()
196 len -= srelen; in gre_print_0()
329 uint8_t srelen, const u_char *bp, u_int len) in gre_sre_print() argument
336 ret = gre_sre_ip_print(ndo, sreoff, srelen, bp, len); in gre_sre_print()
341 ret = gre_sre_asn_print(ndo, sreoff, srelen, bp, len); in gre_sre_print()
352 gre_sre_ip_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, in gre_sre_ip_print() argument
362 if (srelen & 3) { in gre_sre_ip_print()
363 ND_PRINT((ndo, ", badlength=%u", srelen)); in gre_sre_ip_print()
366 if (sreoff >= srelen) { in gre_sre_ip_print()
367 ND_PRINT((ndo, ", badoff/len=%u/%u", sreoff, srelen)); in gre_sre_ip_print()
371 while (srelen != 0) { in gre_sre_ip_print()
383 srelen -= 4; in gre_sre_ip_print()
389 gre_sre_asn_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, in gre_sre_asn_print() argument
398 if (srelen & 1) { in gre_sre_asn_print()
399 ND_PRINT((ndo, ", badlength=%u", srelen)); in gre_sre_asn_print()
402 if (sreoff >= srelen) { in gre_sre_asn_print()
403 ND_PRINT((ndo, ", badoff/len=%u/%u", sreoff, srelen)); in gre_sre_asn_print()
407 while (srelen != 0) { in gre_sre_asn_print()
419 srelen -= 2; in gre_sre_asn_print()