Lines Matching refs:sreoff
175 uint8_t sreoff; in gre_print_0() local
182 sreoff = *(bp + 2); in gre_print_0()
190 if (!gre_sre_print(ndo, af, sreoff, srelen, bp, len)) in gre_print_0()
328 gre_sre_print(netdissect_options *ndo, uint16_t af, uint8_t sreoff, 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
358 if (sreoff & 3) { in gre_sre_ip_print()
359 ND_PRINT((ndo, ", badoffset=%u", sreoff)); 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()
379 ((bp - up) == sreoff) ? "*" : "", buf)); 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
394 if (sreoff & 1) { in gre_sre_asn_print()
395 ND_PRINT((ndo, ", badoffset=%u", sreoff)); 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()
414 ((bp - up) == sreoff) ? "*" : "", in gre_sre_asn_print()