Lines Matching refs:ndo

479 static void print_lladdr(netdissect_options *ndo, const u_char *, size_t);
480 static void icmp6_opt_print(netdissect_options *ndo, const u_char *, int);
481 static void mld6_print(netdissect_options *ndo, const u_char *);
482 static void mldv2_report_print(netdissect_options *ndo, const u_char *, u_int);
483 static void mldv2_query_print(netdissect_options *ndo, const u_char *, u_int);
484 static const struct udphdr *get_upperlayer(netdissect_options *ndo, const u_char *, u_int *);
485 static void dnsname_print(netdissect_options *ndo, const u_char *, const u_char *);
486 static void icmp6_nodeinfo_print(netdissect_options *ndo, u_int, const u_char *, const u_char *);
487 static void icmp6_rrenum_print(netdissect_options *ndo, const u_char *, const u_char *);
611 print_lladdr(netdissect_options *ndo, const uint8_t *p, size_t l) in print_lladdr() argument
619 ND_PRINT((ndo,":")); in print_lladdr()
620 ND_PRINT((ndo,"%02x", *q++)); in print_lladdr()
625 static int icmp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, in icmp6_cksum() argument
628 return nextproto6_cksum(ndo, ip6, (const uint8_t *)(const void *)icp, len, len, in icmp6_cksum()
654 rpl_dio_printopt(netdissect_options *ndo, in rpl_dio_printopt() argument
664 (const u_char *)opt < ndo->ndo_snapend) || in rpl_dio_printopt()
670 ND_PRINT((ndo, " opt:pad0")); in rpl_dio_printopt()
672 ND_PRINT((ndo, " opt:%s len:%u ", in rpl_dio_printopt()
675 if(ndo->ndo_vflag > 2) { in rpl_dio_printopt()
678 hex_print(ndo, in rpl_dio_printopt()
689 ND_PRINT((ndo," [|truncated]")); in rpl_dio_printopt()
694 rpl_dio_print(netdissect_options *ndo, in rpl_dio_print() argument
701 dagid_str = ip6addr_string (ndo, dio->rpl_dagid); in rpl_dio_print()
703 ND_PRINT((ndo, " [dagid:%s,seq:%u,instance:%u,rank:%u,%smop:%s,prf:%u]", in rpl_dio_print()
712 if(ndo->ndo_vflag > 1) { in rpl_dio_print()
714 rpl_dio_printopt(ndo, opt, length); in rpl_dio_print()
718 ND_PRINT((ndo," [|truncated]")); in rpl_dio_print()
723 rpl_dao_print(netdissect_options *ndo, in rpl_dao_print() argument
739 dagid_str = ip6addr_string (ndo, dao->rpl_dagid); in rpl_dao_print()
744 ND_PRINT((ndo, " [dagid:%s,seq:%u,instance:%u%s%s,%02x]", in rpl_dao_print()
752 if(ndo->ndo_vflag > 1) { in rpl_dao_print()
754 rpl_dio_printopt(ndo, opt, length); in rpl_dao_print()
759 ND_PRINT((ndo," [|truncated]")); in rpl_dao_print()
763 ND_PRINT((ndo," [|length too short]")); in rpl_dao_print()
768 rpl_daoack_print(netdissect_options *ndo, in rpl_daoack_print() argument
784 dagid_str = ip6addr_string (ndo, daoack->rpl_dagid); in rpl_daoack_print()
789 ND_PRINT((ndo, " [dagid:%s,seq:%u,instance:%u,status:%u]", in rpl_daoack_print()
796 if(ndo->ndo_vflag > 1) { in rpl_daoack_print()
798 rpl_dio_printopt(ndo, opt, length); in rpl_daoack_print()
803 ND_PRINT((ndo," [|dao-truncated]")); in rpl_daoack_print()
807 ND_PRINT((ndo," [|dao-length too short]")); in rpl_daoack_print()
812 rpl_print(netdissect_options *ndo, in rpl_print() argument
820 ND_PRINT((ndo, ", (SEC) [worktodo]")); in rpl_print()
827 ND_PRINT((ndo, ", (CLR)")); in rpl_print()
832 ND_PRINT((ndo, "DODAG Information Solicitation")); in rpl_print()
833 if(ndo->ndo_vflag) { in rpl_print()
837 ND_PRINT((ndo, "DODAG Information Object")); in rpl_print()
838 if(ndo->ndo_vflag) { in rpl_print()
839 rpl_dio_print(ndo, bp, length); in rpl_print()
843 ND_PRINT((ndo, "Destination Advertisement Object")); in rpl_print()
844 if(ndo->ndo_vflag) { in rpl_print()
845 rpl_dao_print(ndo, bp, length); in rpl_print()
849 ND_PRINT((ndo, "Destination Advertisement Object Ack")); in rpl_print()
850 if(ndo->ndo_vflag) { in rpl_print()
851 rpl_daoack_print(ndo, bp, length); in rpl_print()
855 ND_PRINT((ndo, "RPL message, unknown code %u",hdr->icmp6_code)); in rpl_print()
862 ND_PRINT((ndo," [|truncated]")); in rpl_print()
870 icmp6_print(netdissect_options *ndo, in icmp6_print() argument
885 ep = ndo->ndo_snapend; in icmp6_print()
889 if (ndo->ndo_vflag && !fragmented) { in icmp6_print()
894 sum = icmp6_cksum(ndo, ip, dp, length); in icmp6_print()
896 ND_PRINT((ndo,"[bad icmp6 cksum 0x%04x -> 0x%04x!] ", in icmp6_print()
900 ND_PRINT((ndo,"[icmp6 sum ok] ")); in icmp6_print()
904 … ND_PRINT((ndo,"ICMP6, %s", tok2str(icmp6_type_values,"unknown icmp6 type (%u)",dp->icmp6_type))); in icmp6_print()
907 if (ndo->ndo_vflag && (dp->icmp6_type == ND_ROUTER_SOLICIT || in icmp6_print()
914 ND_PRINT((ndo,", length %u", length)); in icmp6_print()
919 …ND_PRINT((ndo,", %s", tok2str(icmp6_dst_unreach_code_values,"unknown unreach code (%u)",dp->icmp6_… in icmp6_print()
925 ND_PRINT((ndo," %s",ip6addr_string(ndo, &oip->ip6_dst))); in icmp6_print()
928 ND_PRINT((ndo," %s, source address %s", in icmp6_print()
929 ip6addr_string(ndo, &oip->ip6_dst), in icmp6_print()
930 ip6addr_string(ndo, &oip->ip6_src))); in icmp6_print()
933 if ((ouh = get_upperlayer(ndo, (const u_char *)oip, &prot)) in icmp6_print()
940 ND_PRINT((ndo,", %s tcp port %s", in icmp6_print()
941 ip6addr_string(ndo, &oip->ip6_dst), in icmp6_print()
942 tcpport_string(ndo, dport))); in icmp6_print()
945 ND_PRINT((ndo,", %s udp port %s", in icmp6_print()
946 ip6addr_string(ndo, &oip->ip6_dst), in icmp6_print()
947 udpport_string(ndo, dport))); in icmp6_print()
950 ND_PRINT((ndo,", %s protocol %d port %d unreachable", in icmp6_print()
951 ip6addr_string(ndo, &oip->ip6_dst), in icmp6_print()
957 if (ndo->ndo_vflag <= 1) { in icmp6_print()
958 print_unknown_data(ndo, bp,"\n\t",length); in icmp6_print()
966 ND_PRINT((ndo,", mtu %u", EXTRACT_32BITS(&dp->icmp6_mtu))); in icmp6_print()
972 ND_PRINT((ndo," for %s", in icmp6_print()
973 ip6addr_string(ndo, &oip->ip6_dst))); in icmp6_print()
976 ND_PRINT((ndo," (reassembly)")); in icmp6_print()
979 ND_PRINT((ndo,", unknown code (%u)", dp->icmp6_code)); in icmp6_print()
987 ND_PRINT((ndo,", erroneous - octet %u", EXTRACT_32BITS(&dp->icmp6_pptr))); in icmp6_print()
990 ND_PRINT((ndo,", next header - octet %u", EXTRACT_32BITS(&dp->icmp6_pptr))); in icmp6_print()
993 ND_PRINT((ndo,", option - octet %u", EXTRACT_32BITS(&dp->icmp6_pptr))); in icmp6_print()
996 ND_PRINT((ndo,", code-#%d", in icmp6_print()
1004 ND_PRINT((ndo,", seq %u", EXTRACT_16BITS(&dp->icmp6_seq))); in icmp6_print()
1008 mld6_print(ndo, (const u_char *)dp); in icmp6_print()
1010 ND_PRINT((ndo," v2")); in icmp6_print()
1011 mldv2_query_print(ndo, (const u_char *)dp, length); in icmp6_print()
1013 ND_PRINT((ndo," unknown-version (len %u) ", length)); in icmp6_print()
1017 mld6_print(ndo, (const u_char *)dp); in icmp6_print()
1020 mld6_print(ndo, (const u_char *)dp); in icmp6_print()
1024 if (ndo->ndo_vflag) { in icmp6_print()
1025 icmp6_opt_print(ndo, (const u_char *)dp + RTSOLLEN, in icmp6_print()
1031 if (ndo->ndo_vflag) { in icmp6_print()
1036 ND_PRINT((ndo,"\n\thop limit %u, Flags [%s]" \ in icmp6_print()
1045 icmp6_opt_print(ndo, (const u_char *)dp + RTADVLEN, in icmp6_print()
1054 ND_PRINT((ndo,", who has %s", ip6addr_string(ndo, &p->nd_ns_target))); in icmp6_print()
1055 if (ndo->ndo_vflag) { in icmp6_print()
1057 icmp6_opt_print(ndo, (const u_char *)dp + NDSOLLEN, in icmp6_print()
1068 ND_PRINT((ndo,", tgt is %s", in icmp6_print()
1069 ip6addr_string(ndo, &p->nd_na_target))); in icmp6_print()
1070 if (ndo->ndo_vflag) { in icmp6_print()
1071 ND_PRINT((ndo,", Flags [%s]", in icmp6_print()
1076 icmp6_opt_print(ndo, (const u_char *)dp + NDADVLEN, in icmp6_print()
1085 ND_PRINT((ndo,", %s", ip6addr_string(ndo, &RDR(dp)->nd_rd_dst))); in icmp6_print()
1087 ND_PRINT((ndo," to %s", in icmp6_print()
1088 ip6addr_string(ndo, &RDR(dp)->nd_rd_target))); in icmp6_print()
1090 if (ndo->ndo_vflag) { in icmp6_print()
1091 icmp6_opt_print(ndo, (const u_char *)dp + REDIRECTLEN, in icmp6_print()
1098 icmp6_rrenum_print(ndo, bp, ep); in icmp6_print()
1102 icmp6_nodeinfo_print(ndo, length, bp, ep); in icmp6_print()
1108 mldv2_report_print(ndo, (const u_char *) dp, length); in icmp6_print()
1113 ND_PRINT((ndo,", id 0x%04x", EXTRACT_16BITS(&dp->icmp6_data16[0]))); in icmp6_print()
1116 if (ndo->ndo_vflag) { in icmp6_print()
1121 ND_PRINT((ndo,", id 0x%04x", EXTRACT_16BITS(&dp->icmp6_data16[0]))); in icmp6_print()
1126 ND_PRINT((ndo,", %s", ip6addr_string(ndo, in6))); in icmp6_print()
1131 if (ndo->ndo_vflag) { in icmp6_print()
1133 ND_PRINT((ndo,", id 0x%04x", EXTRACT_16BITS(&dp->icmp6_data16[0]))); in icmp6_print()
1136 ND_PRINT((ndo," ")); in icmp6_print()
1138 ND_PRINT((ndo,"M")); in icmp6_print()
1140 ND_PRINT((ndo,"O")); in icmp6_print()
1142 icmp6_opt_print(ndo, (const u_char *)dp + MPADVLEN, in icmp6_print()
1148 rpl_print(ndo, dp, &dp->icmp6_data8[0], length-sizeof(struct icmp6_hdr)+4); in icmp6_print()
1151 ND_PRINT((ndo,", length %u", length)); in icmp6_print()
1152 if (ndo->ndo_vflag <= 1) in icmp6_print()
1153 print_unknown_data(ndo, bp,"\n\t", length); in icmp6_print()
1156 if (!ndo->ndo_vflag) in icmp6_print()
1157 ND_PRINT((ndo,", length %u", length)); in icmp6_print()
1160 ND_PRINT((ndo, "[|icmp6]")); in icmp6_print()
1164 get_upperlayer(netdissect_options *ndo, const u_char *bp, u_int *prot) in get_upperlayer() argument
1176 ep = ndo->ndo_snapend; in get_upperlayer()
1238 icmp6_opt_print(netdissect_options *ndo, const u_char *bp, int resid) in icmp6_opt_print() argument
1258 ep = ndo->ndo_snapend; in icmp6_opt_print()
1271 ND_PRINT((ndo,"\n\t %s option (%u), length %u (%u): ", in icmp6_opt_print()
1280 print_lladdr(ndo, cp + 2, l); in icmp6_opt_print()
1284 print_lladdr(ndo, cp + 2, l); in icmp6_opt_print()
1289 ND_PRINT((ndo,"%s/%u%s, Flags [%s], valid time %s", in icmp6_opt_print()
1290 ip6addr_string(ndo, &opp->nd_opt_pi_prefix), in icmp6_opt_print()
1295 … ND_PRINT((ndo,", pref. time %s", get_lifetime(EXTRACT_32BITS(&opp->nd_opt_pi_preferred_time)))); in icmp6_opt_print()
1298 print_unknown_data(ndo, bp,"\n\t ",op->nd_opt_len<<3); in icmp6_opt_print()
1304 ND_PRINT((ndo," %u%s", in icmp6_opt_print()
1311 ND_PRINT((ndo," lifetime %us,", in icmp6_opt_print()
1315 ND_PRINT((ndo," addr: %s", in icmp6_opt_print()
1316 ip6addr_string(ndo, &oprd->nd_opt_rdnss_addr[i]))); in icmp6_opt_print()
1321 ND_PRINT((ndo," lifetime %us, domain(s):", in icmp6_opt_print()
1326 ND_PRINT((ndo, " ")); in icmp6_opt_print()
1327 if ((domp = ns_nprint (ndo, domp, bp)) == NULL) in icmp6_opt_print()
1334 ND_PRINT((ndo," %ums", EXTRACT_32BITS(&opa->nd_opt_adv_interval))); in icmp6_opt_print()
1339 ND_PRINT((ndo," preference %u, lifetime %u", in icmp6_opt_print()
1362 ND_PRINT((ndo," %s/%u", ip6addr_string(ndo, &in6), in icmp6_opt_print()
1364 ND_PRINT((ndo,", pref=%s", get_rtpref(opri->nd_opt_rti_flags))); in icmp6_opt_print()
1365 ND_PRINT((ndo,", lifetime=%s", in icmp6_opt_print()
1369 if (ndo->ndo_vflag <= 1) { in icmp6_opt_print()
1370 … print_unknown_data(ndo,cp+2,"\n\t ", (op->nd_opt_len << 3) - 2); /* skip option header */ in icmp6_opt_print()
1376 if (ndo->ndo_vflag> 1) in icmp6_opt_print()
1377 … print_unknown_data(ndo, cp+2,"\n\t ", (op->nd_opt_len << 3) - 2); /* skip option header */ in icmp6_opt_print()
1385 ND_PRINT((ndo, "[ndp opt]")); in icmp6_opt_print()
1391 mld6_print(netdissect_options *ndo, const u_char *bp) in mld6_print() argument
1397 ep = ndo->ndo_snapend; in mld6_print()
1402 ND_PRINT((ndo,"max resp delay: %d ", EXTRACT_16BITS(&mp->mld6_maxdelay))); in mld6_print()
1403 ND_PRINT((ndo,"addr: %s", ip6addr_string(ndo, &mp->mld6_addr))); in mld6_print()
1407 mldv2_report_print(netdissect_options *ndo, const u_char *bp, u_int len) in mldv2_report_print() argument
1415 ND_PRINT((ndo," [invalid len %d]", len)); in mldv2_report_print()
1421 ND_PRINT((ndo,", %d group record(s)", ngroups)); in mldv2_report_print()
1422 if (ndo->ndo_vflag > 0) { in mldv2_report_print()
1428 ND_PRINT((ndo," [invalid number of groups]")); in mldv2_report_print()
1432 ND_PRINT((ndo," [gaddr %s", ip6addr_string(ndo, &bp[group + 4]))); in mldv2_report_print()
1433 ND_PRINT((ndo," %s", tok2str(mldv2report2str, " [v2-report-#%d]", in mldv2_report_print()
1438 ND_PRINT((ndo," [invalid number of sources %d]", nsrcs)); in mldv2_report_print()
1441 if (ndo->ndo_vflag == 1) in mldv2_report_print()
1442 ND_PRINT((ndo,", %d source(s)", nsrcs)); in mldv2_report_print()
1445 ND_PRINT((ndo," {")); in mldv2_report_print()
1449 ND_PRINT((ndo," %s", ip6addr_string(ndo, &bp[group + 20 + j * sizeof(struct in6_addr)]))); in mldv2_report_print()
1451 ND_PRINT((ndo," }")); in mldv2_report_print()
1455 ND_PRINT((ndo,"]")); in mldv2_report_print()
1460 ND_PRINT((ndo,"[|icmp6]")); in mldv2_report_print()
1465 mldv2_query_print(netdissect_options *ndo, const u_char *bp, u_int len) in mldv2_query_print() argument
1475 ND_PRINT((ndo," [invalid len %d]", len)); in mldv2_query_print()
1485 if (ndo->ndo_vflag) { in mldv2_query_print()
1486 ND_PRINT((ndo," [max resp delay=%d]", mrt)); in mldv2_query_print()
1489 ND_PRINT((ndo," [gaddr %s", ip6addr_string(ndo, &bp[8]))); in mldv2_query_print()
1491 if (ndo->ndo_vflag) { in mldv2_query_print()
1494 ND_PRINT((ndo," sflag")); in mldv2_query_print()
1497 ND_PRINT((ndo," robustness=%d", bp[24] & 0x07)); in mldv2_query_print()
1504 ND_PRINT((ndo," qqi=%d", qqi)); in mldv2_query_print()
1511 ND_PRINT((ndo," [invalid number of sources]")); in mldv2_query_print()
1512 else if (ndo->ndo_vflag > 1) { in mldv2_query_print()
1513 ND_PRINT((ndo," {")); in mldv2_query_print()
1517 ND_PRINT((ndo," %s", ip6addr_string(ndo, &bp[28 + i * sizeof(struct in6_addr)]))); in mldv2_query_print()
1519 ND_PRINT((ndo," }")); in mldv2_query_print()
1521 ND_PRINT((ndo,", %d source(s)", nsrcs)); in mldv2_query_print()
1523 ND_PRINT((ndo,"]")); in mldv2_query_print()
1526 ND_PRINT((ndo,"[|icmp6]")); in mldv2_query_print()
1531 dnsname_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in dnsname_print() argument
1536 ND_PRINT((ndo,", \"")); in dnsname_print()
1541 ND_PRINT((ndo,"???")); in dnsname_print()
1545 safeputchar(ndo, *cp); in dnsname_print()
1549 ND_PRINT((ndo,".")); in dnsname_print()
1553 ND_PRINT((ndo,".")); in dnsname_print()
1558 ND_PRINT((ndo,"???")); in dnsname_print()
1563 ND_PRINT((ndo,"\"")); in dnsname_print()
1567 icmp6_nodeinfo_print(netdissect_options *ndo, u_int icmp6len, const u_char *bp, const u_char *ep) in icmp6_nodeinfo_print() argument
1585 ND_PRINT((ndo," who-are-you request")); in icmp6_nodeinfo_print()
1588 ND_PRINT((ndo," node information query")); in icmp6_nodeinfo_print()
1592 ND_PRINT((ndo," (")); /*)*/ in icmp6_nodeinfo_print()
1595 ND_PRINT((ndo,"noop")); in icmp6_nodeinfo_print()
1598 ND_PRINT((ndo,"supported qtypes")); in icmp6_nodeinfo_print()
1601 ND_PRINT((ndo," [%s]", (i & 0x01) ? "C" : "")); in icmp6_nodeinfo_print()
1604 ND_PRINT((ndo,"DNS name")); in icmp6_nodeinfo_print()
1607 ND_PRINT((ndo,"node addresses")); in icmp6_nodeinfo_print()
1612 ND_PRINT((ndo," [%s%s%s%s%s%s]", in icmp6_nodeinfo_print()
1621 ND_PRINT((ndo,"unknown")); in icmp6_nodeinfo_print()
1628 if (ndo->ndo_vflag) in icmp6_nodeinfo_print()
1629 ND_PRINT((ndo,", invalid len")); in icmp6_nodeinfo_print()
1631 ND_PRINT((ndo,")")); in icmp6_nodeinfo_print()
1638 ND_PRINT((ndo,", 03 draft")); in icmp6_nodeinfo_print()
1640 ND_PRINT((ndo,")")); in icmp6_nodeinfo_print()
1650 if (ndo->ndo_vflag) in icmp6_nodeinfo_print()
1651 ND_PRINT((ndo,", invalid subject len")); in icmp6_nodeinfo_print()
1654 ND_PRINT((ndo,", subject=%s", in icmp6_nodeinfo_print()
1655 ip6addr_string(ndo, ni6 + 1))); in icmp6_nodeinfo_print()
1658 ND_PRINT((ndo,", subject=DNS name")); in icmp6_nodeinfo_print()
1662 if (ndo->ndo_vflag) in icmp6_nodeinfo_print()
1663 ND_PRINT((ndo,", 03 draft")); in icmp6_nodeinfo_print()
1665 ND_PRINT((ndo,", \"")); in icmp6_nodeinfo_print()
1667 safeputchar(ndo, *cp); in icmp6_nodeinfo_print()
1670 ND_PRINT((ndo,"\"")); in icmp6_nodeinfo_print()
1672 dnsname_print(ndo, cp, ep); in icmp6_nodeinfo_print()
1678 if (ndo->ndo_vflag) in icmp6_nodeinfo_print()
1679 ND_PRINT((ndo,", invalid subject len")); in icmp6_nodeinfo_print()
1682 ND_PRINT((ndo,", subject=%s", in icmp6_nodeinfo_print()
1683 ipaddr_string(ndo, ni6 + 1))); in icmp6_nodeinfo_print()
1686 ND_PRINT((ndo,", unknown subject")); in icmp6_nodeinfo_print()
1691 ND_PRINT((ndo,")")); in icmp6_nodeinfo_print()
1696 ND_PRINT((ndo,"[|icmp6: node information reply]")); in icmp6_nodeinfo_print()
1704 ND_PRINT((ndo," node information reply")); in icmp6_nodeinfo_print()
1705 ND_PRINT((ndo," (")); /*)*/ in icmp6_nodeinfo_print()
1708 if (ndo->ndo_vflag) { in icmp6_nodeinfo_print()
1709 ND_PRINT((ndo,"success")); in icmp6_nodeinfo_print()
1714 ND_PRINT((ndo,"refused")); in icmp6_nodeinfo_print()
1717 if (ndo->ndo_vflag) in icmp6_nodeinfo_print()
1718 ND_PRINT((ndo,", invalid length")); in icmp6_nodeinfo_print()
1721 ND_PRINT((ndo,"unknown")); in icmp6_nodeinfo_print()
1724 if (ndo->ndo_vflag) in icmp6_nodeinfo_print()
1725 ND_PRINT((ndo,", invalid length")); in icmp6_nodeinfo_print()
1731 ND_PRINT((ndo,")")); in icmp6_nodeinfo_print()
1738 ND_PRINT((ndo,", ")); in icmp6_nodeinfo_print()
1739 ND_PRINT((ndo,"noop")); in icmp6_nodeinfo_print()
1741 if (ndo->ndo_vflag) in icmp6_nodeinfo_print()
1742 ND_PRINT((ndo,", invalid length")); in icmp6_nodeinfo_print()
1746 ND_PRINT((ndo,", ")); in icmp6_nodeinfo_print()
1747 ND_PRINT((ndo,"supported qtypes")); in icmp6_nodeinfo_print()
1750 ND_PRINT((ndo," [%s]", (i & 0x01) ? "C" : "")); in icmp6_nodeinfo_print()
1754 ND_PRINT((ndo,", ")); in icmp6_nodeinfo_print()
1755 ND_PRINT((ndo,"DNS name")); in icmp6_nodeinfo_print()
1760 if (ndo->ndo_vflag) in icmp6_nodeinfo_print()
1761 ND_PRINT((ndo,", 03 draft")); in icmp6_nodeinfo_print()
1763 ND_PRINT((ndo,", \"")); in icmp6_nodeinfo_print()
1765 safeputchar(ndo, *cp); in icmp6_nodeinfo_print()
1768 ND_PRINT((ndo,"\"")); in icmp6_nodeinfo_print()
1770 dnsname_print(ndo, cp, ep); in icmp6_nodeinfo_print()
1772 ND_PRINT((ndo," [TTL=%u]", EXTRACT_32BITS(ni6 + 1))); in icmp6_nodeinfo_print()
1776 ND_PRINT((ndo,", ")); in icmp6_nodeinfo_print()
1777 ND_PRINT((ndo,"node addresses")); in icmp6_nodeinfo_print()
1782 ND_PRINT((ndo," %s", ip6addr_string(ndo, bp + i))); in icmp6_nodeinfo_print()
1784 ND_PRINT((ndo,"(%d)", (int32_t)EXTRACT_32BITS(bp + i))); in icmp6_nodeinfo_print()
1790 ND_PRINT((ndo," [%s%s%s%s%s%s%s]", in icmp6_nodeinfo_print()
1801 ND_PRINT((ndo,", ")); in icmp6_nodeinfo_print()
1802 ND_PRINT((ndo,"unknown")); in icmp6_nodeinfo_print()
1807 ND_PRINT((ndo,")")); in icmp6_nodeinfo_print()
1813 ND_PRINT((ndo, "[|icmp6]")); in icmp6_nodeinfo_print()
1817 icmp6_rrenum_print(netdissect_options *ndo, const u_char *bp, const u_char *ep) in icmp6_rrenum_print() argument
1834 ND_PRINT((ndo,"router renum: command")); in icmp6_rrenum_print()
1837 ND_PRINT((ndo,"router renum: result")); in icmp6_rrenum_print()
1840 ND_PRINT((ndo,"router renum: sequence number reset")); in icmp6_rrenum_print()
1843 ND_PRINT((ndo,"router renum: code-#%d", rr6->rr_code)); in icmp6_rrenum_print()
1847 ND_PRINT((ndo,", seq=%u", EXTRACT_32BITS(&rr6->rr_seqnum))); in icmp6_rrenum_print()
1849 if (ndo->ndo_vflag) { in icmp6_rrenum_print()
1851 ND_PRINT((ndo,"[")); /*]*/ in icmp6_rrenum_print()
1853 ND_PRINT((ndo,"%s%s%s%s%s,", F(ICMP6_RR_FLAGS_TEST, "T"), in icmp6_rrenum_print()
1859 ND_PRINT((ndo,"seg=%u,", rr6->rr_segnum)); in icmp6_rrenum_print()
1860 ND_PRINT((ndo,"maxdelay=%u", EXTRACT_16BITS(&rr6->rr_maxdelay))); in icmp6_rrenum_print()
1862 ND_PRINT((ndo,"rsvd=0x%x", EXTRACT_32BITS(&rr6->rr_reserved))); in icmp6_rrenum_print()
1864 ND_PRINT((ndo,"]")); in icmp6_rrenum_print()
1874 if (ndo->ndo_vflag > 1) in icmp6_rrenum_print()
1875 ND_PRINT((ndo,"\n\t")); in icmp6_rrenum_print()
1877 ND_PRINT((ndo," ")); in icmp6_rrenum_print()
1878 ND_PRINT((ndo,"match(")); /*)*/ in icmp6_rrenum_print()
1880 case RPM_PCO_ADD: ND_PRINT((ndo,"add")); break; in icmp6_rrenum_print()
1881 case RPM_PCO_CHANGE: ND_PRINT((ndo,"change")); break; in icmp6_rrenum_print()
1882 case RPM_PCO_SETGLOBAL: ND_PRINT((ndo,"setglobal")); break; in icmp6_rrenum_print()
1883 default: ND_PRINT((ndo,"#%u", match->rpm_code)); break; in icmp6_rrenum_print()
1886 if (ndo->ndo_vflag) { in icmp6_rrenum_print()
1887 ND_PRINT((ndo,",ord=%u", match->rpm_ordinal)); in icmp6_rrenum_print()
1888 ND_PRINT((ndo,",min=%u", match->rpm_minlen)); in icmp6_rrenum_print()
1889 ND_PRINT((ndo,",max=%u", match->rpm_maxlen)); in icmp6_rrenum_print()
1892 ND_PRINT((ndo,",%s/%u", hbuf, match->rpm_matchlen)); in icmp6_rrenum_print()
1894 ND_PRINT((ndo,",?/%u", match->rpm_matchlen)); in icmp6_rrenum_print()
1896 ND_PRINT((ndo,")")); in icmp6_rrenum_print()
1908 if (ndo->ndo_vflag > 1) in icmp6_rrenum_print()
1909 ND_PRINT((ndo,"\n\t")); in icmp6_rrenum_print()
1911 ND_PRINT((ndo," ")); in icmp6_rrenum_print()
1912 ND_PRINT((ndo,"use(")); /*)*/ in icmp6_rrenum_print()
1915 ND_PRINT((ndo,"%s%s,", in icmp6_rrenum_print()
1920 if (ndo->ndo_vflag) { in icmp6_rrenum_print()
1921 ND_PRINT((ndo,"mask=0x%x,", use->rpu_ramask)); in icmp6_rrenum_print()
1922 ND_PRINT((ndo,"raflags=0x%x,", use->rpu_raflags)); in icmp6_rrenum_print()
1924 ND_PRINT((ndo,"vltime=infty,")); in icmp6_rrenum_print()
1926 ND_PRINT((ndo,"vltime=%u,", in icmp6_rrenum_print()
1929 ND_PRINT((ndo,"pltime=infty,")); in icmp6_rrenum_print()
1931 ND_PRINT((ndo,"pltime=%u,", in icmp6_rrenum_print()
1935 ND_PRINT((ndo,"%s/%u/%u", hbuf, use->rpu_uselen, in icmp6_rrenum_print()
1938 ND_PRINT((ndo,"?/%u/%u", use->rpu_uselen, in icmp6_rrenum_print()
1941 ND_PRINT((ndo,")")); in icmp6_rrenum_print()
1948 ND_PRINT((ndo,"[|icmp6]")); in icmp6_rrenum_print()