Lines Matching refs:bp
105 const u_char *bp, const unsigned len) in mobility_opt_print() argument
110 ND_TCHECK(bp[i]); in mobility_opt_print()
111 if (bp[i] == IP6MOPT_PAD1) in mobility_opt_print()
115 ND_TCHECK(bp[i + 1]); in mobility_opt_print()
116 optlen = bp[i + 1] + 2; in mobility_opt_print()
123 ND_TCHECK(bp[i + optlen]); in mobility_opt_print()
125 switch (bp[i]) { in mobility_opt_print()
143 EXTRACT_16BITS(&bp[i+2]) << 2)); in mobility_opt_print()
150 ND_PRINT((ndo, "(alt-CoA: %s)", ip6addr_string(ndo, &bp[i+2]))); in mobility_opt_print()
158 EXTRACT_16BITS(&bp[i+2]), in mobility_opt_print()
159 EXTRACT_16BITS(&bp[i+4]))); in mobility_opt_print()
170 ND_PRINT((ndo, "(sopt_type %u: trunc)", bp[i])); in mobility_opt_print()
173 ND_PRINT((ndo, "(type-0x%02x: len=%u)", bp[i], bp[i + 1])); in mobility_opt_print()
188 const u_char *bp, const u_char *bp2 _U_) in mobility_print() argument
195 mh = (struct ip6_mobility *)bp; in mobility_print()
213 mhlen = ep - bp; in mobility_print()
240 EXTRACT_32BITS(&bp[hlen]), in mobility_print()
241 EXTRACT_32BITS(&bp[hlen + 4]))); in mobility_print()
256 EXTRACT_32BITS(&bp[hlen]), in mobility_print()
257 EXTRACT_32BITS(&bp[hlen + 4]))); in mobility_print()
264 EXTRACT_32BITS(&bp[hlen]), in mobility_print()
265 EXTRACT_32BITS(&bp[hlen + 4]))); in mobility_print()
275 if (bp[hlen] & 0xf0) in mobility_print()
277 if (bp[hlen] & 0x80) in mobility_print()
279 if (bp[hlen] & 0x40) in mobility_print()
281 if (bp[hlen] & 0x20) in mobility_print()
283 if (bp[hlen] & 0x10) in mobility_print()
291 ND_PRINT((ndo, " lifetime=%u", EXTRACT_16BITS(&bp[hlen]) << 2)); in mobility_print()
303 ND_PRINT((ndo, " seq#=%u", EXTRACT_16BITS(&bp[hlen]))); in mobility_print()
307 ND_PRINT((ndo, " lifetime=%u", EXTRACT_16BITS(&bp[hlen]) << 2)); in mobility_print()
317 ND_PRINT((ndo, " homeaddr %s", ip6addr_string(ndo, &bp[hlen]))); in mobility_print()
326 mobility_opt_print(ndo, &bp[hlen], mhlen - hlen); in mobility_print()