Lines Matching refs:ndo

91 gre_print(netdissect_options *ndo, const u_char *bp, u_int length)  in gre_print()  argument
96 ND_PRINT((ndo, "%s", tstr)); in gre_print()
100 ND_PRINT((ndo, "GREv%u",vers)); in gre_print()
104 gre_print_0(ndo, bp, len); in gre_print()
107 gre_print_1(ndo, bp, len); in gre_print()
110 ND_PRINT((ndo, " ERROR: unknown-version")); in gre_print()
116 gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print_0() argument
122 if (ndo->ndo_vflag) in gre_print_0()
123 ND_PRINT((ndo, ", Flags [%s]", in gre_print_0()
138 if (ndo->ndo_vflag) in gre_print_0()
139 ND_PRINT((ndo, ", sum 0x%x", EXTRACT_16BITS(bp))); in gre_print_0()
145 ND_PRINT((ndo, ", off 0x%x", EXTRACT_16BITS(bp))); in gre_print_0()
153 ND_PRINT((ndo, ", key=0x%x", EXTRACT_32BITS(bp))); in gre_print_0()
161 ND_PRINT((ndo, ", seq %u", EXTRACT_32BITS(bp))); in gre_print_0()
183 gre_sre_print(ndo, af, sreoff, srelen, bp, len); in gre_print_0()
192 if (ndo->ndo_eflag) in gre_print_0()
193 ND_PRINT((ndo, ", proto %s (0x%04x)", in gre_print_0()
197 ND_PRINT((ndo, ", length %u",length)); in gre_print_0()
199 if (ndo->ndo_vflag < 1) in gre_print_0()
200 ND_PRINT((ndo, ": ")); /* put in a colon as protocol demarc */ in gre_print_0()
202 ND_PRINT((ndo, "\n\t")); /* if verbose go multiline */ in gre_print_0()
206 ip_print(ndo, bp, len); in gre_print_0()
209 ip6_print(ndo, bp, len); in gre_print_0()
212 mpls_print(ndo, bp, len); in gre_print_0()
215 ipx_print(ndo, bp, len); in gre_print_0()
218 atalk_print(ndo, bp, len); in gre_print_0()
221 isoclns_print(ndo, bp, len, len); in gre_print_0()
224 ether_print(ndo, bp, len, len, NULL, NULL); in gre_print_0()
227 ND_PRINT((ndo, "gre-proto-0x%x", prot)); in gre_print_0()
232 ND_PRINT((ndo, "%s", tstr)); in gre_print_0()
236 gre_print_1(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print_1() argument
245 if (ndo->ndo_vflag) in gre_print_1()
246 ND_PRINT((ndo, ", Flags [%s]", in gre_print_1()
262 ND_PRINT((ndo, ", call %d", k & 0xffff)); in gre_print_1()
270 ND_PRINT((ndo, ", seq %u", EXTRACT_32BITS(bp))); in gre_print_1()
278 ND_PRINT((ndo, ", ack %u", EXTRACT_32BITS(bp))); in gre_print_1()
284 ND_PRINT((ndo, ", no-payload")); in gre_print_1()
286 if (ndo->ndo_eflag) in gre_print_1()
287 ND_PRINT((ndo, ", proto %s (0x%04x)", in gre_print_1()
291 ND_PRINT((ndo, ", length %u",length)); in gre_print_1()
296 if (ndo->ndo_vflag < 1) in gre_print_1()
297 ND_PRINT((ndo, ": ")); /* put in a colon as protocol demarc */ in gre_print_1()
299 ND_PRINT((ndo, "\n\t")); /* if verbose go multiline */ in gre_print_1()
303 ppp_print(ndo, bp, len); in gre_print_1()
306 ND_PRINT((ndo, "gre-proto-0x%x", prot)); in gre_print_1()
312 ND_PRINT((ndo, "%s", tstr)); in gre_print_1()
316 gre_sre_print(netdissect_options *ndo, uint16_t af, uint8_t sreoff, in gre_sre_print() argument
321 ND_PRINT((ndo, ", (rtaf=ip")); in gre_sre_print()
322 gre_sre_ip_print(ndo, sreoff, srelen, bp, len); in gre_sre_print()
323 ND_PRINT((ndo, ") ")); in gre_sre_print()
326 ND_PRINT((ndo, ", (rtaf=asn")); in gre_sre_print()
327 gre_sre_asn_print(ndo, sreoff, srelen, bp, len); in gre_sre_print()
328 ND_PRINT((ndo, ") ")); in gre_sre_print()
331 ND_PRINT((ndo, ", (rtaf=0x%x) ", af)); in gre_sre_print()
336 gre_sre_ip_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, in gre_sre_ip_print() argument
343 ND_PRINT((ndo, ", badoffset=%u", sreoff)); in gre_sre_ip_print()
347 ND_PRINT((ndo, ", badlength=%u", srelen)); in gre_sre_ip_print()
351 ND_PRINT((ndo, ", badoff/len=%u/%u", sreoff, srelen)); in gre_sre_ip_print()
360 ND_PRINT((ndo, " %s%s", in gre_sre_ip_print()
371 gre_sre_asn_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, in gre_sre_asn_print() argument
377 ND_PRINT((ndo, ", badoffset=%u", sreoff)); in gre_sre_asn_print()
381 ND_PRINT((ndo, ", badlength=%u", srelen)); in gre_sre_asn_print()
385 ND_PRINT((ndo, ", badoff/len=%u/%u", sreoff, srelen)); in gre_sre_asn_print()
393 ND_PRINT((ndo, " %s%x", in gre_sre_asn_print()