Lines Matching refs:ND_PRINT
425 ND_PRINT((ndo, "%s, ", typestr)); in handle_ctrl_proto()
433 ND_PRINT((ndo, "%s (0x%02x), id %u, length %u", in handle_ctrl_proto()
449 ND_PRINT((ndo, "\n\tencoded length %u (=Option(s) length %u)", len, len - 4)); in handle_ctrl_proto()
460 ND_PRINT((ndo, "\n\t Magic-Num 0x%08x", EXTRACT_32BITS(tptr))); in handle_ctrl_proto()
463 ND_PRINT((ndo, " Vendor: %s (%u)", in handle_ctrl_proto()
520 ND_PRINT((ndo, "\n\t Rejected %s Protocol (0x%04x)", in handle_ctrl_proto()
525 ND_PRINT((ndo, "\n\t Rejected Packet")); in handle_ctrl_proto()
535 ND_PRINT((ndo, "\n\t Magic-Num 0x%08x", EXTRACT_32BITS(tptr))); in handle_ctrl_proto()
538 ND_PRINT((ndo, "\n\t -----trailing data-----")); in handle_ctrl_proto()
547 ND_PRINT((ndo, "\n\t Magic-Num 0x%08x", EXTRACT_32BITS(tptr))); in handle_ctrl_proto()
550 ND_PRINT((ndo, "\n\t Message\n\t ")); in handle_ctrl_proto()
559 ND_PRINT((ndo, "\n\t Magic-Num 0x%08x", EXTRACT_32BITS(tptr))); in handle_ctrl_proto()
561 ND_PRINT((ndo, ", Seconds-Remaining %us", EXTRACT_32BITS(tptr + 4))); in handle_ctrl_proto()
575 ND_PRINT((ndo, "[|%s]", typestr)); in handle_ctrl_proto()
594 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u (length bogus, should be >= 2)", in print_lcp_config_options()
597 ND_PRINT((ndo, "\n\tunknown LCP option 0x%02x", opt)); in print_lcp_config_options()
601 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u", lcpconfopts[opt], opt, len)); in print_lcp_config_options()
603 ND_PRINT((ndo, "\n\tunknown LCP option 0x%02x", opt)); in print_lcp_config_options()
610 ND_PRINT((ndo, " (length bogus, should be >= 6)")); in print_lcp_config_options()
614 ND_PRINT((ndo, ": Vendor: %s (%u)", in print_lcp_config_options()
619 ND_PRINT((ndo, ", kind: 0x%02x", p[5])); in print_lcp_config_options()
620 ND_PRINT((ndo, ", Value: 0x")); in print_lcp_config_options()
623 ND_PRINT((ndo, "%02x", p[6 + i])); in print_lcp_config_options()
629 ND_PRINT((ndo, " (length bogus, should be = 4)")); in print_lcp_config_options()
633 ND_PRINT((ndo, ": %u", EXTRACT_16BITS(p + 2))); in print_lcp_config_options()
637 ND_PRINT((ndo, " (length bogus, should be = 6)")); in print_lcp_config_options()
641 ND_PRINT((ndo, ": 0x%08x", EXTRACT_32BITS(p + 2))); in print_lcp_config_options()
645 ND_PRINT((ndo, " (length bogus, should be >= 4)")); in print_lcp_config_options()
649 …ND_PRINT((ndo, ": %s", tok2str(ppptype2str, "Unknown Auth Proto (0x04x)", EXTRACT_16BITS(p + 2)))); in print_lcp_config_options()
654 ND_PRINT((ndo, ", %s", tok2str(authalg_values, "Unknown Auth Alg %u", p[4]))); in print_lcp_config_options()
667 ND_PRINT((ndo, " (length bogus, should be >= 4)")); in print_lcp_config_options()
672 ND_PRINT((ndo, ": LQR")); in print_lcp_config_options()
674 ND_PRINT((ndo, ": unknown")); in print_lcp_config_options()
678 ND_PRINT((ndo, " (length bogus, should be = 6)")); in print_lcp_config_options()
682 ND_PRINT((ndo, ": 0x%08x", EXTRACT_32BITS(p + 2))); in print_lcp_config_options()
690 ND_PRINT((ndo, " (length bogus, should be = 4)")); in print_lcp_config_options()
694 ND_PRINT((ndo, ": 0x%04x", EXTRACT_16BITS(p + 2))); in print_lcp_config_options()
698 ND_PRINT((ndo, " (length bogus, should be >= 3)")); in print_lcp_config_options()
701 ND_PRINT((ndo, ": ")); in print_lcp_config_options()
703 ND_PRINT((ndo, ": Callback Operation %s (%u)", in print_lcp_config_options()
709 ND_PRINT((ndo, " (length bogus, should be = 4)")); in print_lcp_config_options()
713 ND_PRINT((ndo, ": %u", EXTRACT_16BITS(p + 2))); in print_lcp_config_options()
717 ND_PRINT((ndo, " (length bogus, should be >= 3)")); in print_lcp_config_options()
723 ND_PRINT((ndo, ": Null")); in print_lcp_config_options()
726 ND_PRINT((ndo, ": Local")); /* XXX */ in print_lcp_config_options()
730 ND_PRINT((ndo, " (length bogus, should be = 7)")); in print_lcp_config_options()
734 ND_PRINT((ndo, ": IPv4 %s", ipaddr_string(ndo, p + 3))); in print_lcp_config_options()
738 ND_PRINT((ndo, " (length bogus, should be = 9)")); in print_lcp_config_options()
742 ND_PRINT((ndo, ": MAC %s", etheraddr_string(ndo, p + 3))); in print_lcp_config_options()
745 ND_PRINT((ndo, ": Magic-Num-Block")); /* XXX */ in print_lcp_config_options()
748 ND_PRINT((ndo, ": PSNDN")); /* XXX */ in print_lcp_config_options()
751 ND_PRINT((ndo, ": Unknown class %u", p[2])); in print_lcp_config_options()
795 ND_PRINT((ndo, "[|lcp]")); in print_lcp_config_options()
811 ND_PRINT((ndo, "MLPPP, ")); in handle_mlppp()
813 ND_PRINT((ndo, "seq 0x%03x, Flags [%s], length %u", in handle_mlppp()
831 ND_PRINT((ndo, "[|chap]")); in handle_chap()
835 ND_PRINT((ndo, "[|chap 0x%02x]", *p)); in handle_chap()
841 ND_PRINT((ndo, "CHAP, %s (0x%02x)", in handle_chap()
847 ND_PRINT((ndo, ", id %u", *p)); /* ID */ in handle_chap()
871 ND_PRINT((ndo, ", Value ")); in handle_chap()
874 ND_PRINT((ndo, "%02x", *p++)); in handle_chap()
877 ND_PRINT((ndo, ", Name ")); in handle_chap()
886 ND_PRINT((ndo, ", Msg ")); in handle_chap()
896 ND_PRINT((ndo, "[|chap]")); in handle_chap()
911 ND_PRINT((ndo, "[|pap]")); in handle_pap()
915 ND_PRINT((ndo, "[|pap 0x%02x]", *p)); in handle_pap()
921 ND_PRINT((ndo, "PAP, %s (0x%02x)", in handle_pap()
927 ND_PRINT((ndo, ", id %u", *p)); /* ID */ in handle_pap()
935 ND_PRINT((ndo, ", length %u > packet size", len)); in handle_pap()
940 ND_PRINT((ndo, ", length %u < PAP header length", length)); in handle_pap()
953 ND_PRINT((ndo, ", Peer ")); in handle_pap()
966 ND_PRINT((ndo, ", Name ")); in handle_pap()
981 ND_PRINT((ndo, ", Msg ")); in handle_pap()
991 ND_PRINT((ndo, "[|pap]")); in handle_pap()
1019 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u (length bogus, should be >= 2)", in print_ipcp_config_options()
1026 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u", in print_ipcp_config_options()
1034 ND_PRINT((ndo, " (length bogus, should be = 10)")); in print_ipcp_config_options()
1038 ND_PRINT((ndo, ": src %s, dst %s", in print_ipcp_config_options()
1044 ND_PRINT((ndo, " (length bogus, should be >= 4)")); in print_ipcp_config_options()
1050 ND_PRINT((ndo, ": %s (0x%02x):", in print_ipcp_config_options()
1060 ND_PRINT((ndo, " (length bogus, should be >= %u)", in print_ipcp_config_options()
1066 ND_PRINT((ndo, "\n\t TCP Space %u, non-TCP Space %u" \ in print_ipcp_config_options()
1079 … ND_PRINT((ndo, "\n\t Suboptions, length %u", ipcomp_subopttotallen)); in print_ipcp_config_options()
1092 ND_PRINT((ndo, "\n\t\t%s Suboption #%u, length %u", in print_ipcp_config_options()
1116 ND_PRINT((ndo, " (length bogus, should be = 6)")); in print_ipcp_config_options()
1120 ND_PRINT((ndo, ": %s", ipaddr_string(ndo, p + 2))); in print_ipcp_config_options()
1136 ND_PRINT((ndo, "[|ipcp]")); in print_ipcp_config_options()
1155 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u (length bogus, should be >= 2)", in print_ip6cp_config_options()
1162 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u", in print_ip6cp_config_options()
1170 ND_PRINT((ndo, " (length bogus, should be = 10)")); in print_ip6cp_config_options()
1174 ND_PRINT((ndo, ": %04x:%04x:%04x:%04x", in print_ip6cp_config_options()
1195 ND_PRINT((ndo, "[|ip6cp]")); in print_ip6cp_config_options()
1215 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u (length bogus, should be >= 2)", in print_ccp_config_options()
1222 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u", in print_ccp_config_options()
1230 ND_PRINT((ndo, " (length bogus, should be >= 3)")); in print_ccp_config_options()
1234 ND_PRINT((ndo, ": Version: %u, Dictionary Bits: %u", in print_ccp_config_options()
1239 ND_PRINT((ndo, " (length bogus, should be >= 4)")); in print_ccp_config_options()
1243 ND_PRINT((ndo, ": Features: %u, PxP: %s, History: %u, #CTX-ID: %u", in print_ccp_config_options()
1250 ND_PRINT((ndo, " (length bogus, should be >= 4)")); in print_ccp_config_options()
1254 ND_PRINT((ndo, ": Window: %uK, Method: %s (0x%x), MBZ: %u, CHK: %u", in print_ccp_config_options()
1291 ND_PRINT((ndo, "[|ccp]")); in print_ccp_config_options()
1310 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u (length bogus, should be >= 2)", in print_bacp_config_options()
1317 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u", in print_bacp_config_options()
1325 ND_PRINT((ndo, " (length bogus, should be = 6)")); in print_bacp_config_options()
1329 ND_PRINT((ndo, ": Magic-Num 0x%08x", EXTRACT_32BITS(p + 2))); in print_bacp_config_options()
1346 ND_PRINT((ndo, "[|bacp]")); in print_bacp_config_options()
1426 ND_PRINT((ndo, "[|ppp]")); in ppp_hdlc()
1483 ND_PRINT((ndo, "compressed PPP data")); in handle_ppp()
1486 ND_PRINT((ndo, "%s ", tok2str(ppptype2str, "unknown PPP protocol (0x%04x)", proto))); in handle_ppp()
1512 if (ndo->ndo_eflag) ND_PRINT((ndo, "In ")); in ppp_print()
1518 if (ndo->ndo_eflag) ND_PRINT((ndo, "Out ")); in ppp_print()
1550 ND_PRINT((ndo, "%s (0x%04x), length %u: ", in ppp_print()
1558 ND_PRINT((ndo, "[|ppp]")); in ppp_print()
1572 ND_PRINT((ndo, "[|ppp]")); in ppp_if_print()
1614 ND_PRINT((ndo, "%c %4d %02x ", p[0] ? 'O' : 'I', length, p[1])); in ppp_if_print()
1641 ND_PRINT((ndo, "[|ppp]")); in ppp_hdlc_if_print()
1649 ND_PRINT((ndo, "[|ppp]")); in ppp_hdlc_if_print()
1654 ND_PRINT((ndo, "%02x %02x %d ", p[0], p[1], length)); in ppp_hdlc_if_print()
1663 ND_PRINT((ndo, "%s: ", tok2str(ppptype2str, "unknown PPP protocol (0x%04x)", proto))); in ppp_hdlc_if_print()
1674 ND_PRINT((ndo, "%02x %02x %d ", p[0], p[1], length)); in ppp_hdlc_if_print()
1683 ND_PRINT((ndo, "unknown addr %02x; ctrl %02x", p[0], p[1])); in ppp_hdlc_if_print()
1706 ND_PRINT((ndo, "[|ppp]")); in ppp_bsdos_if_print()
1715 ND_PRINT((ndo, "%02x %02x ", p[0], p[1])); in ppp_bsdos_if_print()
1721 ND_PRINT((ndo, "%d ", length)); in ppp_bsdos_if_print()
1727 ND_PRINT((ndo, "%02x ", ptype)); in ppp_bsdos_if_print()
1734 ND_PRINT((ndo, "%04x ", ptype)); in ppp_bsdos_if_print()
1741 ND_PRINT((ndo, "%c ", p[SLC_DIR] ? 'O' : 'I')); in ppp_bsdos_if_print()
1751 ND_PRINT((ndo, "%02x %02x ", q[0], q[1])); in ppp_bsdos_if_print()
1754 ND_PRINT((ndo, "%s ", tok2str(ppptype2str, in ppp_bsdos_if_print()
1759 ND_PRINT((ndo, "LLH=[")); in ppp_bsdos_if_print()
1761 ND_PRINT((ndo, "%02x", q[i])); in ppp_bsdos_if_print()
1762 ND_PRINT((ndo, "] ")); in ppp_bsdos_if_print()
1767 ND_PRINT((ndo, "%d ", length)); in ppp_bsdos_if_print()
1808 ND_PRINT((ndo, "CH=[")); in ppp_bsdos_if_print()
1810 ND_PRINT((ndo, "%02x", q[i])); in ppp_bsdos_if_print()
1811 ND_PRINT((ndo, "] ")); in ppp_bsdos_if_print()
1835 ND_PRINT((ndo, "%s ", tok2str(ppptype2str, "unknown PPP protocol (0x%04x)", ptype))); in ppp_bsdos_if_print()