• Home
  • Raw
  • Download

Lines Matching refs:ndo

667 void isoclns_print(netdissect_options *ndo,  in isoclns_print()  argument
671 ND_PRINT((ndo, "|OSI")); in isoclns_print()
675 if (ndo->ndo_eflag) in isoclns_print()
676 ND_PRINT((ndo, "OSI NLPID %s (0x%02x): ", tok2str(nlpid_values, "Unknown", *p), *p)); in isoclns_print()
681 if (!clnp_print(ndo, p, length)) in isoclns_print()
682 print_unknown_data(ndo, p, "\n\t", caplen); in isoclns_print()
686 esis_print(ndo, p, length); in isoclns_print()
690 if (!isis_print(ndo, p, length)) in isoclns_print()
691 print_unknown_data(ndo, p, "\n\t", caplen); in isoclns_print()
695 ND_PRINT((ndo, "%slength: %u", ndo->ndo_eflag ? "" : ", ", length)); in isoclns_print()
699 q933_print(ndo, p + 1, length - 1); in isoclns_print()
703 ip_print(ndo, p + 1, length - 1); in isoclns_print()
707 ip6_print(ndo, p + 1, length - 1); in isoclns_print()
711 ppp_print(ndo, p + 1, length - 1); in isoclns_print()
715 if (!ndo->ndo_eflag) in isoclns_print()
716 ND_PRINT((ndo, "OSI NLPID 0x%02x unknown", *p)); in isoclns_print()
717 ND_PRINT((ndo, "%slength: %u", ndo->ndo_eflag ? "" : ", ", length)); in isoclns_print()
719 print_unknown_data(ndo, p, "\n\t", caplen); in isoclns_print()
761 clnp_print(netdissect_options *ndo, in clnp_print() argument
776 if (!ndo->ndo_eflag) in clnp_print()
777 ND_PRINT((ndo, "CLNP")); in clnp_print()
784 ND_PRINT((ndo, "version %d packet not supported", clnp_header->version)); in clnp_print()
806 if (ndo->ndo_vflag < 1) { in clnp_print()
807 ND_PRINT((ndo, "%s%s > %s, %s, length %u", in clnp_print()
808 ndo->ndo_eflag ? "" : ", ", in clnp_print()
815 ND_PRINT((ndo, "%slength %u", ndo->ndo_eflag ? "" : ", ", length)); in clnp_print()
817 …ND_PRINT((ndo, "\n\t%s PDU, hlen: %u, v: %u, lifetime: %u.%us, Segment PDU length: %u, checksum: 0… in clnp_print()
826 osi_print_cksum(ndo, optr, EXTRACT_16BITS(clnp_header->cksum), 7, in clnp_print()
829 ND_PRINT((ndo, "\n\tFlags [%s]", in clnp_print()
832 ND_PRINT((ndo, "\n\tsource address (length %u): %s\n\tdest address (length %u): %s", in clnp_print()
841 ND_PRINT((ndo, "\n\tData Unit ID: 0x%04x, Segment Offset: %u, Total PDU Length: %u", in clnp_print()
856 ND_PRINT((ndo, ", bad opts/li")); in clnp_print()
864 ND_PRINT((ndo, ", opt (%d) too long", op)); in clnp_print()
871 ND_PRINT((ndo, "\n\t %s Option #%u, length %u, value: ", in clnp_print()
881 ND_PRINT((ndo, "%s %s", in clnp_print()
886 ND_PRINT((ndo, " Bad NSAP offset (0)")); in clnp_print()
891 ND_PRINT((ndo, " Bad NSAP offset (past end of option)")); in clnp_print()
899 ND_PRINT((ndo, "\n\t NSAP address goes past end of option")); in clnp_print()
905 ND_PRINT((ndo, "\n\t NSAP address (length %u): %s", in clnp_print()
914 ND_PRINT((ndo, "0x%1x", *tptr&0x0f)); in clnp_print()
918 ND_PRINT((ndo, "\n\t Format Code: %s", in clnp_print()
922 ND_PRINT((ndo, "\n\t QoS Flags [%s]", in clnp_print()
929 ND_PRINT((ndo, "\n\t Format Code: %s, Security-Level %u", in clnp_print()
937 ND_PRINT((ndo, "\n\t Class: %s Error (0x%01x), %s (0x%01x)", in clnp_print()
945 ND_PRINT((ndo, "padding data")); in clnp_print()
954 print_unknown_data(ndo, tptr, "\n\t ", opli); in clnp_print()
957 if (ndo->ndo_vflag > 1) in clnp_print()
958 print_unknown_data(ndo, pptr, "\n\t ", opli); in clnp_print()
968 ND_PRINT((ndo, "\n\t-----original packet-----\n\t")); in clnp_print()
970 clnp_print(ndo, pptr, length - clnp_header->length_indicator); in clnp_print()
981 …ND_PRINT((ndo, "\n\t undecoded non-header data, length %u", length-clnp_header->length_indicator)… in clnp_print()
982 print_unknown_data(ndo, pptr, "\n\t ", length - (pptr - optr)); in clnp_print()
989 ND_PRINT((ndo, "[|clnp]")); in clnp_print()
1017 esis_print(netdissect_options *ndo, in esis_print() argument
1024 if (!ndo->ndo_eflag) in esis_print()
1025 ND_PRINT((ndo, "ES-IS")); in esis_print()
1028 ND_PRINT((ndo, ndo->ndo_qflag ? "bad pkt!" : "no header at all!")); in esis_print()
1042 ND_PRINT((ndo, " nlpid 0x%02x packet not supported", esis_header->nlpid)); in esis_print()
1047 ND_PRINT((ndo, " version %d packet not supported", esis_header->version)); in esis_print()
1052 ND_PRINT((ndo, " length indicator(%d) > PDU size (%d)!", li, length)); in esis_print()
1057 ND_PRINT((ndo, " length indicator < min PDU size %d:", li)); in esis_print()
1058 while (pptr < ndo->ndo_snapend) in esis_print()
1059 ND_PRINT((ndo, "%02X", *pptr++)); in esis_print()
1065 if (ndo->ndo_vflag < 1) { in esis_print()
1066 ND_PRINT((ndo, "%s%s, length %u", in esis_print()
1067 ndo->ndo_eflag ? "" : ", ", in esis_print()
1072 ND_PRINT((ndo, "%slength %u\n\t%s (%u)", in esis_print()
1073 ndo->ndo_eflag ? "" : ", ", in esis_print()
1078 …ND_PRINT((ndo, ", v: %u%s", esis_header->version, esis_header->version == ESIS_VERSION ? "" : "uns… in esis_print()
1079 ND_PRINT((ndo, ", checksum: 0x%04x", EXTRACT_16BITS(esis_header->cksum))); in esis_print()
1081 osi_print_cksum(ndo, pptr, EXTRACT_16BITS(esis_header->cksum), 7, li); in esis_print()
1083 ND_PRINT((ndo, ", holding time: %us, length indicator: %u", in esis_print()
1086 if (ndo->ndo_vflag > 1) in esis_print()
1087 print_unknown_data(ndo, optr, "\n\t", sizeof(struct esis_header_t)); in esis_print()
1099 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1107 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1113 ND_PRINT((ndo, "\n\t %s", isonsap_string(dst, dstl))); in esis_print()
1117 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1125 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1133 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1140 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1148 ND_PRINT((ndo, "\n\t %s", etheraddr_string(ndo, snpa))); in esis_print()
1150 ND_PRINT((ndo, "\n\t %s", isonsap_string(neta, netal))); in esis_print()
1157 ND_PRINT((ndo, ", bad esh/li")); in esis_print()
1164 ND_PRINT((ndo, "\n\t Number of Source Addresses: %u", source_address_number)); in esis_print()
1169 ND_PRINT((ndo, ", bad esh/li")); in esis_print()
1178 ND_PRINT((ndo, ", bad esh/li")); in esis_print()
1181 ND_PRINT((ndo, "\n\t NET (length: %u): %s", in esis_print()
1194 ND_PRINT((ndo, ", bad ish/li")); in esis_print()
1202 ND_PRINT((ndo, ", bad ish/li")); in esis_print()
1205 …ND_PRINT((ndo, "\n\t NET (length: %u): %s", source_address_length, isonsap_string(pptr, source_ad… in esis_print()
1212 if (ndo->ndo_vflag <= 1) { in esis_print()
1213 if (pptr < ndo->ndo_snapend) in esis_print()
1214 print_unknown_data(ndo, pptr, "\n\t ", ndo->ndo_snapend - pptr); in esis_print()
1225 ND_PRINT((ndo, ", bad opts/li")); in esis_print()
1233 ND_PRINT((ndo, ", opt (%d) too long", op)); in esis_print()
1239 ND_PRINT((ndo, "\n\t %s Option #%u, length %u, value: ", in esis_print()
1249 ND_PRINT((ndo, "%us", EXTRACT_16BITS(tptr))); in esis_print()
1251 ND_PRINT((ndo, "(bad length)")); in esis_print()
1257 ND_PRINT((ndo, "%s (0x%02x)", in esis_print()
1263 ND_PRINT((ndo, ", ")); in esis_print()
1281 print_unknown_data(ndo, tptr, "\n\t ", opli); in esis_print()
1284 if (ndo->ndo_vflag > 1) in esis_print()
1285 print_unknown_data(ndo, pptr, "\n\t ", opli); in esis_print()
1293 isis_print_mcid(netdissect_options *ndo, in isis_print_mcid() argument
1298 ND_PRINT((ndo, "ID: %d, Name: ", mcid->format_id)); in isis_print_mcid()
1302 ND_PRINT((ndo, "%c", mcid->name[i])); in isis_print_mcid()
1307 ND_PRINT((ndo, "\n\t Lvl: %d", EXTRACT_16BITS(mcid->revision_lvl))); in isis_print_mcid()
1309 ND_PRINT((ndo, ", Digest: ")); in isis_print_mcid()
1312 ND_PRINT((ndo, "%.2x ", mcid->digest[i])); in isis_print_mcid()
1316 isis_print_mt_port_cap_subtlv(netdissect_options *ndo, in isis_print_mt_port_cap_subtlv() argument
1329 ND_PRINT((ndo, "\n\t %s subTLV #%u, length: %u", in isis_print_mt_port_cap_subtlv()
1346 ND_PRINT((ndo, "\n\t MCID: ")); in isis_print_mt_port_cap_subtlv()
1347 isis_print_mcid(ndo, &(subtlv_spb_mcid->mcid)); in isis_print_mt_port_cap_subtlv()
1352 ND_PRINT((ndo, "\n\t AUX-MCID: ")); in isis_print_mt_port_cap_subtlv()
1353 isis_print_mcid(ndo, &(subtlv_spb_mcid->aux_mcid)); in isis_print_mt_port_cap_subtlv()
1368 ND_PRINT((ndo, "\n\t RES: %d V: %d A: %d D: %d", in isis_print_mt_port_cap_subtlv()
1374 ND_PRINT((ndo, "\n\t Digest: ")); in isis_print_mt_port_cap_subtlv()
1378 ND_PRINT((ndo, "%08x ", EXTRACT_32BITS(tptr))); in isis_print_mt_port_cap_subtlv()
1380 ND_PRINT((ndo, "\n\t ")); in isis_print_mt_port_cap_subtlv()
1399 ND_PRINT((ndo, "\n\t ECT: %08x", in isis_print_mt_port_cap_subtlv()
1404 ND_PRINT((ndo, " BVID: %d, U:%01x M:%01x ", in isis_print_mt_port_cap_subtlv()
1424 ND_PRINT((ndo, "\n\t\t packet exceeded snapshot")); in isis_print_mt_port_cap_subtlv()
1429 isis_print_mt_capability_subtlv(netdissect_options *ndo, in isis_print_mt_capability_subtlv() argument
1440 ND_PRINT((ndo, "\n\t %s subTLV #%u, length: %u", in isis_print_mt_capability_subtlv()
1454 ND_PRINT((ndo, "\n\t CIST Root-ID: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1456 ND_PRINT((ndo, " %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1458 ND_PRINT((ndo, ", Path Cost: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1460 ND_PRINT((ndo, ", Prio: %d", EXTRACT_16BITS(tptr))); in isis_print_mt_capability_subtlv()
1462 ND_PRINT((ndo, "\n\t RES: %d", in isis_print_mt_capability_subtlv()
1464 ND_PRINT((ndo, ", V: %d", in isis_print_mt_capability_subtlv()
1466 ND_PRINT((ndo, ", SPSource-ID: %d", in isis_print_mt_capability_subtlv()
1469 ND_PRINT((ndo, ", No of Trees: %x", *(tptr))); in isis_print_mt_capability_subtlv()
1480 ND_PRINT((ndo, "\n\t U:%d, M:%d, A:%d, RES:%d", in isis_print_mt_capability_subtlv()
1486 ND_PRINT((ndo, ", ECT: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1490 ND_PRINT((ndo, ", BVID: %d, SPVID: %d", in isis_print_mt_capability_subtlv()
1506 ND_PRINT((ndo, "\n\t BMAC: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1508 ND_PRINT((ndo, "%04x", EXTRACT_16BITS(tptr))); in isis_print_mt_capability_subtlv()
1511 ND_PRINT((ndo, ", RES: %d, VID: %d", EXTRACT_16BITS(tptr) >> 12, in isis_print_mt_capability_subtlv()
1520 ND_PRINT((ndo, "\n\t T: %d, R: %d, RES: %d, ISID: %d", in isis_print_mt_capability_subtlv()
1540 ND_PRINT((ndo, "\n\t\t packet exceeded snapshot")); in isis_print_mt_capability_subtlv()
1569 isis_print_metric_block(netdissect_options *ndo, in isis_print_metric_block() argument
1572 ND_PRINT((ndo, ", Default Metric: %d, %s", in isis_print_metric_block()
1576 ND_PRINT((ndo, "\n\t\t Delay Metric: %d, %s", in isis_print_metric_block()
1580 ND_PRINT((ndo, "\n\t\t Expense Metric: %d, %s", in isis_print_metric_block()
1584 ND_PRINT((ndo, "\n\t\t Error Metric: %d, %s", in isis_print_metric_block()
1592 isis_print_tlv_ip_reach(netdissect_options *ndo, in isis_print_tlv_ip_reach() argument
1602 ND_PRINT((ndo, "short IPv4 Reachability (%d vs %lu)", in isis_print_tlv_ip_reach()
1614 ND_PRINT((ndo, "%sIPv4 prefix: %s mask %s", in isis_print_tlv_ip_reach()
1616 ipaddr_string(ndo, (tlv_ip_reach->prefix)), in isis_print_tlv_ip_reach()
1617 ipaddr_string(ndo, (tlv_ip_reach->mask)))); in isis_print_tlv_ip_reach()
1619 ND_PRINT((ndo, "%sIPv4 prefix: %15s/%u", in isis_print_tlv_ip_reach()
1621 ipaddr_string(ndo, (tlv_ip_reach->prefix)), in isis_print_tlv_ip_reach()
1624 ND_PRINT((ndo, ", Distribution: %s, Metric: %u, %s", in isis_print_tlv_ip_reach()
1630 ND_PRINT((ndo, "%s Delay Metric: %u, %s", in isis_print_tlv_ip_reach()
1636 ND_PRINT((ndo, "%s Expense Metric: %u, %s", in isis_print_tlv_ip_reach()
1642 ND_PRINT((ndo, "%s Error Metric: %u, %s", in isis_print_tlv_ip_reach()
1659 isis_print_ip_reach_subtlv(netdissect_options *ndo, in isis_print_ip_reach_subtlv() argument
1664 ND_PRINT((ndo, "%s%s subTLV #%u, length: %u", in isis_print_ip_reach_subtlv()
1675 ND_PRINT((ndo, ", 0x%08x (=%u)", in isis_print_ip_reach_subtlv()
1684 ND_PRINT((ndo, ", 0x%08x%08x", in isis_print_ip_reach_subtlv()
1692 if (!print_unknown_data(ndo, tptr, "\n\t\t ", subl)) in isis_print_ip_reach_subtlv()
1699 ND_PRINT((ndo, "%spacket exceeded snapshot", ident)); in isis_print_ip_reach_subtlv()
1709 isis_print_is_reach_subtlv(netdissect_options *ndo, in isis_print_is_reach_subtlv() argument
1720 ND_PRINT((ndo, "%s%s subTLV #%u, length: %u", in isis_print_is_reach_subtlv()
1732 ND_PRINT((ndo, ", 0x%08x", EXTRACT_32BITS(tptr))); in isis_print_is_reach_subtlv()
1734 ND_PRINT((ndo, ", 0x%08x", EXTRACT_32BITS(tptr+4))); in isis_print_is_reach_subtlv()
1740 ND_PRINT((ndo, ", %s", ipaddr_string(ndo, tptr))); in isis_print_is_reach_subtlv()
1746 ND_PRINT((ndo, ", %.3f Mbps", bw.f * 8 / 1000000)); in isis_print_is_reach_subtlv()
1753 ND_PRINT((ndo, "%s TE-Class %u: %.3f Mbps", in isis_print_is_reach_subtlv()
1763 ND_PRINT((ndo, "%sBandwidth Constraints Model ID: %s (%u)", in isis_print_is_reach_subtlv()
1771 ND_PRINT((ndo, "%s Bandwidth constraint CT%u: %.3f Mbps", in isis_print_is_reach_subtlv()
1780 ND_PRINT((ndo, ", %u", EXTRACT_24BITS(tptr))); in isis_print_is_reach_subtlv()
1784 ND_PRINT((ndo, ", [ %s ] (0x%04x)", in isis_print_is_reach_subtlv()
1793 ND_PRINT((ndo, ", %s, Priority %u", in isis_print_is_reach_subtlv()
1800 ND_PRINT((ndo, ", LM: %u", EXTRACT_24BITS(tptr))); in isis_print_is_reach_subtlv()
1802 ND_PRINT((ndo, ", P: %u", *(tptr))); in isis_print_is_reach_subtlv()
1804 ND_PRINT((ndo, ", P-ID: %u", EXTRACT_16BITS(tptr))); in isis_print_is_reach_subtlv()
1810 ND_PRINT((ndo, "%s Interface Switching Capability:%s", in isis_print_is_reach_subtlv()
1813 ND_PRINT((ndo, ", LSP Encoding: %s", in isis_print_is_reach_subtlv()
1816 ND_PRINT((ndo, "%s Max LSP Bandwidth:", ident)); in isis_print_is_reach_subtlv()
1819 ND_PRINT((ndo, "%s priority level %d: %.3f Mbps", in isis_print_is_reach_subtlv()
1832 ND_PRINT((ndo, "%s Min LSP Bandwidth: %.3f Mbps", ident, bw.f * 8 / 1000000)); in isis_print_is_reach_subtlv()
1833 ND_PRINT((ndo, "%s Interface MTU: %u", ident, EXTRACT_16BITS(tptr + 4))); in isis_print_is_reach_subtlv()
1837 ND_PRINT((ndo, "%s Min LSP Bandwidth: %.3f Mbps", ident, bw.f * 8 / 1000000)); in isis_print_is_reach_subtlv()
1838 ND_PRINT((ndo, "%s Indication %s", ident, in isis_print_is_reach_subtlv()
1845 if (!print_unknown_data(ndo, tptr, "\n\t\t ", subl)) in isis_print_is_reach_subtlv()
1852 if (!print_unknown_data(ndo, tptr, "\n\t\t ", subl)) in isis_print_is_reach_subtlv()
1859 ND_PRINT((ndo, "%spacket exceeded snapshot", ident)); in isis_print_is_reach_subtlv()
1870 isis_print_ext_is_reach(netdissect_options *ndo, in isis_print_ext_is_reach() argument
1880 ND_PRINT((ndo, "%sIS Neighbor: %s", ident, isis_print_id(tptr, NODE_ID_LEN))); in isis_print_ext_is_reach()
1886 ND_PRINT((ndo, ", Metric: %d", EXTRACT_24BITS(tptr))); in isis_print_ext_is_reach()
1894 ND_PRINT((ndo, ", %ssub-TLVs present",subtlv_sum_len ? "" : "no ")); in isis_print_ext_is_reach()
1896 ND_PRINT((ndo, " (%u)", subtlv_sum_len)); in isis_print_ext_is_reach()
1904 if (!isis_print_is_reach_subtlv(ndo, tptr, subtlv_type, subtlv_len, ident_buffer)) in isis_print_ext_is_reach()
1920 isis_print_mtid(netdissect_options *ndo, in isis_print_mtid() argument
1926 ND_PRINT((ndo, "%s%s", in isis_print_mtid()
1932 ND_PRINT((ndo, " Topology (0x%03x), Flags: [%s]", in isis_print_mtid()
1947 isis_print_extd_ip_reach(netdissect_options *ndo, in isis_print_extd_ip_reach() argument
1970 ND_PRINT((ndo, "%sIPv4 prefix: bad bit length %u", in isis_print_extd_ip_reach()
1983 ND_PRINT((ndo, "%sIPv6 prefix: bad bit length %u", in isis_print_extd_ip_reach()
2003 ND_PRINT((ndo, "%sIPv4 prefix: %15s/%u", in isis_print_extd_ip_reach()
2005 ipaddr_string(ndo, prefix), in isis_print_extd_ip_reach()
2009 ND_PRINT((ndo, "%sIPv6 prefix: %s/%u", in isis_print_extd_ip_reach()
2011 ip6addr_string(ndo, prefix), in isis_print_extd_ip_reach()
2015 ND_PRINT((ndo, ", Distribution: %s, Metric: %u", in isis_print_extd_ip_reach()
2020 ND_PRINT((ndo, ", sub-TLVs present")); in isis_print_extd_ip_reach()
2023 ND_PRINT((ndo, ", %s%s", in isis_print_extd_ip_reach()
2041 ND_PRINT((ndo, " (%u)", sublen)); /* print out subTLV length */ in isis_print_extd_ip_reach()
2050 if (!isis_print_ip_reach_subtlv(ndo, tptr, subtlvtype, subtlvlen, ident_buffer)) in isis_print_extd_ip_reach()
2065 isis_print(netdissect_options *ndo, in isis_print() argument
2101 if (!ndo->ndo_eflag) in isis_print()
2102 ND_PRINT((ndo, "IS-IS")); in isis_print()
2109 ND_PRINT((ndo, "version %d packet not supported", isis_header->version)); in isis_print()
2114 ND_PRINT((ndo, "system ID length of %d is not supported", in isis_print()
2120 ND_PRINT((ndo, "version %d packet not supported", isis_header->pdu_version)); in isis_print()
2130 ND_PRINT((ndo, "bad packet -- 255 areas")); in isis_print()
2159 ND_PRINT((ndo, "bad packet -- illegal sys-ID length (%u)", id_length)); in isis_print()
2166 if (ndo->ndo_vflag < 1) { in isis_print()
2167 ND_PRINT((ndo, "%s%s", in isis_print()
2168 ndo->ndo_eflag ? "" : ", ", in isis_print()
2175 ND_PRINT((ndo, ", src-id %s", in isis_print()
2177 ND_PRINT((ndo, ", lan-id %s, prio %u", in isis_print()
2182 ND_PRINT((ndo, ", src-id %s", isis_print_id(header_iih_ptp->source_id, SYSTEM_ID_LEN))); in isis_print()
2186 ND_PRINT((ndo, ", lsp-id %s, seq 0x%08x, lifetime %5us", in isis_print()
2193 ND_PRINT((ndo, ", src-id %s", isis_print_id(header_csnp->source_id, NODE_ID_LEN))); in isis_print()
2197 ND_PRINT((ndo, ", src-id %s", isis_print_id(header_psnp->source_id, NODE_ID_LEN))); in isis_print()
2201 ND_PRINT((ndo, ", length %u", length)); in isis_print()
2207 ND_PRINT((ndo, "%slength %u", ndo->ndo_eflag ? "" : ", ", length)); in isis_print()
2209 ND_PRINT((ndo, "\n\t%s, hlen: %u, v: %u, pdu-v: %u, sys-id-len: %u (%u), max-area: %u (%u)", in isis_print()
2221 if (ndo->ndo_vflag > 1) { in isis_print()
2222 if (!print_unknown_data(ndo, optr, "\n\t", 8)) /* provide the _o_riginal pointer */ in isis_print()
2231 ND_PRINT((ndo, ", bogus fixed header length %u should be %lu", in isis_print()
2243 ND_PRINT((ndo, "\n\t source-id: %s, holding time: %us, Flags: [%s]", in isis_print()
2250 ND_PRINT((ndo, "\n\t lan-id: %s, Priority: %u, PDU length: %u", in isis_print()
2255 if (ndo->ndo_vflag > 1) { in isis_print()
2256 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_IIH_LAN_HEADER_SIZE)) in isis_print()
2266 ND_PRINT((ndo, ", bogus fixed header length %u should be %lu", in isis_print()
2278 ND_PRINT((ndo, "\n\t source-id: %s, holding time: %us, Flags: [%s]", in isis_print()
2285 ND_PRINT((ndo, "\n\t circuit-id: 0x%02x, PDU length: %u", in isis_print()
2289 if (ndo->ndo_vflag > 1) { in isis_print()
2290 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_IIH_PTP_HEADER_SIZE)) in isis_print()
2301 ND_PRINT((ndo, ", bogus fixed header length %u should be %lu", in isis_print()
2313 ND_PRINT((ndo, "\n\t lsp-id: %s, seq: 0x%08x, lifetime: %5us\n\t chksum: 0x%04x", in isis_print()
2320 osi_print_cksum(ndo, (uint8_t *)header_lsp->lsp_id, in isis_print()
2332 ND_PRINT((ndo, ", PDU length: %u, Flags: [ %s", in isis_print()
2337 ND_PRINT((ndo, "%s", ISIS_MASK_LSP_ATT_DEFAULT_BIT(header_lsp->typeblock) ? "default " : "")); in isis_print()
2338 ND_PRINT((ndo, "%s", ISIS_MASK_LSP_ATT_DELAY_BIT(header_lsp->typeblock) ? "delay " : "")); in isis_print()
2339 ND_PRINT((ndo, "%s", ISIS_MASK_LSP_ATT_EXPENSE_BIT(header_lsp->typeblock) ? "expense " : "")); in isis_print()
2340 ND_PRINT((ndo, "%s", ISIS_MASK_LSP_ATT_ERROR_BIT(header_lsp->typeblock) ? "error " : "")); in isis_print()
2341 ND_PRINT((ndo, "ATT bit set, ")); in isis_print()
2343 ND_PRINT((ndo, "%s", ISIS_MASK_LSP_PARTITION_BIT(header_lsp->typeblock) ? "P bit set, " : "")); in isis_print()
2344 ND_PRINT((ndo, "%s ]", tok2str(isis_lsp_istype_values, "Unknown(0x%x)", in isis_print()
2347 if (ndo->ndo_vflag > 1) { in isis_print()
2348 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_LSP_HEADER_SIZE)) in isis_print()
2359 ND_PRINT((ndo, ", bogus fixed header length %u should be %lu", in isis_print()
2371 ND_PRINT((ndo, "\n\t source-id: %s, PDU length: %u", in isis_print()
2374 ND_PRINT((ndo, "\n\t start lsp-id: %s", in isis_print()
2376 ND_PRINT((ndo, "\n\t end lsp-id: %s", in isis_print()
2379 if (ndo->ndo_vflag > 1) { in isis_print()
2380 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_CSNP_HEADER_SIZE)) in isis_print()
2391 ND_PRINT((ndo, "- bogus fixed header length %u should be %lu", in isis_print()
2403 ND_PRINT((ndo, "\n\t source-id: %s, PDU length: %u", in isis_print()
2407 if (ndo->ndo_vflag > 1) { in isis_print()
2408 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_PSNP_HEADER_SIZE)) in isis_print()
2417 (void)print_unknown_data(ndo, pptr, "\n\t ", length); in isis_print()
2426 if (pptr == ndo->ndo_snapend) { in isis_print()
2431 ND_PRINT((ndo, "\n\t\t packet exceeded snapshot (%ld) bytes", in isis_print()
2432 (long)(pptr - ndo->ndo_snapend))); in isis_print()
2445 ND_PRINT((ndo, "\n\t %s TLV #%u, length: %u", in isis_print()
2462 ND_PRINT((ndo, "\n\t Area address (length: %u): %s", in isis_print()
2478 ND_PRINT((ndo, "\n\t SNPA: %s", isis_print_id(tptr, ETHER_ADDR_LEN))); in isis_print()
2489 ND_PRINT((ndo, "\n\t LAN address length 0 bytes (invalid)")); in isis_print()
2493 ND_PRINT((ndo, "\n\t LAN address length %u bytes ", lan_alen)); in isis_print()
2497 ND_PRINT((ndo, "\n\t\tIS Neighbor: %s", isis_print_id(tptr, lan_alen))); in isis_print()
2507 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2513 ext_is_len = isis_print_ext_is_reach(ndo, tptr, "\n\t ", tlv_type); in isis_print()
2524 ext_is_len = isis_print_ext_is_reach(ndo, tptr, "\n\t ", tlv_type); in isis_print()
2534 ext_is_len = isis_print_ext_is_reach(ndo, tptr, "\n\t ", tlv_type); in isis_print()
2544 ND_PRINT((ndo, "\n\t %s", in isis_print()
2552 ND_PRINT((ndo, "\n\t IS Neighbor: %s", in isis_print()
2554 isis_print_metric_block(ndo, &tlv_is_reach->isis_metric_block); in isis_print()
2565 ND_PRINT((ndo, "\n\t ES Neighbor: %s", in isis_print()
2567 isis_print_metric_block(ndo, &tlv_es_reach->isis_metric_block); in isis_print()
2576 if (!isis_print_tlv_ip_reach(ndo, pptr, "\n\t ", tlv_len)) in isis_print()
2582 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET); in isis_print()
2591 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2599 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET); in isis_print()
2610 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET6); in isis_print()
2619 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2627 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET6); in isis_print()
2640 ND_PRINT((ndo, "\n\t IPv6 interface address: %s", in isis_print()
2641 ip6addr_string(ndo, tptr))); in isis_print()
2652 ND_PRINT((ndo, "\n\t %s: ", in isis_print()
2662 ND_PRINT((ndo, "%c", *(tptr + i))); in isis_print()
2669 ND_PRINT((ndo, "%02x", *(tptr + i))); in isis_print()
2672 ND_PRINT((ndo, ", (malformed subTLV) ")); in isis_print()
2675 sigcheck = signature_verify(ndo, optr, length, in isis_print()
2680 ND_PRINT((ndo, " (%s)", tok2str(signature_check_values, "Unknown", sigcheck))); in isis_print()
2685 ND_PRINT((ndo, "%u, password: ", key_id)); in isis_print()
2689 ND_PRINT((ndo, "%02x", *(tptr + i))); in isis_print()
2694 if (!print_unknown_data(ndo, tptr + 1, "\n\t\t ", tlv_len - 1)) in isis_print()
2705 ND_PRINT((ndo, "\n\t Adjacency State: %s (%u)", in isis_print()
2714 ND_PRINT((ndo, "\n\t Extended Local circuit-ID: 0x%08x", in isis_print()
2721 ND_PRINT((ndo, "\n\t Neighbor System-ID: %s", in isis_print()
2729 ND_PRINT((ndo, "\n\t Neighbor Extended Local circuit-ID: 0x%08x", in isis_print()
2735 ND_PRINT((ndo, "\n\t NLPID(s): ")); in isis_print()
2739 ND_PRINT((ndo, "%s (0x%02x)", in isis_print()
2745 ND_PRINT((ndo, ", ")); in isis_print()
2756 ND_PRINT((ndo, "\n\t RES: %d, MTID(s): %d", in isis_print()
2764 isis_print_mt_port_cap_subtlv(ndo, tptr, tmp); in isis_print()
2774 ND_PRINT((ndo, "\n\t O: %d, RES: %d, MTID(s): %d", in isis_print()
2783 isis_print_mt_capability_subtlv(ndo, tptr, tmp); in isis_print()
2790 ND_PRINT((ndo, "\n\t Traffic Engineering Router ID: %s", ipaddr_string(ndo, pptr))); in isis_print()
2797 ND_PRINT((ndo, "\n\t IPv4 interface address: %s", ipaddr_string(ndo, tptr))); in isis_print()
2804 ND_PRINT((ndo, "\n\t Hostname: ")); in isis_print()
2808 ND_PRINT((ndo, "%c", *tptr++)); in isis_print()
2818 ND_PRINT((ndo, "\n\t IS Neighbor: %s", isis_print_id(tptr, NODE_ID_LEN))); in isis_print()
2826 …ND_PRINT((ndo, ", Flags: [%s]", ISIS_MASK_TLV_SHARED_RISK_GROUP(*tptr++) ? "numbered" : "unnumbere… in isis_print()
2833 ND_PRINT((ndo, "\n\t IPv4 interface address: %s", ipaddr_string(ndo, tptr))); in isis_print()
2841 ND_PRINT((ndo, "\n\t IPv4 neighbor address: %s", ipaddr_string(ndo, tptr))); in isis_print()
2848 ND_PRINT((ndo, "\n\t Link-ID: 0x%08x", EXTRACT_32BITS(tptr))); in isis_print()
2859 ND_PRINT((ndo, "\n\t lsp-id: %s", in isis_print()
2863 ND_PRINT((ndo, ", seq: 0x%08x", EXTRACT_32BITS(tlv_lsp->sequence_number))); in isis_print()
2866 ND_PRINT((ndo, ", lifetime: %5ds", EXTRACT_16BITS(tlv_lsp->remaining_lifetime))); in isis_print()
2869 ND_PRINT((ndo, ", chksum: 0x%04x", EXTRACT_16BITS(tlv_lsp->checksum))); in isis_print()
2880 ND_PRINT((ndo, "\n\t checksum: 0x%04x ", EXTRACT_16BITS(tptr))); in isis_print()
2886 osi_print_cksum(ndo, optr, EXTRACT_16BITS(tptr), tptr-optr, length); in isis_print()
2896 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2902 ND_PRINT((ndo, "\n\t malformed MT-ID")); in isis_print()
2914 ND_PRINT((ndo, "\n\t Flags [%s]", in isis_print()
2928 ND_PRINT((ndo, ", Remaining holding time %us", EXTRACT_16BITS(tptr))); in isis_print()
2936 ND_PRINT((ndo, ", for %s", isis_print_id(tptr,SYSTEM_ID_LEN))); in isis_print()
2945 ND_PRINT((ndo, "\n\t Inter-Domain Information Type: %s", in isis_print()
2953 ND_PRINT((ndo, "AS Number: %u", EXTRACT_16BITS(tptr))); in isis_print()
2958 if (!print_unknown_data(ndo, tptr, "\n\t ", tlv_len - 1)) in isis_print()
2969 ND_PRINT((ndo, "\n\t LSP Buffersize: %u", EXTRACT_16BITS(tptr))); in isis_print()
2976 ND_PRINT((ndo, "\n\t %s", isis_print_id(tptr, SYSTEM_ID_LEN))); in isis_print()
2987 ND_PRINT((ndo, "\n\t Metric Block")); in isis_print()
2988 isis_print_metric_block(ndo, (const struct isis_metric_block *)tptr); in isis_print()
2997 ND_PRINT((ndo, "\n\t\tAddress: prefix length %u < 2", prefix_len)); in isis_print()
3005 ND_PRINT((ndo, "\n\t\tAddress: %s/%u", in isis_print()
3017 ND_PRINT((ndo, "\n\t Sequence number: %u", EXTRACT_32BITS(tptr))); in isis_print()
3026 ND_PRINT((ndo, "\n\t Vendor: %s (%u)", in isis_print()
3032 if (!print_unknown_data(ndo, tptr, "\n\t\t", tmp)) in isis_print()
3047 if (ndo->ndo_vflag <= 1) { in isis_print()
3048 if (!print_unknown_data(ndo, pptr, "\n\t\t", tlv_len)) in isis_print()
3054 if (ndo->ndo_vflag> 1) { in isis_print()
3055 if (!print_unknown_data(ndo, pptr, "\n\t ", tlv_len)) in isis_print()
3064 ND_PRINT((ndo, "\n\t %u straggler bytes", packet_len)); in isis_print()
3069 ND_PRINT((ndo, "[|isis]")); in isis_print()
3073 ND_PRINT((ndo, "\n\t\t packet exceeded snapshot")); in isis_print()
3078 osi_print_cksum(netdissect_options *ndo, in osi_print_cksum() argument
3090 || length > ndo->ndo_snaplen in osi_print_cksum()
3091 || checksum_offset > ndo->ndo_snaplen in osi_print_cksum()
3093 ND_PRINT((ndo, "(unverified)")); in osi_print_cksum()
3097 … printf("\nosi_print_cksum: %p %u %u %u\n", pptr, checksum_offset, length, ndo->ndo_snaplen); in osi_print_cksum()
3102 ND_PRINT((ndo, " (correct)")); in osi_print_cksum()
3108 ND_PRINT((ndo, " (%s should be 0x%04x)", truncated, calculated_checksum)); in osi_print_cksum()