Lines Matching refs:ndo

280 dhcp6opt_print(netdissect_options *ndo,  in dhcp6opt_print()  argument
306 ND_PRINT((ndo, " (%s", tok2str(dh6opt_str, "opt_%u", opttype))); in dhcp6opt_print()
313 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
320 ND_PRINT((ndo, " hwaddr/time type %u time %u ", in dhcp6opt_print()
324 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
326 ND_PRINT((ndo, ")")); in dhcp6opt_print()
329 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
334 ND_PRINT((ndo, " vid ")); in dhcp6opt_print()
336 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
338 ND_PRINT((ndo, ")")); in dhcp6opt_print()
341 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
346 ND_PRINT((ndo, " hwaddr type %u ", in dhcp6opt_print()
349 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
351 ND_PRINT((ndo, ")")); in dhcp6opt_print()
354 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
358 ND_PRINT((ndo, " type %d)", EXTRACT_16BITS(tp))); in dhcp6opt_print()
365 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
369 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[0]))); in dhcp6opt_print()
370 ND_PRINT((ndo, " pltime:%u vltime:%u", in dhcp6opt_print()
375 dhcp6opt_print(ndo, tp + 24, tp + optlen); in dhcp6opt_print()
377 ND_PRINT((ndo, ")")); in dhcp6opt_print()
382 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
387 ND_PRINT((ndo, " %s", in dhcp6opt_print()
390 ND_PRINT((ndo, ")")); in dhcp6opt_print()
394 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
398 ND_PRINT((ndo, " %d)", *tp)); in dhcp6opt_print()
402 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
406 ND_PRINT((ndo, " %d)", EXTRACT_16BITS(tp))); in dhcp6opt_print()
409 ND_PRINT((ndo, " (")); in dhcp6opt_print()
411 dhcp6_print(ndo, tp, optlen); in dhcp6opt_print()
412 ND_PRINT((ndo, ")")); in dhcp6opt_print()
416 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
423 ND_PRINT((ndo, " proto: delayed")); in dhcp6opt_print()
426 ND_PRINT((ndo, " proto: reconfigure")); in dhcp6opt_print()
429 ND_PRINT((ndo, " proto: %d", auth_proto)); in dhcp6opt_print()
436 ND_PRINT((ndo, ", alg: HMAC-MD5")); in dhcp6opt_print()
439 ND_PRINT((ndo, ", alg: %d", *tp)); in dhcp6opt_print()
445 ND_PRINT((ndo, ", RDM: mono")); in dhcp6opt_print()
448 ND_PRINT((ndo, ", RDM: %d", *tp)); in dhcp6opt_print()
452 ND_PRINT((ndo, ", RD:")); in dhcp6opt_print()
454 ND_PRINT((ndo, " %04x", EXTRACT_16BITS(tp))); in dhcp6opt_print()
463 ND_PRINT((ndo, " ??")); in dhcp6opt_print()
468 ND_PRINT((ndo, ", realm: ")); in dhcp6opt_print()
471 ND_PRINT((ndo, "%02x", *tp)); in dhcp6opt_print()
472 ND_PRINT((ndo, ", key ID: %08x", EXTRACT_32BITS(tp))); in dhcp6opt_print()
474 ND_PRINT((ndo, ", HMAC-MD5:")); in dhcp6opt_print()
476 ND_PRINT((ndo, " %08x", EXTRACT_32BITS(tp))); in dhcp6opt_print()
480 ND_PRINT((ndo, " ??")); in dhcp6opt_print()
485 ND_PRINT((ndo, " reconfig-key")); in dhcp6opt_print()
488 ND_PRINT((ndo, " type: HMAC-MD5")); in dhcp6opt_print()
491 ND_PRINT((ndo, " type: ??")); in dhcp6opt_print()
494 ND_PRINT((ndo, " value:")); in dhcp6opt_print()
496 ND_PRINT((ndo, " %08x", EXTRACT_32BITS(tp))); in dhcp6opt_print()
499 ND_PRINT((ndo, " ??")); in dhcp6opt_print()
503 ND_PRINT((ndo, ")")); in dhcp6opt_print()
506 ND_PRINT((ndo, ")")); in dhcp6opt_print()
515 ND_PRINT((ndo, " ")); in dhcp6opt_print()
517 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
518 ND_PRINT((ndo, "...)")); in dhcp6opt_print()
522 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
528 ND_PRINT((ndo, " for renew)")); in dhcp6opt_print()
531 ND_PRINT((ndo, " for inf-req)")); in dhcp6opt_print()
534 ND_PRINT((ndo, " for ?\?\?(%02x))", *tp)); in dhcp6opt_print()
539 ND_PRINT((ndo, ")")); in dhcp6opt_print()
550 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
555 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[i]))); in dhcp6opt_print()
556 ND_PRINT((ndo, ")")); in dhcp6opt_print()
562 ND_PRINT((ndo, " ")); in dhcp6opt_print()
563 if ((tp = ns_nprint(ndo, tp, cp + sizeof(*dh6o) + optlen)) == NULL) in dhcp6opt_print()
566 ND_PRINT((ndo, ")")); in dhcp6opt_print()
570 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
574 ND_PRINT((ndo, " %s)", dhcp6stcode(EXTRACT_16BITS(&tp[0])))); in dhcp6opt_print()
579 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
583 ND_PRINT((ndo, " IAID:%u T1:%u T2:%u", in dhcp6opt_print()
589 dhcp6opt_print(ndo, tp + 12, tp + optlen); in dhcp6opt_print()
591 ND_PRINT((ndo, ")")); in dhcp6opt_print()
595 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
599 ND_PRINT((ndo, " IAID:%u", EXTRACT_32BITS(tp))); in dhcp6opt_print()
602 dhcp6opt_print(ndo, tp + 4, tp + optlen); in dhcp6opt_print()
604 ND_PRINT((ndo, ")")); in dhcp6opt_print()
608 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
612 ND_PRINT((ndo, " %s/%d", ip6addr_string(ndo, &tp[9]), tp[8])); in dhcp6opt_print()
613 ND_PRINT((ndo, " pltime:%u vltime:%u", in dhcp6opt_print()
618 dhcp6opt_print(ndo, tp + 25, tp + optlen); in dhcp6opt_print()
620 ND_PRINT((ndo, ")")); in dhcp6opt_print()
625 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
629 ND_PRINT((ndo, " %d)", EXTRACT_32BITS(tp))); in dhcp6opt_print()
633 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
637 ND_PRINT((ndo, " %d ", EXTRACT_32BITS(tp))); in dhcp6opt_print()
642 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
643 ND_PRINT((ndo, "...)")); in dhcp6opt_print()
647 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
653 ND_PRINT((ndo, " by-address")); in dhcp6opt_print()
656 ND_PRINT((ndo, " by-clientID")); in dhcp6opt_print()
659 ND_PRINT((ndo, " type_%d", (int)*tp)); in dhcp6opt_print()
662 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[1]))); in dhcp6opt_print()
665 dhcp6opt_print(ndo, tp + 17, tp + optlen); in dhcp6opt_print()
667 ND_PRINT((ndo, ")")); in dhcp6opt_print()
673 dhcp6opt_print(ndo, tp, tp + optlen); in dhcp6opt_print()
675 ND_PRINT((ndo, ")")); in dhcp6opt_print()
679 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
683 ND_PRINT((ndo, " %s ", ip6addr_string(ndo, &tp[0]))); in dhcp6opt_print()
688 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
689 ND_PRINT((ndo, "...)")); in dhcp6opt_print()
693 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
704 ND_PRINT((ndo, " subopt:%d", subopt_code)); in dhcp6opt_print()
709 ND_PRINT((ndo, " ?")); in dhcp6opt_print()
712 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[0]))); in dhcp6opt_print()
715 ND_PRINT((ndo, " ")); in dhcp6opt_print()
716 if (ns_nprint(ndo, tp, tp + subopt_len) == NULL) in dhcp6opt_print()
720 ND_PRINT((ndo, " ?")); in dhcp6opt_print()
725 ND_PRINT((ndo, ")")); in dhcp6opt_print()
729 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
734 ND_PRINT((ndo, " ")); in dhcp6opt_print()
739 (void)fn_printn(ndo, tp, label_len, NULL); in dhcp6opt_print()
742 if(*tp) ND_PRINT((ndo, ".")); in dhcp6opt_print()
744 ND_PRINT((ndo, " ?")); in dhcp6opt_print()
748 ND_PRINT((ndo, ")")); in dhcp6opt_print()
754 ND_PRINT((ndo, " ?)")); in dhcp6opt_print()
758 ND_PRINT((ndo, "=")); in dhcp6opt_print()
759 (void)fn_printn(ndo, tp, (u_int)optlen, NULL); in dhcp6opt_print()
760 ND_PRINT((ndo, ")")); in dhcp6opt_print()
764 ND_PRINT((ndo, ")")); in dhcp6opt_print()
773 ND_PRINT((ndo, "[|dhcp6ext]")); in dhcp6opt_print()
780 dhcp6_print(netdissect_options *ndo, in dhcp6_print() argument
789 ND_PRINT((ndo, "dhcp6")); in dhcp6_print()
791 ep = (const u_char *)ndo->ndo_snapend; in dhcp6_print()
800 if (!ndo->ndo_vflag) { in dhcp6_print()
801 ND_PRINT((ndo, " %s", name)); in dhcp6_print()
807 ND_PRINT((ndo, " %s (", name)); /*)*/ in dhcp6_print()
810 ND_PRINT((ndo, "xid=%x", EXTRACT_32BITS(&dh6->dh6_xid) & DH6_XIDMASK)); in dhcp6_print()
812 dhcp6opt_print(ndo, extp, ep); in dhcp6_print()
819 ND_PRINT((ndo, "linkaddr=%s", ip6addr_string(ndo, &addr6))); in dhcp6_print()
822 ND_PRINT((ndo, " peeraddr=%s", ip6addr_string(ndo, &addr6))); in dhcp6_print()
824 dhcp6opt_print(ndo, (const u_char *)(dh6relay + 1), ep); in dhcp6_print()
827 ND_PRINT((ndo, ")")); in dhcp6_print()
831 ND_PRINT((ndo, "[|dhcp6]")); in dhcp6_print()