• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/tcpdump-56/tcpdump/

Lines Matching refs:bp

74 ip6_sopt_print(const u_char *bp, int len)
80 if (bp[i] == IP6OPT_PAD1)
84 optlen = bp[i + 1] + 2;
91 switch (bp[i]) {
107 printf(", ui: 0x%04x ", EXTRACT_16BITS(&bp[i + 2]));
114 printf(", alt-CoA: %s", ip6addr_string(&bp[i+2]));
121 printf(", auth spi: 0x%08x", EXTRACT_32BITS(&bp[i + 2]));
125 printf(", sopt_type %d: trunc)", bp[i]);
128 printf(", sopt_type 0x%02x: len=%d", bp[i], bp[i + 1]);
139 ip6_opt_print(const u_char *bp, int len)
147 if (bp[i] == IP6OPT_PAD1)
151 optlen = bp[i + 1] + 2;
158 switch (bp[i]) {
174 if (bp[i + 1] != IP6OPT_RTALERT_LEN - 2) {
175 printf("(rtalert: invalid len %d)", bp[i + 1]);
178 printf("(rtalert: 0x%04x) ", EXTRACT_16BITS(&bp[i + 2]));
185 if (bp[i + 1] != IP6OPT_JUMBO_LEN - 2) {
186 printf("(jumbo: invalid len %d)", bp[i + 1]);
189 printf("(jumbo: %u) ", EXTRACT_32BITS(&bp[i + 2]));
196 if (bp[i + 1] < IP6OPT_HOMEADDR_MINLEN - 2) {
197 printf("(homeaddr: invalid len %d)", bp[i + 1]);
200 printf("(homeaddr: %s", ip6addr_string(&bp[i + 2]));
201 if (bp[i + 1] > IP6OPT_HOMEADDR_MINLEN - 2) {
202 ip6_sopt_print(&bp[i + IP6OPT_HOMEADDR_MINLEN],
212 if (bp[i + 1] < IP6OPT_BU_MINLEN - 2) {
213 printf("(bu: invalid len %d)", bp[i + 1]);
217 if (bp[i + 2] & 0x80)
219 if (bp[i + 2] & 0x40)
221 if (bp[i + 2] & 0x20)
223 if (bp[i + 2] & 0x10)
225 if ((bp[i + 2] & 0x0f) || bp[i + 3] || bp[i + 4])
227 printf(", sequence: %u", bp[i + 5]);
228 printf(", lifetime: %u", EXTRACT_32BITS(&bp[i + 6]));
230 if (bp[i + 1] > IP6OPT_BU_MINLEN - 2) {
231 ip6_sopt_print(&bp[i + IP6OPT_BU_MINLEN],
241 if (bp[i + 1] < IP6OPT_BA_MINLEN - 2) {
242 printf("(ba: invalid len %d)", bp[i + 1]);
246 printf("status: %u", bp[i + 2]);
247 if (bp[i + 3])
249 printf(", sequence: %u", bp[i + 4]);
250 printf(", lifetime: %u", EXTRACT_32BITS(&bp[i + 5]));
251 printf(", refresh: %u", EXTRACT_32BITS(&bp[i + 9]));
253 if (bp[i + 1] > IP6OPT_BA_MINLEN - 2) {
254 ip6_sopt_print(&bp[i + IP6OPT_BA_MINLEN],
265 if (bp[i + 1] > IP6OPT_BR_MINLEN - 2) {
266 ip6_sopt_print(&bp[i + IP6OPT_BR_MINLEN],
273 printf("(type %d: trunc)", bp[i]);
276 printf("(opt_type 0x%02x: len=%d)", bp[i], bp[i + 1]);
292 hbhopt_print(register const u_char *bp)
294 const struct ip6_hbh *dp = (struct ip6_hbh *)bp;
312 dstopt_print(register const u_char *bp)
314 const struct ip6_dest *dp = (struct ip6_dest *)bp;