Lines Matching refs:srelen
166 uint8_t srelen; in gre_print_0() local
173 srelen = GET_U_1(bp + 3); in gre_print_0()
177 if (af == 0 && srelen == 0) in gre_print_0()
180 if (!gre_sre_print(ndo, af, sreoff, srelen, bp, len)) in gre_print_0()
183 if (len < srelen) in gre_print_0()
185 bp += srelen; in gre_print_0()
186 len -= srelen; in gre_print_0()
318 uint8_t srelen, const u_char *bp, u_int len) in gre_sre_print() argument
325 ret = gre_sre_ip_print(ndo, sreoff, srelen, bp, len); in gre_sre_print()
330 ret = gre_sre_asn_print(ndo, sreoff, srelen, bp, len); in gre_sre_print()
341 gre_sre_ip_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, in gre_sre_ip_print() argument
351 if (srelen & 3) { in gre_sre_ip_print()
352 ND_PRINT(", badlength=%u", srelen); in gre_sre_ip_print()
355 if (sreoff >= srelen) { in gre_sre_ip_print()
356 ND_PRINT(", badoff/len=%u/%u", sreoff, srelen); in gre_sre_ip_print()
360 while (srelen != 0) { in gre_sre_ip_print()
371 srelen -= 4; in gre_sre_ip_print()
379 gre_sre_asn_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, in gre_sre_asn_print() argument
388 if (srelen & 1) { in gre_sre_asn_print()
389 ND_PRINT(", badlength=%u", srelen); in gre_sre_asn_print()
392 if (sreoff >= srelen) { in gre_sre_asn_print()
393 ND_PRINT(", badoff/len=%u/%u", sreoff, srelen); in gre_sre_asn_print()
397 while (srelen != 0) { in gre_sre_asn_print()
407 srelen -= 2; in gre_sre_asn_print()