Lines Matching refs:bp
69 register const u_char *bp, register u_int len) in dvmrp_print() argument
75 if (bp >= ep) in dvmrp_print()
78 ND_TCHECK(bp[1]); in dvmrp_print()
79 type = bp[1]; in dvmrp_print()
82 bp += 8; in dvmrp_print()
90 if (print_probe(ndo, bp, ep, len) < 0) in dvmrp_print()
98 if (print_report(ndo, bp, ep, len) < 0) in dvmrp_print()
109 if (print_neighbors(ndo, bp, ep, len) < 0) in dvmrp_print()
123 bp -= 4; in dvmrp_print()
124 ND_TCHECK2(bp[0], 4); in dvmrp_print()
125 target_level = (bp[0] << 24) | (bp[1] << 16) | in dvmrp_print()
126 (bp[2] << 8) | bp[3]; in dvmrp_print()
127 bp += 4; in dvmrp_print()
128 if (print_neighbors2(ndo, bp, ep, len) < 0) in dvmrp_print()
134 if (print_prune(ndo, bp) < 0) in dvmrp_print()
140 if (print_graft(ndo, bp) < 0) in dvmrp_print()
146 if (print_graft_ack(ndo, bp) < 0) in dvmrp_print()
163 register const u_char *bp, register const u_char *ep, in print_report() argument
175 ND_TCHECK2(bp[0], 3); in print_report()
176 mask = (uint32_t)0xff << 24 | bp[0] << 16 | bp[1] << 8 | bp[2]; in print_report()
178 if (bp[0]) in print_report()
180 if (bp[1]) in print_report()
182 if (bp[2]) in print_report()
186 bp += 3; in print_report()
189 if (bp + width + 1 > ep) { in print_report()
199 ND_TCHECK(*bp); in print_report()
200 origin = origin << 8 | *bp++; in print_report()
205 ND_TCHECK(*bp); in print_report()
206 metric = *bp++; in print_report()
221 register const u_char *bp, register const u_char *ep, in print_probe() argument
226 ND_TCHECK2(bp[0], 4); in print_probe()
227 if ((len < 4) || ((bp + 4) > ep)) { in print_probe()
232 genid = (bp[0] << 24) | (bp[1] << 16) | (bp[2] << 8) | bp[3]; in print_probe()
233 bp += 4; in print_probe()
240 while ((len > 0) && (bp < ep)) { in print_probe()
241 ND_TCHECK2(bp[0], 4); in print_probe()
242 ND_PRINT((ndo, "\n\tneighbor %s", ipaddr_string(ndo, bp))); in print_probe()
243 bp += 4; len -= 4; in print_probe()
252 register const u_char *bp, register const u_char *ep, in print_neighbors() argument
260 while (len > 0 && bp < ep) { in print_neighbors()
261 ND_TCHECK2(bp[0], 7); in print_neighbors()
262 laddr = bp; in print_neighbors()
263 bp += 4; in print_neighbors()
264 metric = *bp++; in print_neighbors()
265 thresh = *bp++; in print_neighbors()
266 ncount = *bp++; in print_neighbors()
269 ND_TCHECK2(bp[0], 4); in print_neighbors()
272 ipaddr_string(ndo, bp), metric, thresh)); in print_neighbors()
273 bp += 4; in print_neighbors()
284 register const u_char *bp, register const u_char *ep, in print_neighbors2() argument
295 while (len > 0 && bp < ep) { in print_neighbors2()
296 ND_TCHECK2(bp[0], 8); in print_neighbors2()
297 laddr = bp; in print_neighbors2()
298 bp += 4; in print_neighbors2()
299 metric = *bp++; in print_neighbors2()
300 thresh = *bp++; in print_neighbors2()
301 flags = *bp++; in print_neighbors2()
302 ncount = *bp++; in print_neighbors2()
304 while (--ncount >= 0 && (len >= 4) && (bp + 4) <= ep) { in print_neighbors2()
306 ND_PRINT((ndo, "%s (%d/%d", ipaddr_string(ndo, bp), in print_neighbors2()
319 bp += 4; in print_neighbors2()
334 register const u_char *bp) in print_prune() argument
336 ND_TCHECK2(bp[0], 12); in print_prune()
337 ND_PRINT((ndo, " src %s grp %s", ipaddr_string(ndo, bp), ipaddr_string(ndo, bp + 4))); in print_prune()
338 bp += 8; in print_prune()
340 relts_print(ndo, EXTRACT_32BITS(bp)); in print_prune()
348 register const u_char *bp) in print_graft() argument
350 ND_TCHECK2(bp[0], 8); in print_graft()
351 ND_PRINT((ndo, " src %s grp %s", ipaddr_string(ndo, bp), ipaddr_string(ndo, bp + 4))); in print_graft()
359 register const u_char *bp) in print_graft_ack() argument
361 ND_TCHECK2(bp[0], 8); in print_graft_ack()
362 ND_PRINT((ndo, " src %s grp %s", ipaddr_string(ndo, bp), ipaddr_string(ndo, bp + 4))); in print_graft_ack()