Lines Matching refs:bp
88 gre_print(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print() argument
92 ND_TCHECK2(*bp, 2); in gre_print()
95 vers = EXTRACT_16BITS(bp) & GRE_VERS_MASK; in gre_print()
100 gre_print_0(ndo, bp, len); in gre_print()
103 gre_print_1(ndo, bp, len); in gre_print()
117 gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print_0() argument
122 flags = EXTRACT_16BITS(bp); in gre_print_0()
128 bp += 2; in gre_print_0()
130 ND_TCHECK2(*bp, 2); in gre_print_0()
133 prot = EXTRACT_16BITS(bp); in gre_print_0()
135 bp += 2; in gre_print_0()
138 ND_TCHECK2(*bp, 2); in gre_print_0()
142 ND_PRINT((ndo, ", sum 0x%x", EXTRACT_16BITS(bp))); in gre_print_0()
143 bp += 2; in gre_print_0()
146 ND_TCHECK2(*bp, 2); in gre_print_0()
149 ND_PRINT((ndo, ", off 0x%x", EXTRACT_16BITS(bp))); in gre_print_0()
150 bp += 2; in gre_print_0()
155 ND_TCHECK2(*bp, 4); in gre_print_0()
158 ND_PRINT((ndo, ", key=0x%x", EXTRACT_32BITS(bp))); in gre_print_0()
159 bp += 4; in gre_print_0()
164 ND_TCHECK2(*bp, 4); in gre_print_0()
167 ND_PRINT((ndo, ", seq %u", EXTRACT_32BITS(bp))); in gre_print_0()
168 bp += 4; in gre_print_0()
178 ND_TCHECK2(*bp, 4); in gre_print_0()
181 af = EXTRACT_16BITS(bp); in gre_print_0()
182 sreoff = *(bp + 2); in gre_print_0()
183 srelen = *(bp + 3); in gre_print_0()
184 bp += 4; in gre_print_0()
190 if (!gre_sre_print(ndo, af, sreoff, srelen, bp, len)) in gre_print_0()
195 bp += srelen; in gre_print_0()
214 ip_print(ndo, bp, len); in gre_print_0()
217 ip6_print(ndo, bp, len); in gre_print_0()
220 mpls_print(ndo, bp, len); in gre_print_0()
223 ipx_print(ndo, bp, len); in gre_print_0()
226 atalk_print(ndo, bp, len); in gre_print_0()
229 isoclns_print(ndo, bp, len); in gre_print_0()
232 ether_print(ndo, bp, len, ndo->ndo_snapend - bp, NULL, NULL); in gre_print_0()
244 gre_print_1(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print_1() argument
249 flags = EXTRACT_16BITS(bp); in gre_print_1()
251 bp += 2; in gre_print_1()
257 ND_TCHECK2(*bp, 2); in gre_print_1()
260 prot = EXTRACT_16BITS(bp); in gre_print_1()
262 bp += 2; in gre_print_1()
268 ND_TCHECK2(*bp, 4); in gre_print_1()
271 k = EXTRACT_32BITS(bp); in gre_print_1()
274 bp += 4; in gre_print_1()
278 ND_TCHECK2(*bp, 4); in gre_print_1()
281 ND_PRINT((ndo, ", seq %u", EXTRACT_32BITS(bp))); in gre_print_1()
282 bp += 4; in gre_print_1()
287 ND_TCHECK2(*bp, 4); in gre_print_1()
290 ND_PRINT((ndo, ", ack %u", EXTRACT_32BITS(bp))); in gre_print_1()
291 bp += 4; in gre_print_1()
315 ppp_print(ndo, bp, len); in gre_print_1()
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()
353 const u_char *bp, u_int len) in gre_sre_ip_print() argument
355 const u_char *up = bp; in gre_sre_ip_print()
372 if (!ND_TTEST2(*bp, 4)) in gre_sre_ip_print()
377 addrtostr(bp, buf, sizeof(buf)); in gre_sre_ip_print()
379 ((bp - up) == sreoff) ? "*" : "", buf)); in gre_sre_ip_print()
381 bp += 4; in gre_sre_ip_print()
390 const u_char *bp, u_int len) in gre_sre_asn_print() argument
392 const u_char *up = bp; in gre_sre_asn_print()
408 if (!ND_TTEST2(*bp, 2)) in gre_sre_asn_print()
414 ((bp - up) == sreoff) ? "*" : "", in gre_sre_asn_print()
415 EXTRACT_16BITS(bp))); in gre_sre_asn_print()
417 bp += 2; in gre_sre_asn_print()