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