Lines Matching refs:bp
106 register const u_char *bp, register u_int len) in print_mtrace() argument
108 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mtrace()
128 register const u_char *bp, register u_int len) in print_mresp() argument
130 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mresp()
150 register const u_char *bp, register u_int len) in print_igmpv3_report() argument
160 ND_TCHECK2(bp[6], 2); in print_igmpv3_report()
161 ngroups = EXTRACT_16BITS(&bp[6]); in print_igmpv3_report()
171 ND_TCHECK2(bp[group+4], 4); in print_igmpv3_report()
172 ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, &bp[group+4]))); in print_igmpv3_report()
174 bp[group]))); in print_igmpv3_report()
175 nsrcs = EXTRACT_16BITS(&bp[group+2]); in print_igmpv3_report()
187 ND_TCHECK2(bp[group+8+(j<<2)], 4); in print_igmpv3_report()
188 ND_PRINT((ndo, " %s", ipaddr_string(ndo, &bp[group+8+(j<<2)]))); in print_igmpv3_report()
204 register const u_char *bp, register u_int len) in print_igmpv3_query() argument
217 ND_TCHECK(bp[1]); in print_igmpv3_query()
218 mrc = bp[1]; in print_igmpv3_query()
233 ND_TCHECK2(bp[4], 4); in print_igmpv3_query()
234 if (EXTRACT_32BITS(&bp[4]) == 0) in print_igmpv3_query()
236 ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, &bp[4]))); in print_igmpv3_query()
237 ND_TCHECK2(bp[10], 2); in print_igmpv3_query()
238 nsrcs = EXTRACT_16BITS(&bp[10]); in print_igmpv3_query()
245 ND_TCHECK2(bp[12+(i<<2)], 4); in print_igmpv3_query()
246 ND_PRINT((ndo, " %s", ipaddr_string(ndo, &bp[12+(i<<2)]))); in print_igmpv3_query()
260 register const u_char *bp, register u_int len) in igmp_print() argument
269 ND_TCHECK(bp[0]); in igmp_print()
270 switch (bp[0]) { in igmp_print()
274 print_igmpv3_query(ndo, bp, len); in igmp_print()
276 ND_TCHECK(bp[1]); in igmp_print()
277 if (bp[1]) { in igmp_print()
279 if (bp[1] != 100) in igmp_print()
280 ND_PRINT((ndo, " [max resp time %d]", bp[1])); in igmp_print()
283 ND_TCHECK2(bp[4], 4); in igmp_print()
284 if (EXTRACT_32BITS(&bp[4])) in igmp_print()
285 ND_PRINT((ndo, " [gaddr %s]", ipaddr_string(ndo, &bp[4]))); in igmp_print()
291 ND_TCHECK2(bp[4], 4); in igmp_print()
292 ND_PRINT((ndo, "igmp v1 report %s", ipaddr_string(ndo, &bp[4]))); in igmp_print()
297 ND_TCHECK2(bp[4], 4); in igmp_print()
298 ND_PRINT((ndo, "igmp v2 report %s", ipaddr_string(ndo, &bp[4]))); in igmp_print()
302 print_igmpv3_report(ndo, bp, len); in igmp_print()
305 ND_TCHECK2(bp[4], 4); in igmp_print()
306 ND_PRINT((ndo, "igmp leave %s", ipaddr_string(ndo, &bp[4]))); in igmp_print()
313 dvmrp_print(ndo, bp, len); in igmp_print()
317 pimv1_print(ndo, bp, len); in igmp_print()
320 print_mresp(ndo, bp, len); in igmp_print()
323 print_mtrace(ndo, bp, len); in igmp_print()
326 ND_PRINT((ndo, "igmp-%d", bp[0])); in igmp_print()
330 if (ndo->ndo_vflag && ND_TTEST2(bp[0], len)) { in igmp_print()
332 vec[0].ptr = bp; in igmp_print()
335 ND_PRINT((ndo, " bad igmp cksum %x!", EXTRACT_16BITS(&bp[2]))); in igmp_print()