Lines Matching refs:ndo
673 isoclns_print(netdissect_options *ndo, const uint8_t *p, u_int length) in isoclns_print() argument
676 ND_PRINT((ndo, "|OSI")); in isoclns_print()
680 if (ndo->ndo_eflag) in isoclns_print()
681 ND_PRINT((ndo, "OSI NLPID %s (0x%02x): ", tok2str(nlpid_values, "Unknown", *p), *p)); in isoclns_print()
686 if (!clnp_print(ndo, p, length)) in isoclns_print()
687 print_unknown_data(ndo, p, "\n\t", length); in isoclns_print()
691 esis_print(ndo, p, length); in isoclns_print()
695 if (!isis_print(ndo, p, length)) in isoclns_print()
696 print_unknown_data(ndo, p, "\n\t", length); in isoclns_print()
700 ND_PRINT((ndo, "%slength: %u", ndo->ndo_eflag ? "" : ", ", length)); in isoclns_print()
704 q933_print(ndo, p + 1, length - 1); in isoclns_print()
708 ip_print(ndo, p + 1, length - 1); in isoclns_print()
712 ip6_print(ndo, p + 1, length - 1); in isoclns_print()
716 ppp_print(ndo, p + 1, length - 1); in isoclns_print()
720 if (!ndo->ndo_eflag) in isoclns_print()
721 ND_PRINT((ndo, "OSI NLPID 0x%02x unknown", *p)); in isoclns_print()
722 ND_PRINT((ndo, "%slength: %u", ndo->ndo_eflag ? "" : ", ", length)); in isoclns_print()
724 print_unknown_data(ndo, p, "\n\t", length); in isoclns_print()
766 clnp_print(netdissect_options *ndo, in clnp_print() argument
781 if (!ndo->ndo_eflag) in clnp_print()
782 ND_PRINT((ndo, "CLNP")); in clnp_print()
789 ND_PRINT((ndo, "version %d packet not supported", clnp_header->version)); in clnp_print()
794 ND_PRINT((ndo, " length indicator(%u) > PDU size (%u)!", li, length)); in clnp_print()
799 ND_PRINT((ndo, " length indicator %u < min PDU size:", li)); in clnp_print()
800 while (pptr < ndo->ndo_snapend) in clnp_print()
801 ND_PRINT((ndo, "%02X", *pptr++)); in clnp_print()
814 ND_PRINT((ndo, "li < size of fixed part of CLNP header and addresses")); in clnp_print()
822 ND_PRINT((ndo, "li < size of fixed part of CLNP header and addresses")); in clnp_print()
831 ND_PRINT((ndo, "li < size of fixed part of CLNP header and addresses")); in clnp_print()
839 ND_PRINT((ndo, "li < size of fixed part of CLNP header and addresses")); in clnp_print()
847 if (ndo->ndo_vflag < 1) { in clnp_print()
848 ND_PRINT((ndo, "%s%s > %s, %s, length %u", in clnp_print()
849 ndo->ndo_eflag ? "" : ", ", in clnp_print()
850 isonsap_string(ndo, source_address, source_address_length), in clnp_print()
851 isonsap_string(ndo, dest_address, dest_address_length), in clnp_print()
856 ND_PRINT((ndo, "%slength %u", ndo->ndo_eflag ? "" : ", ", length)); in clnp_print()
858 …ND_PRINT((ndo, "\n\t%s PDU, hlen: %u, v: %u, lifetime: %u.%us, Segment PDU length: %u, checksum: 0… in clnp_print()
867 osi_print_cksum(ndo, optr, EXTRACT_16BITS(clnp_header->cksum), 7, in clnp_print()
870 ND_PRINT((ndo, "\n\tFlags [%s]", in clnp_print()
873 ND_PRINT((ndo, "\n\tsource address (length %u): %s\n\tdest address (length %u): %s", in clnp_print()
875 isonsap_string(ndo, source_address, source_address_length), in clnp_print()
877 isonsap_string(ndo, dest_address, dest_address_length))); in clnp_print()
881 … ND_PRINT((ndo, "li < size of fixed part of CLNP header, addresses, and segment part")); in clnp_print()
886 ND_PRINT((ndo, "\n\tData Unit ID: 0x%04x, Segment Offset: %u, Total PDU Length: %u", in clnp_print()
900 ND_PRINT((ndo, ", bad opts/li")); in clnp_print()
908 ND_PRINT((ndo, ", opt (%d) too long", op)); in clnp_print()
916 ND_PRINT((ndo, "\n\t %s Option #%u, length %u, value: ", in clnp_print()
935 ND_PRINT((ndo, ", bad opt len")); in clnp_print()
938 ND_PRINT((ndo, "%s %s", in clnp_print()
943 ND_PRINT((ndo, " Bad NSAP offset (0)")); in clnp_print()
948 ND_PRINT((ndo, " Bad NSAP offset (past end of option)")); in clnp_print()
956 ND_PRINT((ndo, "\n\t NSAP address goes past end of option")); in clnp_print()
962 ND_PRINT((ndo, "\n\t NSAP address (length %u): %s", in clnp_print()
964 … isonsap_string(ndo, source_address, source_address_length))); in clnp_print()
972 ND_PRINT((ndo, ", bad opt len")); in clnp_print()
975 ND_PRINT((ndo, "0x%1x", *tptr&0x0f)); in clnp_print()
980 ND_PRINT((ndo, ", bad opt len")); in clnp_print()
983 ND_PRINT((ndo, "\n\t Format Code: %s", in clnp_print()
987 ND_PRINT((ndo, "\n\t QoS Flags [%s]", in clnp_print()
995 ND_PRINT((ndo, ", bad opt len")); in clnp_print()
998 ND_PRINT((ndo, "\n\t Format Code: %s, Security-Level %u", in clnp_print()
1005 ND_PRINT((ndo, ", bad opt len")); in clnp_print()
1010 ND_PRINT((ndo, "\n\t Class: %s Error (0x%01x), %s (0x%01x)", in clnp_print()
1018 ND_PRINT((ndo, "padding data")); in clnp_print()
1027 print_unknown_data(ndo, tptr, "\n\t ", opli); in clnp_print()
1030 if (ndo->ndo_vflag > 1) in clnp_print()
1031 print_unknown_data(ndo, pptr, "\n\t ", opli); in clnp_print()
1041 ND_PRINT((ndo, "\n\t-----original packet-----\n\t")); in clnp_print()
1043 clnp_print(ndo, pptr, length - clnp_header->length_indicator); in clnp_print()
1054 …ND_PRINT((ndo, "\n\t undecoded non-header data, length %u", length-clnp_header->length_indicator)… in clnp_print()
1055 print_unknown_data(ndo, pptr, "\n\t ", length - (pptr - optr)); in clnp_print()
1062 ND_PRINT((ndo, "[|clnp]")); in clnp_print()
1090 esis_print(netdissect_options *ndo, in esis_print() argument
1097 if (!ndo->ndo_eflag) in esis_print()
1098 ND_PRINT((ndo, "ES-IS")); in esis_print()
1101 ND_PRINT((ndo, ndo->ndo_qflag ? "bad pkt!" : "no header at all!")); in esis_print()
1115 ND_PRINT((ndo, " nlpid 0x%02x packet not supported", esis_header->nlpid)); in esis_print()
1120 ND_PRINT((ndo, " version %d packet not supported", esis_header->version)); in esis_print()
1125 ND_PRINT((ndo, " length indicator(%u) > PDU size (%u)!", li, length)); in esis_print()
1130 ND_PRINT((ndo, " length indicator %u < min PDU size:", li)); in esis_print()
1131 while (pptr < ndo->ndo_snapend) in esis_print()
1132 ND_PRINT((ndo, "%02X", *pptr++)); in esis_print()
1138 if (ndo->ndo_vflag < 1) { in esis_print()
1139 ND_PRINT((ndo, "%s%s, length %u", in esis_print()
1140 ndo->ndo_eflag ? "" : ", ", in esis_print()
1145 ND_PRINT((ndo, "%slength %u\n\t%s (%u)", in esis_print()
1146 ndo->ndo_eflag ? "" : ", ", in esis_print()
1151 …ND_PRINT((ndo, ", v: %u%s", esis_header->version, esis_header->version == ESIS_VERSION ? "" : "uns… in esis_print()
1152 ND_PRINT((ndo, ", checksum: 0x%04x", EXTRACT_16BITS(esis_header->cksum))); in esis_print()
1154 osi_print_cksum(ndo, pptr, EXTRACT_16BITS(esis_header->cksum), 7, li); in esis_print()
1156 ND_PRINT((ndo, ", holding time: %us, length indicator: %u", in esis_print()
1159 if (ndo->ndo_vflag > 1) in esis_print()
1160 print_unknown_data(ndo, optr, "\n\t", sizeof(struct esis_header_t)); in esis_print()
1172 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1180 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1186 ND_PRINT((ndo, "\n\t %s", isonsap_string(ndo, dst, dstl))); in esis_print()
1190 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1198 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1206 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1213 ND_PRINT((ndo, ", bad redirect/li")); in esis_print()
1221 ND_PRINT((ndo, "\n\t SNPA (length: %u): %s", in esis_print()
1223 etheraddr_string(ndo, snpa))); in esis_print()
1225 ND_PRINT((ndo, "\n\t SNPA (length: %u): %s", in esis_print()
1227 linkaddr_string(ndo, snpa, LINKADDR_OTHER, snpal))); in esis_print()
1229 ND_PRINT((ndo, "\n\t NET (length: %u) %s", in esis_print()
1231 isonsap_string(ndo, neta, netal))); in esis_print()
1238 ND_PRINT((ndo, ", bad esh/li")); in esis_print()
1245 ND_PRINT((ndo, "\n\t Number of Source Addresses: %u", source_address_number)); in esis_print()
1250 ND_PRINT((ndo, ", bad esh/li")); in esis_print()
1259 ND_PRINT((ndo, ", bad esh/li")); in esis_print()
1262 ND_PRINT((ndo, "\n\t NET (length: %u): %s", in esis_print()
1264 isonsap_string(ndo, pptr, source_address_length))); in esis_print()
1275 ND_PRINT((ndo, ", bad ish/li")); in esis_print()
1283 ND_PRINT((ndo, ", bad ish/li")); in esis_print()
1286 …ND_PRINT((ndo, "\n\t NET (length: %u): %s", source_address_length, isonsap_string(ndo, pptr, sour… in esis_print()
1293 if (ndo->ndo_vflag <= 1) { in esis_print()
1294 if (pptr < ndo->ndo_snapend) in esis_print()
1295 print_unknown_data(ndo, pptr, "\n\t ", ndo->ndo_snapend - pptr); in esis_print()
1306 ND_PRINT((ndo, ", bad opts/li")); in esis_print()
1314 ND_PRINT((ndo, ", opt (%d) too long", op)); in esis_print()
1320 ND_PRINT((ndo, "\n\t %s Option #%u, length %u, value: ", in esis_print()
1330 ND_PRINT((ndo, "%us", EXTRACT_16BITS(tptr))); in esis_print()
1332 ND_PRINT((ndo, "(bad length)")); in esis_print()
1338 ND_PRINT((ndo, "%s (0x%02x)", in esis_print()
1344 ND_PRINT((ndo, ", ")); in esis_print()
1362 print_unknown_data(ndo, tptr, "\n\t ", opli); in esis_print()
1365 if (ndo->ndo_vflag > 1) in esis_print()
1366 print_unknown_data(ndo, pptr, "\n\t ", opli); in esis_print()
1370 ND_PRINT((ndo, "[|esis]")); in esis_print()
1374 isis_print_mcid(netdissect_options *ndo, in isis_print_mcid() argument
1380 ND_PRINT((ndo, "ID: %d, Name: ", mcid->format_id)); in isis_print_mcid()
1382 if (fn_printzp(ndo, mcid->name, 32, ndo->ndo_snapend)) in isis_print_mcid()
1385 ND_PRINT((ndo, "\n\t Lvl: %d", EXTRACT_16BITS(mcid->revision_lvl))); in isis_print_mcid()
1387 ND_PRINT((ndo, ", Digest: ")); in isis_print_mcid()
1390 ND_PRINT((ndo, "%.2x ", mcid->digest[i])); in isis_print_mcid()
1393 ND_PRINT((ndo, "%s", tstr)); in isis_print_mcid()
1397 isis_print_mt_port_cap_subtlv(netdissect_options *ndo, in isis_print_mt_port_cap_subtlv() argument
1411 ND_PRINT((ndo, "\n\t %s subTLV #%u, length: %u", in isis_print_mt_port_cap_subtlv()
1434 ND_PRINT((ndo, "\n\t MCID: ")); in isis_print_mt_port_cap_subtlv()
1435 isis_print_mcid(ndo, &(subtlv_spb_mcid->mcid)); in isis_print_mt_port_cap_subtlv()
1440 ND_PRINT((ndo, "\n\t AUX-MCID: ")); in isis_print_mt_port_cap_subtlv()
1441 isis_print_mcid(ndo, &(subtlv_spb_mcid->aux_mcid)); in isis_print_mt_port_cap_subtlv()
1457 ND_PRINT((ndo, "\n\t RES: %d V: %d A: %d D: %d", in isis_print_mt_port_cap_subtlv()
1463 ND_PRINT((ndo, "\n\t Digest: ")); in isis_print_mt_port_cap_subtlv()
1467 ND_PRINT((ndo, "%08x ", EXTRACT_32BITS(tptr))); in isis_print_mt_port_cap_subtlv()
1469 ND_PRINT((ndo, "\n\t ")); in isis_print_mt_port_cap_subtlv()
1483 ND_PRINT((ndo, "\n\t ECT: %08x", in isis_print_mt_port_cap_subtlv()
1488 ND_PRINT((ndo, " BVID: %d, U:%01x M:%01x ", in isis_print_mt_port_cap_subtlv()
1511 ND_PRINT((ndo, "\n\t\t")); in isis_print_mt_port_cap_subtlv()
1512 ND_PRINT((ndo, "%s", tstr)); in isis_print_mt_port_cap_subtlv()
1517 isis_print_mt_capability_subtlv(netdissect_options *ndo, in isis_print_mt_capability_subtlv() argument
1529 ND_PRINT((ndo, "\n\t %s subTLV #%u, length: %u", in isis_print_mt_capability_subtlv()
1548 ND_PRINT((ndo, "\n\t CIST Root-ID: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1550 ND_PRINT((ndo, " %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1552 ND_PRINT((ndo, ", Path Cost: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1554 ND_PRINT((ndo, ", Prio: %d", EXTRACT_16BITS(tptr))); in isis_print_mt_capability_subtlv()
1556 ND_PRINT((ndo, "\n\t RES: %d", in isis_print_mt_capability_subtlv()
1558 ND_PRINT((ndo, ", V: %d", in isis_print_mt_capability_subtlv()
1560 ND_PRINT((ndo, ", SPSource-ID: %d", in isis_print_mt_capability_subtlv()
1563 ND_PRINT((ndo, ", No of Trees: %x", *(tptr))); in isis_print_mt_capability_subtlv()
1575 ND_PRINT((ndo, "\n\t U:%d, M:%d, A:%d, RES:%d", in isis_print_mt_capability_subtlv()
1581 ND_PRINT((ndo, ", ECT: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1585 ND_PRINT((ndo, ", BVID: %d, SPVID: %d", in isis_print_mt_capability_subtlv()
1601 ND_PRINT((ndo, "\n\t BMAC: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1603 ND_PRINT((ndo, "%04x", EXTRACT_16BITS(tptr))); in isis_print_mt_capability_subtlv()
1606 ND_PRINT((ndo, ", RES: %d, VID: %d", EXTRACT_16BITS(tptr) >> 12, in isis_print_mt_capability_subtlv()
1615 ND_PRINT((ndo, "\n\t T: %d, R: %d, RES: %d, ISID: %d", in isis_print_mt_capability_subtlv()
1637 ND_PRINT((ndo, "\n\t\t")); in isis_print_mt_capability_subtlv()
1638 ND_PRINT((ndo, "%s", tstr)); in isis_print_mt_capability_subtlv()
1671 isis_print_metric_block(netdissect_options *ndo, in isis_print_metric_block() argument
1674 ND_PRINT((ndo, ", Default Metric: %d, %s", in isis_print_metric_block()
1678 ND_PRINT((ndo, "\n\t\t Delay Metric: %d, %s", in isis_print_metric_block()
1682 ND_PRINT((ndo, "\n\t\t Expense Metric: %d, %s", in isis_print_metric_block()
1686 ND_PRINT((ndo, "\n\t\t Error Metric: %d, %s", in isis_print_metric_block()
1694 isis_print_tlv_ip_reach(netdissect_options *ndo, in isis_print_tlv_ip_reach() argument
1704 ND_PRINT((ndo, "short IPv4 Reachability (%d vs %lu)", in isis_print_tlv_ip_reach()
1716 ND_PRINT((ndo, "%sIPv4 prefix: %s mask %s", in isis_print_tlv_ip_reach()
1718 ipaddr_string(ndo, (tlv_ip_reach->prefix)), in isis_print_tlv_ip_reach()
1719 ipaddr_string(ndo, (tlv_ip_reach->mask)))); in isis_print_tlv_ip_reach()
1721 ND_PRINT((ndo, "%sIPv4 prefix: %15s/%u", in isis_print_tlv_ip_reach()
1723 ipaddr_string(ndo, (tlv_ip_reach->prefix)), in isis_print_tlv_ip_reach()
1726 ND_PRINT((ndo, ", Distribution: %s, Metric: %u, %s", in isis_print_tlv_ip_reach()
1732 ND_PRINT((ndo, "%s Delay Metric: %u, %s", in isis_print_tlv_ip_reach()
1738 ND_PRINT((ndo, "%s Expense Metric: %u, %s", in isis_print_tlv_ip_reach()
1744 ND_PRINT((ndo, "%s Error Metric: %u, %s", in isis_print_tlv_ip_reach()
1761 isis_print_ip_reach_subtlv(netdissect_options *ndo, in isis_print_ip_reach_subtlv() argument
1766 ND_PRINT((ndo, "%s%s subTLV #%u, length: %u", in isis_print_ip_reach_subtlv()
1776 ND_PRINT((ndo, ", 0x%08x (=%u)", in isis_print_ip_reach_subtlv()
1785 ND_PRINT((ndo, ", 0x%08x%08x", in isis_print_ip_reach_subtlv()
1793 if (!print_unknown_data(ndo, tptr, "\n\t\t ", subl)) in isis_print_ip_reach_subtlv()
1800 ND_PRINT((ndo, "%s", ident)); in isis_print_ip_reach_subtlv()
1801 ND_PRINT((ndo, "%s", tstr)); in isis_print_ip_reach_subtlv()
1811 isis_print_is_reach_subtlv(netdissect_options *ndo, in isis_print_is_reach_subtlv() argument
1822 ND_PRINT((ndo, "%s%s subTLV #%u, length: %u", in isis_print_is_reach_subtlv()
1833 ND_PRINT((ndo, ", 0x%08x", EXTRACT_32BITS(tptr))); in isis_print_is_reach_subtlv()
1835 ND_PRINT((ndo, ", 0x%08x", EXTRACT_32BITS(tptr+4))); in isis_print_is_reach_subtlv()
1841 ND_PRINT((ndo, ", %s", ipaddr_string(ndo, tptr))); in isis_print_is_reach_subtlv()
1847 ND_PRINT((ndo, ", %.3f Mbps", bw.f * 8 / 1000000)); in isis_print_is_reach_subtlv()
1854 ND_PRINT((ndo, "%s TE-Class %u: %.3f Mbps", in isis_print_is_reach_subtlv()
1866 ND_PRINT((ndo, "%sBandwidth Constraints Model ID: %s (%u)", in isis_print_is_reach_subtlv()
1874 ND_PRINT((ndo, "%s Bandwidth constraint CT%u: %.3f Mbps", in isis_print_is_reach_subtlv()
1883 ND_PRINT((ndo, ", %u", EXTRACT_24BITS(tptr))); in isis_print_is_reach_subtlv()
1887 ND_PRINT((ndo, ", [ %s ] (0x%04x)", in isis_print_is_reach_subtlv()
1896 ND_PRINT((ndo, ", %s, Priority %u", in isis_print_is_reach_subtlv()
1903 ND_PRINT((ndo, ", LM: %u", EXTRACT_24BITS(tptr))); in isis_print_is_reach_subtlv()
1905 ND_PRINT((ndo, ", P: %u", *(tptr))); in isis_print_is_reach_subtlv()
1907 ND_PRINT((ndo, ", P-ID: %u", EXTRACT_16BITS(tptr))); in isis_print_is_reach_subtlv()
1913 ND_PRINT((ndo, "%s Interface Switching Capability:%s", in isis_print_is_reach_subtlv()
1916 ND_PRINT((ndo, ", LSP Encoding: %s", in isis_print_is_reach_subtlv()
1919 ND_PRINT((ndo, "%s Max LSP Bandwidth:", ident)); in isis_print_is_reach_subtlv()
1922 ND_PRINT((ndo, "%s priority level %d: %.3f Mbps", in isis_print_is_reach_subtlv()
1937 ND_PRINT((ndo, "%s Min LSP Bandwidth: %.3f Mbps", ident, bw.f * 8 / 1000000)); in isis_print_is_reach_subtlv()
1938 ND_PRINT((ndo, "%s Interface MTU: %u", ident, EXTRACT_16BITS(tptr + 4))); in isis_print_is_reach_subtlv()
1944 ND_PRINT((ndo, "%s Min LSP Bandwidth: %.3f Mbps", ident, bw.f * 8 / 1000000)); in isis_print_is_reach_subtlv()
1945 ND_PRINT((ndo, "%s Indication %s", ident, in isis_print_is_reach_subtlv()
1952 if (!print_unknown_data(ndo, tptr, "\n\t\t ", subl)) in isis_print_is_reach_subtlv()
1959 if (!print_unknown_data(ndo, tptr, "\n\t\t ", subl)) in isis_print_is_reach_subtlv()
1975 isis_print_ext_is_reach(netdissect_options *ndo, in isis_print_ext_is_reach() argument
1985 ND_PRINT((ndo, "%sIS Neighbor: %s", ident, isis_print_id(tptr, NODE_ID_LEN))); in isis_print_ext_is_reach()
1991 ND_PRINT((ndo, ", Metric: %d", EXTRACT_24BITS(tptr))); in isis_print_ext_is_reach()
1999 ND_PRINT((ndo, ", %ssub-TLVs present",subtlv_sum_len ? "" : "no ")); in isis_print_ext_is_reach()
2001 ND_PRINT((ndo, " (%u)", subtlv_sum_len)); in isis_print_ext_is_reach()
2009 if (!isis_print_is_reach_subtlv(ndo, tptr, subtlv_type, subtlv_len, ident_buffer)) in isis_print_ext_is_reach()
2025 isis_print_mtid(netdissect_options *ndo, in isis_print_mtid() argument
2031 ND_PRINT((ndo, "%s%s", in isis_print_mtid()
2037 ND_PRINT((ndo, " Topology (0x%03x), Flags: [%s]", in isis_print_mtid()
2052 isis_print_extd_ip_reach(netdissect_options *ndo, in isis_print_extd_ip_reach() argument
2071 ND_PRINT((ndo, "%sIPv4 prefix: bad bit length %u", in isis_print_extd_ip_reach()
2083 ND_PRINT((ndo, "%sIPv6 prefix: bad bit length %u", in isis_print_extd_ip_reach()
2102 ND_PRINT((ndo, "%sIPv4 prefix: %15s/%u", in isis_print_extd_ip_reach()
2104 ipaddr_string(ndo, prefix), in isis_print_extd_ip_reach()
2107 ND_PRINT((ndo, "%sIPv6 prefix: %s/%u", in isis_print_extd_ip_reach()
2109 ip6addr_string(ndo, prefix), in isis_print_extd_ip_reach()
2112 ND_PRINT((ndo, ", Distribution: %s, Metric: %u", in isis_print_extd_ip_reach()
2117 ND_PRINT((ndo, ", sub-TLVs present")); in isis_print_extd_ip_reach()
2119 ND_PRINT((ndo, ", %s%s", in isis_print_extd_ip_reach()
2134 ND_PRINT((ndo, " (%u)", sublen)); /* print out subTLV length */ in isis_print_extd_ip_reach()
2143 if (!isis_print_ip_reach_subtlv(ndo, tptr, subtlvtype, subtlvlen, ident_buffer)) in isis_print_extd_ip_reach()
2172 isis_print(netdissect_options *ndo, in isis_print() argument
2210 if (!ndo->ndo_eflag) in isis_print()
2211 ND_PRINT((ndo, "IS-IS")); in isis_print()
2218 ND_PRINT((ndo, "version %d packet not supported", isis_header->version)); in isis_print()
2223 ND_PRINT((ndo, "system ID length of %d is not supported", in isis_print()
2229 ND_PRINT((ndo, "version %d packet not supported", isis_header->pdu_version)); in isis_print()
2234 ND_PRINT((ndo, "fixed header length %u > packet length %u", isis_header->fixed_len, length)); in isis_print()
2239 …ND_PRINT((ndo, "fixed header length %u < minimum header size %u", isis_header->fixed_len, (u_int)I… in isis_print()
2249 ND_PRINT((ndo, "bad packet -- 255 areas")); in isis_print()
2278 ND_PRINT((ndo, "bad packet -- illegal sys-ID length (%u)", id_length)); in isis_print()
2285 if (ndo->ndo_vflag == 0) { in isis_print()
2286 ND_PRINT((ndo, "%s%s", in isis_print()
2287 ndo->ndo_eflag ? "" : ", ", in isis_print()
2291 ND_PRINT((ndo, "%slength %u", ndo->ndo_eflag ? "" : ", ", length)); in isis_print()
2293 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()
2305 if (ndo->ndo_vflag > 1) { in isis_print()
2306 if (!print_unknown_data(ndo, optr, "\n\t", 8)) /* provide the _o_riginal pointer */ in isis_print()
2316 ND_PRINT((ndo, ", bogus fixed header length %u should be %lu", in isis_print()
2323 if (ndo->ndo_vflag == 0) { in isis_print()
2324 ND_PRINT((ndo, ", src-id %s", in isis_print()
2326 ND_PRINT((ndo, ", lan-id %s, prio %u", in isis_print()
2329 ND_PRINT((ndo, ", length %u", length)); in isis_print()
2338 ND_PRINT((ndo, "\n\t source-id: %s, holding time: %us, Flags: [%s]", in isis_print()
2345 ND_PRINT((ndo, "\n\t lan-id: %s, Priority: %u, PDU length: %u", in isis_print()
2350 if (ndo->ndo_vflag > 1) { in isis_print()
2351 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_IIH_LAN_HEADER_SIZE)) in isis_print()
2361 ND_PRINT((ndo, ", bogus fixed header length %u should be %lu", in isis_print()
2368 if (ndo->ndo_vflag == 0) { in isis_print()
2369 ND_PRINT((ndo, ", src-id %s", isis_print_id(header_iih_ptp->source_id, SYSTEM_ID_LEN))); in isis_print()
2370 ND_PRINT((ndo, ", length %u", length)); in isis_print()
2379 ND_PRINT((ndo, "\n\t source-id: %s, holding time: %us, Flags: [%s]", in isis_print()
2386 ND_PRINT((ndo, "\n\t circuit-id: 0x%02x, PDU length: %u", in isis_print()
2390 if (ndo->ndo_vflag > 1) { in isis_print()
2391 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_IIH_PTP_HEADER_SIZE)) in isis_print()
2402 ND_PRINT((ndo, ", bogus fixed header length %u should be %lu", in isis_print()
2409 if (ndo->ndo_vflag == 0) { in isis_print()
2410 ND_PRINT((ndo, ", lsp-id %s, seq 0x%08x, lifetime %5us", in isis_print()
2414 ND_PRINT((ndo, ", length %u", length)); in isis_print()
2423 ND_PRINT((ndo, "\n\t lsp-id: %s, seq: 0x%08x, lifetime: %5us\n\t chksum: 0x%04x", in isis_print()
2429 osi_print_cksum(ndo, (const uint8_t *)header_lsp->lsp_id, in isis_print()
2433 ND_PRINT((ndo, ", PDU length: %u, Flags: [ %s", in isis_print()
2438 … ND_PRINT((ndo, "%s", ISIS_MASK_LSP_ATT_DEFAULT_BIT(header_lsp->typeblock) ? "default " : "")); in isis_print()
2439 … ND_PRINT((ndo, "%s", ISIS_MASK_LSP_ATT_DELAY_BIT(header_lsp->typeblock) ? "delay " : "")); in isis_print()
2440 … ND_PRINT((ndo, "%s", ISIS_MASK_LSP_ATT_EXPENSE_BIT(header_lsp->typeblock) ? "expense " : "")); in isis_print()
2441 … ND_PRINT((ndo, "%s", ISIS_MASK_LSP_ATT_ERROR_BIT(header_lsp->typeblock) ? "error " : "")); in isis_print()
2442 ND_PRINT((ndo, "ATT bit set, ")); in isis_print()
2444 … ND_PRINT((ndo, "%s", ISIS_MASK_LSP_PARTITION_BIT(header_lsp->typeblock) ? "P bit set, " : "")); in isis_print()
2445 ND_PRINT((ndo, "%s ]", tok2str(isis_lsp_istype_values, "Unknown(0x%x)", in isis_print()
2448 if (ndo->ndo_vflag > 1) { in isis_print()
2449 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_LSP_HEADER_SIZE)) in isis_print()
2460 ND_PRINT((ndo, ", bogus fixed header length %u should be %lu", in isis_print()
2467 if (ndo->ndo_vflag == 0) { in isis_print()
2468 ND_PRINT((ndo, ", src-id %s", isis_print_id(header_csnp->source_id, NODE_ID_LEN))); in isis_print()
2469 ND_PRINT((ndo, ", length %u", length)); in isis_print()
2478 ND_PRINT((ndo, "\n\t source-id: %s, PDU length: %u", in isis_print()
2481 ND_PRINT((ndo, "\n\t start lsp-id: %s", in isis_print()
2483 ND_PRINT((ndo, "\n\t end lsp-id: %s", in isis_print()
2486 if (ndo->ndo_vflag > 1) { in isis_print()
2487 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_CSNP_HEADER_SIZE)) in isis_print()
2498 ND_PRINT((ndo, "- bogus fixed header length %u should be %lu", in isis_print()
2505 if (ndo->ndo_vflag == 0) { in isis_print()
2506 ND_PRINT((ndo, ", src-id %s", isis_print_id(header_psnp->source_id, NODE_ID_LEN))); in isis_print()
2507 ND_PRINT((ndo, ", length %u", length)); in isis_print()
2516 ND_PRINT((ndo, "\n\t source-id: %s, PDU length: %u", in isis_print()
2520 if (ndo->ndo_vflag > 1) { in isis_print()
2521 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_PSNP_HEADER_SIZE)) in isis_print()
2530 if (ndo->ndo_vflag == 0) { in isis_print()
2531 ND_PRINT((ndo, ", length %u", length)); in isis_print()
2534 (void)print_unknown_data(ndo, pptr, "\n\t ", length); in isis_print()
2553 ND_PRINT((ndo, "\n\t %s TLV #%u, length: %u", in isis_print()
2573 ND_PRINT((ndo, "\n\t Area address (length: %u): %s", in isis_print()
2575 isonsap_string(ndo, tptr, alen))); in isis_print()
2587 ND_PRINT((ndo, "\n\t SNPA: %s", isis_print_id(tptr, ETHER_ADDR_LEN))); in isis_print()
2598 ND_PRINT((ndo, "\n\t LAN address length 0 bytes (invalid)")); in isis_print()
2602 ND_PRINT((ndo, "\n\t LAN address length %u bytes ", lan_alen)); in isis_print()
2605 ND_PRINT((ndo, "\n\t\tIS Neighbor: %s", isis_print_id(tptr, lan_alen))); in isis_print()
2615 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2621 ext_is_len = isis_print_ext_is_reach(ndo, tptr, "\n\t ", tlv_type); in isis_print()
2632 ext_is_len = isis_print_ext_is_reach(ndo, tptr, "\n\t ", tlv_type); in isis_print()
2642 ext_is_len = isis_print_ext_is_reach(ndo, tptr, "\n\t ", tlv_type); in isis_print()
2651 ND_PRINT((ndo, "\n\t %s", in isis_print()
2658 ND_PRINT((ndo, "\n\t IS Neighbor: %s", in isis_print()
2660 isis_print_metric_block(ndo, &tlv_is_reach->isis_metric_block); in isis_print()
2670 ND_PRINT((ndo, "\n\t ES Neighbor: %s", in isis_print()
2672 isis_print_metric_block(ndo, &tlv_es_reach->isis_metric_block); in isis_print()
2681 if (!isis_print_tlv_ip_reach(ndo, pptr, "\n\t ", tlv_len)) in isis_print()
2687 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET); in isis_print()
2696 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2704 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET); in isis_print()
2714 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET6); in isis_print()
2723 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2731 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET6); in isis_print()
2743 ND_PRINT((ndo, "\n\t IPv6 interface address: %s", in isis_print()
2744 ip6addr_string(ndo, tptr))); in isis_print()
2753 ND_PRINT((ndo, "\n\t %s: ", in isis_print()
2760 if (fn_printzp(ndo, tptr + 1, tlv_len - 1, ndo->ndo_snapend)) in isis_print()
2766 ND_PRINT((ndo, "%02x", *(tptr + i))); in isis_print()
2769 ND_PRINT((ndo, ", (invalid subTLV) ")); in isis_print()
2771 sigcheck = signature_verify(ndo, optr, length, tptr + 1, in isis_print()
2774 ND_PRINT((ndo, " (%s)", tok2str(signature_check_values, "Unknown", sigcheck))); in isis_print()
2780 ND_PRINT((ndo, "%u, password: ", key_id)); in isis_print()
2783 ND_PRINT((ndo, "%02x", *(tptr + i))); in isis_print()
2788 if (!print_unknown_data(ndo, tptr + 1, "\n\t\t ", tlv_len - 1)) in isis_print()
2798 ND_PRINT((ndo, "\n\t Adjacency State: %s (%u)", in isis_print()
2805 ND_PRINT((ndo, "\n\t Extended Local circuit-ID: 0x%08x", in isis_print()
2811 ND_PRINT((ndo, "\n\t Neighbor System-ID: %s", in isis_print()
2817 ND_PRINT((ndo, "\n\t Neighbor Extended Local circuit-ID: 0x%08x", in isis_print()
2823 ND_PRINT((ndo, "\n\t NLPID(s): ")); in isis_print()
2826 ND_PRINT((ndo, "%s (0x%02x)", in isis_print()
2832 ND_PRINT((ndo, ", ")); in isis_print()
2842 ND_PRINT((ndo, "\n\t RES: %d, MTID(s): %d", in isis_print()
2850 isis_print_mt_port_cap_subtlv(ndo, tptr, tmp); in isis_print()
2859 ND_PRINT((ndo, "\n\t O: %d, RES: %d, MTID(s): %d", in isis_print()
2868 isis_print_mt_capability_subtlv(ndo, tptr, tmp); in isis_print()
2874 ND_PRINT((ndo, "\n\t Traffic Engineering Router ID: %s", ipaddr_string(ndo, pptr))); in isis_print()
2880 ND_PRINT((ndo, "\n\t IPv4 interface address: %s", ipaddr_string(ndo, tptr))); in isis_print()
2887 ND_PRINT((ndo, "\n\t Hostname: ")); in isis_print()
2888 if (fn_printzp(ndo, tptr, tmp, ndo->ndo_snapend)) in isis_print()
2896 ND_PRINT((ndo, "\n\t IS Neighbor: %s", isis_print_id(tptr, NODE_ID_LEN))); in isis_print()
2903 …ND_PRINT((ndo, ", Flags: [%s]", ISIS_MASK_TLV_SHARED_RISK_GROUP(*tptr++) ? "numbered" : "unnumbere… in isis_print()
2909 ND_PRINT((ndo, "\n\t IPv4 interface address: %s", ipaddr_string(ndo, tptr))); in isis_print()
2916 ND_PRINT((ndo, "\n\t IPv4 neighbor address: %s", ipaddr_string(ndo, tptr))); in isis_print()
2922 ND_PRINT((ndo, "\n\t Link-ID: 0x%08x", EXTRACT_32BITS(tptr))); in isis_print()
2932 ND_PRINT((ndo, "\n\t lsp-id: %s", in isis_print()
2935 ND_PRINT((ndo, ", seq: 0x%08x", EXTRACT_32BITS(tlv_lsp->sequence_number))); in isis_print()
2937 ND_PRINT((ndo, ", lifetime: %5ds", EXTRACT_16BITS(tlv_lsp->remaining_lifetime))); in isis_print()
2939 ND_PRINT((ndo, ", chksum: 0x%04x", EXTRACT_16BITS(tlv_lsp->checksum))); in isis_print()
2949 ND_PRINT((ndo, "\n\t checksum: 0x%04x ", EXTRACT_16BITS(tptr))); in isis_print()
2955 osi_print_cksum(ndo, optr, EXTRACT_16BITS(tptr), tptr-optr, in isis_print()
2962 ND_PRINT((ndo, "\n\t Purge Originator System-ID: %s", in isis_print()
2968 ND_PRINT((ndo, "\n\t Received from System-ID: %s", in isis_print()
2980 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2986 ND_PRINT((ndo, "\n\t invalid MT-ID")); in isis_print()
2997 ND_PRINT((ndo, "\n\t Flags [%s]", in isis_print()
3010 ND_PRINT((ndo, ", Remaining holding time %us", EXTRACT_16BITS(tptr))); in isis_print()
3017 ND_PRINT((ndo, ", for %s", isis_print_id(tptr,SYSTEM_ID_LEN))); in isis_print()
3025 ND_PRINT((ndo, "\n\t Inter-Domain Information Type: %s", in isis_print()
3032 ND_PRINT((ndo, "AS Number: %u", EXTRACT_16BITS(tptr))); in isis_print()
3037 if (!print_unknown_data(ndo, tptr, "\n\t ", tlv_len - 1)) in isis_print()
3047 ND_PRINT((ndo, "\n\t LSP Buffersize: %u", EXTRACT_16BITS(tptr))); in isis_print()
3053 ND_PRINT((ndo, "\n\t %s", isis_print_id(tptr, SYSTEM_ID_LEN))); in isis_print()
3063 ND_PRINT((ndo, "\n\t Metric Block")); in isis_print()
3064 isis_print_metric_block(ndo, (const struct isis_metric_block *)tptr); in isis_print()
3072 ND_PRINT((ndo, "\n\t\tAddress: prefix length %u < 2", prefix_len)); in isis_print()
3079 ND_PRINT((ndo, "\n\t\tAddress: %s/%u", in isis_print()
3080 isonsap_string(ndo, tptr, prefix_len / 2), prefix_len * 4)); in isis_print()
3090 ND_PRINT((ndo, "\n\t Sequence number: %u", EXTRACT_32BITS(tptr))); in isis_print()
3098 ND_PRINT((ndo, "\n\t Vendor: %s (%u)", in isis_print()
3104 if (!print_unknown_data(ndo, tptr, "\n\t\t", tmp)) in isis_print()
3119 if (ndo->ndo_vflag <= 1) { in isis_print()
3120 if (!print_unknown_data(ndo, pptr, "\n\t\t", tlv_len)) in isis_print()
3126 if (ndo->ndo_vflag> 1) { in isis_print()
3127 if (!print_unknown_data(ndo, pptr, "\n\t ", tlv_len)) in isis_print()
3136 ND_PRINT((ndo, "\n\t %u straggler bytes", packet_len)); in isis_print()
3141 ND_PRINT((ndo, "%s", tstr)); in isis_print()
3145 ND_PRINT((ndo, "\n\t\t")); in isis_print()
3146 ND_PRINT((ndo, "%s", tstr)); in isis_print()
3151 osi_print_cksum(netdissect_options *ndo, const uint8_t *pptr, in osi_print_cksum() argument
3165 ND_PRINT((ndo, " (unverified)")); in osi_print_cksum()
3172 ND_PRINT((ndo, " (correct)")); in osi_print_cksum()
3174 ND_PRINT((ndo, " (incorrect should be 0x%04x)", calculated_checksum)); in osi_print_cksum()