Lines Matching refs:bp

45 ip6_sopt_print(netdissect_options *ndo, const u_char *bp, int len)  in ip6_sopt_print()  argument
51 if (bp[i] == IP6OPT_PAD1) in ip6_sopt_print()
55 optlen = bp[i + 1] + 2; in ip6_sopt_print()
62 switch (bp[i]) { in ip6_sopt_print()
75 ND_PRINT((ndo, ", sopt_type %d: trunc)", bp[i])); in ip6_sopt_print()
78 ND_PRINT((ndo, ", sopt_type 0x%02x: len=%d", bp[i], bp[i + 1])); in ip6_sopt_print()
89 ip6_opt_print(netdissect_options *ndo, const u_char *bp, int len) in ip6_opt_print() argument
97 if (bp[i] == IP6OPT_PAD1) in ip6_opt_print()
101 optlen = bp[i + 1] + 2; in ip6_opt_print()
108 switch (bp[i]) { in ip6_opt_print()
124 if (bp[i + 1] != IP6OPT_RTALERT_LEN - 2) { in ip6_opt_print()
125 ND_PRINT((ndo, "(rtalert: invalid len %d)", bp[i + 1])); in ip6_opt_print()
128 ND_PRINT((ndo, "(rtalert: 0x%04x) ", EXTRACT_16BITS(&bp[i + 2]))); in ip6_opt_print()
135 if (bp[i + 1] != IP6OPT_JUMBO_LEN - 2) { in ip6_opt_print()
136 ND_PRINT((ndo, "(jumbo: invalid len %d)", bp[i + 1])); in ip6_opt_print()
139 ND_PRINT((ndo, "(jumbo: %u) ", EXTRACT_32BITS(&bp[i + 2]))); in ip6_opt_print()
146 if (bp[i + 1] < IP6OPT_HOMEADDR_MINLEN - 2) { in ip6_opt_print()
147 ND_PRINT((ndo, "(homeaddr: invalid len %d)", bp[i + 1])); in ip6_opt_print()
150 ND_PRINT((ndo, "(homeaddr: %s", ip6addr_string(ndo, &bp[i + 2]))); in ip6_opt_print()
151 if (bp[i + 1] > IP6OPT_HOMEADDR_MINLEN - 2) { in ip6_opt_print()
152 ip6_sopt_print(ndo, &bp[i + IP6OPT_HOMEADDR_MINLEN], in ip6_opt_print()
159 ND_PRINT((ndo, "(type %d: trunc)", bp[i])); in ip6_opt_print()
162 ND_PRINT((ndo, "(opt_type 0x%02x: len=%d)", bp[i], bp[i + 1])); in ip6_opt_print()
174 hbhopt_print(netdissect_options *ndo, register const u_char *bp) in hbhopt_print() argument
176 const struct ip6_hbh *dp = (struct ip6_hbh *)bp; in hbhopt_print()
194 dstopt_print(netdissect_options *ndo, register const u_char *bp) in dstopt_print() argument
196 const struct ip6_dest *dp = (struct ip6_dest *)bp; in dstopt_print()