Lines Matching refs:bp
86 gre_print(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print() argument
94 vers = EXTRACT_16BITS(bp) & GRE_VERS_MASK; in gre_print()
99 gre_print_0(ndo, bp, len); in gre_print()
102 gre_print_1(ndo, bp, len); in gre_print()
111 gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print_0() argument
116 flags = EXTRACT_16BITS(bp); in gre_print_0()
122 bp += 2; in gre_print_0()
126 prot = EXTRACT_16BITS(bp); in gre_print_0()
128 bp += 2; in gre_print_0()
134 ND_PRINT((ndo, ", sum 0x%x", EXTRACT_16BITS(bp))); in gre_print_0()
135 bp += 2; in gre_print_0()
140 ND_PRINT((ndo, ", off 0x%x", EXTRACT_16BITS(bp))); in gre_print_0()
141 bp += 2; in gre_print_0()
148 ND_PRINT((ndo, ", key=0x%x", EXTRACT_32BITS(bp))); in gre_print_0()
149 bp += 4; in gre_print_0()
156 ND_PRINT((ndo, ", seq %u", EXTRACT_32BITS(bp))); in gre_print_0()
157 bp += 4; in gre_print_0()
169 af = EXTRACT_16BITS(bp); in gre_print_0()
170 sreoff = *(bp + 2); in gre_print_0()
171 srelen = *(bp + 3); in gre_print_0()
172 bp += 4; in gre_print_0()
178 gre_sre_print(ndo, af, sreoff, srelen, bp, len); in gre_print_0()
182 bp += srelen; in gre_print_0()
201 ip_print(ndo, bp, len); in gre_print_0()
204 ip6_print(ndo, bp, len); in gre_print_0()
207 mpls_print(ndo, bp, len); in gre_print_0()
210 ipx_print(ndo, bp, len); in gre_print_0()
213 atalk_print(ndo, bp, len); in gre_print_0()
216 isoclns_print(ndo, bp, len, len); in gre_print_0()
219 ether_print(ndo, bp, len, len, NULL, NULL); in gre_print_0()
231 gre_print_1(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print_1() argument
236 flags = EXTRACT_16BITS(bp); in gre_print_1()
238 bp += 2; in gre_print_1()
246 prot = EXTRACT_16BITS(bp); in gre_print_1()
248 bp += 2; in gre_print_1()
256 k = EXTRACT_32BITS(bp); in gre_print_1()
259 bp += 4; in gre_print_1()
265 ND_PRINT((ndo, ", seq %u", EXTRACT_32BITS(bp))); in gre_print_1()
266 bp += 4; in gre_print_1()
273 ND_PRINT((ndo, ", ack %u", EXTRACT_32BITS(bp))); in gre_print_1()
274 bp += 4; in gre_print_1()
298 ppp_print(ndo, bp, len); in gre_print_1()
312 uint8_t srelen, const u_char *bp, u_int len) in gre_sre_print() argument
317 gre_sre_ip_print(ndo, sreoff, srelen, bp, len); in gre_sre_print()
322 gre_sre_asn_print(ndo, sreoff, srelen, bp, len); in gre_sre_print()
332 const u_char *bp, u_int len) in gre_sre_ip_print() argument
335 const u_char *up = bp; in gre_sre_ip_print()
354 memcpy(&a, bp, sizeof(a)); in gre_sre_ip_print()
356 ((bp - up) == sreoff) ? "*" : "", in gre_sre_ip_print()
359 bp += 4; in gre_sre_ip_print()
367 const u_char *bp, u_int len) in gre_sre_asn_print() argument
369 const u_char *up = bp; in gre_sre_asn_print()
389 ((bp - up) == sreoff) ? "*" : "", in gre_sre_asn_print()
390 EXTRACT_16BITS(bp))); in gre_sre_asn_print()
392 bp += 2; in gre_sre_asn_print()