Lines Matching defs:bp
43 ip6_sopt_print(netdissect_options *ndo, const u_char *bp, int len)
49 if (GET_U_1(bp + i) == IP6OPT_PAD1)
53 optlen = GET_U_1(bp + i + 1) + 2;
60 switch (GET_U_1(bp + i)) {
73 ND_PRINT(", sopt_type %u: trunc)", GET_U_1(bp + i));
76 ND_PRINT(", sopt_type 0x%02x: len=%u", GET_U_1(bp + i),
77 GET_U_1(bp + i + 1));
88 ip6_opt_process(netdissect_options *ndo, const u_char *bp, int len,
99 if (GET_U_1(bp + i) == IP6OPT_PAD1)
103 optlen = GET_U_1(bp + i + 1) + 2;
110 switch (GET_U_1(bp + i)) {
128 if (GET_U_1(bp + i + 1) != IP6OPT_RTALERT_LEN - 2) {
129 ND_PRINT("(rtalert: invalid len %u)", GET_U_1(bp + i + 1));
133 ND_PRINT("(rtalert: 0x%04x) ", GET_BE_U_2(bp + i + 2));
140 if (GET_U_1(bp + i + 1) != IP6OPT_JUMBO_LEN - 2) {
141 ND_PRINT("(jumbo: invalid len %u)", GET_U_1(bp + i + 1));
144 jumbolen = GET_BE_U_4(bp + i + 2);
183 if (GET_U_1(bp + i + 1) < IP6OPT_HOMEADDR_MINLEN - 2) {
184 ND_PRINT("(homeaddr: invalid len %u)", GET_U_1(bp + i + 1));
188 ND_PRINT("(homeaddr: %s", GET_IP6ADDR_STRING(bp + i + 2));
189 if (GET_U_1(bp + i + 1) > IP6OPT_HOMEADDR_MINLEN - 2) {
190 if (ip6_sopt_print(ndo, bp + i + IP6OPT_HOMEADDR_MINLEN,
199 ND_PRINT("(type %u: trunc)", GET_U_1(bp + i));
203 ND_PRINT("(opt_type 0x%02x: len=%u)", GET_U_1(bp + i),
204 GET_U_1(bp + i + 1));
217 hbhopt_process(netdissect_options *ndo, const u_char *bp, int *found_jumbo,
220 const struct ip6_hbh *dp = (const struct ip6_hbh *)bp;
238 dstopt_process(netdissect_options *ndo, const u_char *bp)
240 const struct ip6_dest *dp = (const struct ip6_dest *)bp;