Lines Matching refs:bp

110 print_mtrace(register const u_char *bp, register u_int len)  in print_mtrace()  argument
112 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mtrace()
132 print_mresp(register const u_char *bp, register u_int len) in print_mresp() argument
134 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mresp()
154 print_igmpv3_report(register const u_char *bp, register u_int len) in print_igmpv3_report() argument
164 TCHECK2(bp[6], 2); in print_igmpv3_report()
165 ngroups = EXTRACT_16BITS(&bp[6]); in print_igmpv3_report()
175 TCHECK2(bp[group+4], 4); in print_igmpv3_report()
176 (void)printf(" [gaddr %s", ipaddr_string(&bp[group+4])); in print_igmpv3_report()
178 bp[group])); in print_igmpv3_report()
179 nsrcs = EXTRACT_16BITS(&bp[group+2]); in print_igmpv3_report()
191 TCHECK2(bp[group+8+(j<<2)], 4); in print_igmpv3_report()
192 (void)printf(" %s", ipaddr_string(&bp[group+8+(j<<2)])); in print_igmpv3_report()
208 print_igmpv3_query(register const u_char *bp, register u_int len) in print_igmpv3_query() argument
221 TCHECK(bp[1]); in print_igmpv3_query()
222 mrc = bp[1]; in print_igmpv3_query()
237 TCHECK2(bp[4], 4); in print_igmpv3_query()
238 if (EXTRACT_32BITS(&bp[4]) == 0) in print_igmpv3_query()
240 (void)printf(" [gaddr %s", ipaddr_string(&bp[4])); in print_igmpv3_query()
241 TCHECK2(bp[10], 2); in print_igmpv3_query()
242 nsrcs = EXTRACT_16BITS(&bp[10]); in print_igmpv3_query()
249 TCHECK2(bp[12+(i<<2)], 4); in print_igmpv3_query()
250 (void)printf(" %s", ipaddr_string(&bp[12+(i<<2)])); in print_igmpv3_query()
264 igmp_print(register const u_char *bp, register u_int len) in igmp_print() argument
273 TCHECK(bp[0]); in igmp_print()
274 switch (bp[0]) { in igmp_print()
278 print_igmpv3_query(bp, len); in igmp_print()
280 TCHECK(bp[1]); in igmp_print()
281 if (bp[1]) { in igmp_print()
283 if (bp[1] != 100) in igmp_print()
284 (void)printf(" [max resp time %d]", bp[1]); in igmp_print()
287 TCHECK2(bp[4], 4); in igmp_print()
288 if (EXTRACT_32BITS(&bp[4])) in igmp_print()
289 (void)printf(" [gaddr %s]", ipaddr_string(&bp[4])); in igmp_print()
295 TCHECK2(bp[4], 4); in igmp_print()
296 (void)printf("igmp v1 report %s", ipaddr_string(&bp[4])); in igmp_print()
301 TCHECK2(bp[4], 4); in igmp_print()
302 (void)printf("igmp v2 report %s", ipaddr_string(&bp[4])); in igmp_print()
306 print_igmpv3_report(bp, len); in igmp_print()
309 TCHECK2(bp[4], 4); in igmp_print()
310 (void)printf("igmp leave %s", ipaddr_string(&bp[4])); in igmp_print()
317 dvmrp_print(bp, len); in igmp_print()
321 pimv1_print(bp, len); in igmp_print()
324 print_mresp(bp, len); in igmp_print()
327 print_mtrace(bp, len); in igmp_print()
330 (void)printf("igmp-%d", bp[0]); in igmp_print()
334 if (vflag && TTEST2(bp[0], len)) { in igmp_print()
336 vec[0].ptr = bp; in igmp_print()
339 printf(" bad igmp cksum %x!", EXTRACT_16BITS(&bp[2])); in igmp_print()