Lines Matching refs:tptr

852             const uint8_t *tptr;  in clnp_print()  local
868 tptr = pptr; in clnp_print()
882 tok2str(clnp_option_sr_rr_values,"Unknown",*tptr), in clnp_print()
884 nsap_offset=*(tptr+1); in clnp_print()
894 tptr+=nsap_offset; in clnp_print()
897 source_address_length=*tptr; in clnp_print()
903 source_address=(tptr+1); in clnp_print()
914 ND_PRINT((ndo, "0x%1x", *tptr&0x0f)); in clnp_print()
919 … tok2str(clnp_option_scope_values, "Reserved", *tptr&CLNP_OPTION_SCOPE_MASK))); in clnp_print()
921 if ((*tptr&CLNP_OPTION_SCOPE_MASK) == CLNP_OPTION_SCOPE_GLOBAL) in clnp_print()
925 *tptr&CLNP_OPTION_OPTION_QOS_MASK))); in clnp_print()
930 … tok2str(clnp_option_scope_values,"Reserved",*tptr&CLNP_OPTION_SCOPE_MASK), in clnp_print()
931 *(tptr+1))); in clnp_print()
935 rfd_error_major = (*tptr&0xf0) >> 4; in clnp_print()
936 rfd_error_minor = *tptr&0x0f; in clnp_print()
954 print_unknown_data(ndo, tptr, "\n\t ", opli); in clnp_print()
1222 const uint8_t *tptr; in esis_print() local
1237 tptr = pptr; in esis_print()
1249 ND_PRINT((ndo, "%us", EXTRACT_16BITS(tptr))); in esis_print()
1260 *tptr), in esis_print()
1261 *tptr)); in esis_print()
1264 tptr++; in esis_print()
1281 print_unknown_data(ndo, tptr, "\n\t ", opli); in esis_print()
1317 const uint8_t *tptr, int len) in isis_print_mt_port_cap_subtlv() argument
1325 stlv_type = *(tptr++); in isis_print_mt_port_cap_subtlv()
1326 stlv_len = *(tptr++); in isis_print_mt_port_cap_subtlv()
1341 if (!ND_TTEST2(*(tptr), ISIS_SUBTLV_SPB_MCID_MIN_LEN)) in isis_print_mt_port_cap_subtlv()
1344 subtlv_spb_mcid = (struct isis_subtlv_spb_mcid *)tptr; in isis_print_mt_port_cap_subtlv()
1357 tptr = tptr + sizeof(struct isis_subtlv_spb_mcid); in isis_print_mt_port_cap_subtlv()
1365 if (!ND_TTEST2(*(tptr), ISIS_SUBTLV_SPB_DIGEST_MIN_LEN)) in isis_print_mt_port_cap_subtlv()
1369 (*(tptr) >> 5), (((*tptr)>> 4) & 0x01), in isis_print_mt_port_cap_subtlv()
1370 ((*(tptr) >> 2) & 0x03), ((*tptr) & 0x03))); in isis_print_mt_port_cap_subtlv()
1372 tptr++; in isis_print_mt_port_cap_subtlv()
1378 ND_PRINT((ndo, "%08x ", EXTRACT_32BITS(tptr))); in isis_print_mt_port_cap_subtlv()
1381 tptr = tptr + 4; in isis_print_mt_port_cap_subtlv()
1391 if (!ND_TTEST2(*(tptr), stlv_len)) in isis_print_mt_port_cap_subtlv()
1396 if (!ND_TTEST2(*(tptr), ISIS_SUBTLV_SPB_BVID_MIN_LEN)) in isis_print_mt_port_cap_subtlv()
1400 EXTRACT_32BITS(tptr))); in isis_print_mt_port_cap_subtlv()
1402 tptr = tptr+4; in isis_print_mt_port_cap_subtlv()
1405 (EXTRACT_16BITS (tptr) >> 4) , in isis_print_mt_port_cap_subtlv()
1406 (EXTRACT_16BITS (tptr) >> 3) & 0x01, in isis_print_mt_port_cap_subtlv()
1407 (EXTRACT_16BITS (tptr) >> 2) & 0x01)); in isis_print_mt_port_cap_subtlv()
1409 tptr = tptr + 2; in isis_print_mt_port_cap_subtlv()
1430 const uint8_t *tptr, int len) in isis_print_mt_capability_subtlv() argument
1436 stlv_type = *(tptr++); in isis_print_mt_capability_subtlv()
1437 stlv_len = *(tptr++); in isis_print_mt_capability_subtlv()
1451 if (!ND_TTEST2(*(tptr), ISIS_SUBTLV_SPB_INSTANCE_MIN_LEN)) 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()
1455 tptr = tptr+4; in isis_print_mt_capability_subtlv()
1456 ND_PRINT((ndo, " %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1457 tptr = tptr+4; in isis_print_mt_capability_subtlv()
1458 ND_PRINT((ndo, ", Path Cost: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1459 tptr = tptr+4; in isis_print_mt_capability_subtlv()
1460 ND_PRINT((ndo, ", Prio: %d", EXTRACT_16BITS(tptr))); in isis_print_mt_capability_subtlv()
1461 tptr = tptr + 2; in isis_print_mt_capability_subtlv()
1463 EXTRACT_16BITS(tptr) >> 5)); in isis_print_mt_capability_subtlv()
1465 (EXTRACT_16BITS(tptr) >> 4) & 0x0001)); in isis_print_mt_capability_subtlv()
1467 (EXTRACT_32BITS(tptr) & 0x000fffff))); in isis_print_mt_capability_subtlv()
1468 tptr = tptr+4; in isis_print_mt_capability_subtlv()
1469 ND_PRINT((ndo, ", No of Trees: %x", *(tptr))); in isis_print_mt_capability_subtlv()
1471 tmp = *(tptr++); in isis_print_mt_capability_subtlv()
1477 if (!ND_TTEST2(*(tptr), ISIS_SUBTLV_SPB_INSTANCE_VLAN_TUPLE_LEN)) in isis_print_mt_capability_subtlv()
1481 *(tptr) >> 7, (*(tptr) >> 6) & 0x01, in isis_print_mt_capability_subtlv()
1482 (*(tptr) >> 5) & 0x01, (*(tptr) & 0x1f))); in isis_print_mt_capability_subtlv()
1484 tptr++; in isis_print_mt_capability_subtlv()
1486 ND_PRINT((ndo, ", ECT: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1488 tptr = tptr + 4; in isis_print_mt_capability_subtlv()
1491 (EXTRACT_24BITS(tptr) >> 12) & 0x000fff, in isis_print_mt_capability_subtlv()
1492 EXTRACT_24BITS(tptr) & 0x000fff)); in isis_print_mt_capability_subtlv()
1494 tptr = tptr + 3; in isis_print_mt_capability_subtlv()
1503 if (!ND_TTEST2(*(tptr), 6)) in isis_print_mt_capability_subtlv()
1506 ND_PRINT((ndo, "\n\t BMAC: %08x", EXTRACT_32BITS(tptr))); in isis_print_mt_capability_subtlv()
1507 tptr = tptr+4; in isis_print_mt_capability_subtlv()
1508 ND_PRINT((ndo, "%04x", EXTRACT_16BITS(tptr))); in isis_print_mt_capability_subtlv()
1509 tptr = tptr+2; in isis_print_mt_capability_subtlv()
1511 ND_PRINT((ndo, ", RES: %d, VID: %d", EXTRACT_16BITS(tptr) >> 12, in isis_print_mt_capability_subtlv()
1512 (EXTRACT_16BITS(tptr)) & 0x0fff)); in isis_print_mt_capability_subtlv()
1514 tptr = tptr+2; in isis_print_mt_capability_subtlv()
1521 (EXTRACT_32BITS(tptr) >> 31), in isis_print_mt_capability_subtlv()
1522 (EXTRACT_32BITS(tptr) >> 30) & 0x01, in isis_print_mt_capability_subtlv()
1523 (EXTRACT_32BITS(tptr) >> 24) & 0x03f, in isis_print_mt_capability_subtlv()
1524 (EXTRACT_32BITS(tptr)) & 0x0ffffff)); in isis_print_mt_capability_subtlv()
1526 tptr = tptr + 4; in isis_print_mt_capability_subtlv()
1660 const uint8_t *tptr, int subt, int subl, in isis_print_ip_reach_subtlv() argument
1668 if (!ND_TTEST2(*tptr,subl)) in isis_print_ip_reach_subtlv()
1676 EXTRACT_32BITS(tptr), in isis_print_ip_reach_subtlv()
1677 EXTRACT_32BITS(tptr))); in isis_print_ip_reach_subtlv()
1678 tptr+=4; in isis_print_ip_reach_subtlv()
1685 EXTRACT_32BITS(tptr), in isis_print_ip_reach_subtlv()
1686 EXTRACT_32BITS(tptr+4))); in isis_print_ip_reach_subtlv()
1687 tptr+=8; in isis_print_ip_reach_subtlv()
1692 if (!print_unknown_data(ndo, tptr, "\n\t\t ", subl)) in isis_print_ip_reach_subtlv()
1710 const uint8_t *tptr, u_int subt, u_int subl, in isis_print_is_reach_subtlv() argument
1724 if (!ND_TTEST2(*tptr,subl)) 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()
1745 bw.i = EXTRACT_32BITS(tptr); in isis_print_is_reach_subtlv()
1752 bw.i = EXTRACT_32BITS(tptr); in isis_print_is_reach_subtlv()
1757 tptr+=4; in isis_print_is_reach_subtlv()
1765 tok2str(diffserv_te_bc_values, "unknown", *tptr), in isis_print_is_reach_subtlv()
1766 *tptr)); in isis_print_is_reach_subtlv()
1767 tptr++; in isis_print_is_reach_subtlv()
1770 bw.i = EXTRACT_32BITS(tptr); in isis_print_is_reach_subtlv()
1775 tptr+=4; in isis_print_is_reach_subtlv()
1780 ND_PRINT((ndo, ", %u", EXTRACT_24BITS(tptr))); in isis_print_is_reach_subtlv()
1787 EXTRACT_16BITS(tptr)), in isis_print_is_reach_subtlv()
1788 EXTRACT_16BITS(tptr))); in isis_print_is_reach_subtlv()
1794 bittok2str(gmpls_link_prot_values, "none", *tptr), in isis_print_is_reach_subtlv()
1795 *(tptr+1))); in isis_print_is_reach_subtlv()
1800 ND_PRINT((ndo, ", LM: %u", EXTRACT_24BITS(tptr))); in isis_print_is_reach_subtlv()
1801 tptr=tptr+3; in isis_print_is_reach_subtlv()
1802 ND_PRINT((ndo, ", P: %u", *(tptr))); in isis_print_is_reach_subtlv()
1803 tptr++; in isis_print_is_reach_subtlv()
1804 ND_PRINT((ndo, ", P-ID: %u", EXTRACT_16BITS(tptr))); in isis_print_is_reach_subtlv()
1809 gmpls_switch_cap = *tptr; in isis_print_is_reach_subtlv()
1814 tok2str(gmpls_encoding_values, "Unknown", *(tptr + 1)))); in isis_print_is_reach_subtlv()
1815 tptr+=4; in isis_print_is_reach_subtlv()
1818 bw.i = EXTRACT_32BITS(tptr); in isis_print_is_reach_subtlv()
1823 tptr+=4; in isis_print_is_reach_subtlv()
1831 bw.i = EXTRACT_32BITS(tptr); 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()
1836 bw.i = EXTRACT_32BITS(tptr); in isis_print_is_reach_subtlv()
1839 … tok2str(gmpls_switch_cap_tsc_indication_values, "Unknown (%u)", *(tptr + 4)))); 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()
1871 const uint8_t *tptr, const char *ident, int tlv_type) in isis_print_ext_is_reach() argument
1877 if (!ND_TTEST2(*tptr, NODE_ID_LEN)) in isis_print_ext_is_reach()
1880 ND_PRINT((ndo, "%sIS Neighbor: %s", ident, isis_print_id(tptr, NODE_ID_LEN))); in isis_print_ext_is_reach()
1881 tptr+=(NODE_ID_LEN); in isis_print_ext_is_reach()
1884 if (!ND_TTEST2(*tptr, 3)) /* and is therefore skipped */ in isis_print_ext_is_reach()
1886 ND_PRINT((ndo, ", Metric: %d", EXTRACT_24BITS(tptr))); in isis_print_ext_is_reach()
1887 tptr+=3; in isis_print_ext_is_reach()
1890 if (!ND_TTEST2(*tptr, 1)) in isis_print_ext_is_reach()
1892 subtlv_sum_len=*(tptr++); /* read out subTLV length */ in isis_print_ext_is_reach()
1898 if (!ND_TTEST2(*tptr,2)) in isis_print_ext_is_reach()
1900 subtlv_type=*(tptr++); in isis_print_ext_is_reach()
1901 subtlv_len=*(tptr++); 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()
1906 tptr+=subtlv_len; in isis_print_ext_is_reach()
1921 const uint8_t *tptr, const char *ident) in isis_print_mtid() argument
1923 if (!ND_TTEST2(*tptr, 2)) in isis_print_mtid()
1930 ISIS_MASK_MTID(EXTRACT_16BITS(tptr))))); in isis_print_mtid()
1933 ISIS_MASK_MTID(EXTRACT_16BITS(tptr)), in isis_print_mtid()
1934 bittok2str(isis_mt_flag_values, "none",ISIS_MASK_MTFLAGS(EXTRACT_16BITS(tptr))))); in isis_print_mtid()
1948 const uint8_t *tptr, const char *ident, uint16_t afi) in isis_print_extd_ip_reach() argument
1958 if (!ND_TTEST2(*tptr, 4)) in isis_print_extd_ip_reach()
1960 metric = EXTRACT_32BITS(tptr); in isis_print_extd_ip_reach()
1962 tptr+=4; in isis_print_extd_ip_reach()
1965 if (!ND_TTEST2(*tptr, 1)) /* fetch status byte */ in isis_print_extd_ip_reach()
1967 status_byte=*(tptr++); in isis_print_extd_ip_reach()
1978 if (!ND_TTEST2(*tptr, 1)) /* fetch status & prefix_len byte */ in isis_print_extd_ip_reach()
1980 status_byte=*(tptr++); in isis_print_extd_ip_reach()
1981 bit_length=*(tptr++); in isis_print_extd_ip_reach()
1995 if (!ND_TTEST2(*tptr, byte_length)) in isis_print_extd_ip_reach()
1998 memcpy(prefix,tptr,byte_length); /* copy as much as is stored in the TLV */ in isis_print_extd_ip_reach()
1999 tptr+=byte_length; in isis_print_extd_ip_reach()
2037 if (!ND_TTEST2(*tptr, 1)) in isis_print_extd_ip_reach()
2039 sublen=*(tptr++); in isis_print_extd_ip_reach()
2044 if (!ND_TTEST2(*tptr,2)) in isis_print_extd_ip_reach()
2046 subtlvtype=*(tptr++); in isis_print_extd_ip_reach()
2047 subtlvlen=*(tptr++); 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()
2052 tptr+=subtlvlen; in isis_print_extd_ip_reach()
2083 const uint8_t *optr, *pptr, *tptr; in isis_print() local
2438 tptr = pptr; in isis_print()
2458 if (!ND_TTEST2(*tptr, 1)) in isis_print()
2460 alen = *tptr++; in isis_print()
2464 isonsap_string(tptr, alen))); in isis_print()
2465 tptr += alen; in isis_print()
2469 if (!ND_TTEST2(*tptr, 1)) in isis_print()
2471 alen = *tptr++; in isis_print()
2476 if (!ND_TTEST2(*tptr, ETHER_ADDR_LEN)) in isis_print()
2478 ND_PRINT((ndo, "\n\t SNPA: %s", isis_print_id(tptr, ETHER_ADDR_LEN))); in isis_print()
2480 tptr += ETHER_ADDR_LEN; in isis_print()
2485 if (!ND_TTEST2(*tptr, 1) || tmp < 3) /* min. TLV length */ in isis_print()
2487 lan_alen = *tptr++; /* LAN address length */ in isis_print()
2495 if (!ND_TTEST2(*tptr, lan_alen)) in isis_print()
2497 ND_PRINT((ndo, "\n\t\tIS Neighbor: %s", isis_print_id(tptr, lan_alen))); in isis_print()
2499 tptr +=lan_alen; in isis_print()
2507 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2510 tptr+=mt_len; in isis_print()
2513 ext_is_len = isis_print_ext_is_reach(ndo, tptr, "\n\t ", tlv_type); in isis_print()
2518 tptr+=ext_is_len; in isis_print()
2524 ext_is_len = isis_print_ext_is_reach(ndo, tptr, "\n\t ", tlv_type); in isis_print()
2528 tptr+=ext_is_len; in isis_print()
2534 ext_is_len = isis_print_ext_is_reach(ndo, tptr, "\n\t ", tlv_type); in isis_print()
2538 tptr+=ext_is_len; in isis_print()
2542 if (!ND_TTEST2(*tptr,1)) /* check if there is one byte left to read out the virtual flag */ in isis_print()
2547 *tptr++))); in isis_print()
2548 tlv_is_reach = (const struct isis_tlv_is_reach *)tptr; in isis_print()
2561 tlv_es_reach = (const struct isis_tlv_es_reach *)tptr; in isis_print()
2582 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET); in isis_print()
2585 tptr+=ext_ip_len; in isis_print()
2591 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2595 tptr+=mt_len; in isis_print()
2599 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET); in isis_print()
2602 tptr+=ext_ip_len; in isis_print()
2610 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET6); in isis_print()
2613 tptr+=ext_ip_len; in isis_print()
2619 mt_len = isis_print_mtid(ndo, tptr, "\n\t "); in isis_print()
2623 tptr+=mt_len; in isis_print()
2627 ext_ip_len = isis_print_extd_ip_reach(ndo, tptr, "\n\t ", AF_INET6); in isis_print()
2630 tptr+=ext_ip_len; in isis_print()
2637 if (!ND_TTEST2(*tptr, sizeof(struct in6_addr))) in isis_print()
2641 ip6addr_string(ndo, tptr))); in isis_print()
2643 tptr += sizeof(struct in6_addr); in isis_print()
2649 if (!ND_TTEST2(*tptr, 1)) in isis_print()
2655 *tptr))); in isis_print()
2657 switch (*tptr) { in isis_print()
2660 if (!ND_TTEST2(*(tptr + i), 1)) in isis_print()
2662 ND_PRINT((ndo, "%c", *(tptr + i))); in isis_print()
2667 if (!ND_TTEST2(*(tptr + i), 1)) in isis_print()
2669 ND_PRINT((ndo, "%02x", *(tptr + i))); in isis_print()
2676 (unsigned char *)tptr + 1); in isis_print()
2684 key_id = EXTRACT_16BITS((tptr+1)); in isis_print()
2687 if (!ND_TTEST2(*(tptr + i), 1)) 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()
2701 tlv_ptp_adj = (const struct isis_tlv_ptp_adj *)tptr; in isis_print()
2703 if (!ND_TTEST2(*tptr, 1)) in isis_print()
2706 tok2str(isis_ptp_adjancey_values, "unknown", *tptr), in isis_print()
2707 *tptr)); in isis_print()
2737 if (!ND_TTEST2(*(tptr), 1)) in isis_print()
2742 *tptr), in isis_print()
2743 *tptr)); in isis_print()
2746 tptr++; in isis_print()
2753 if (!ND_TTEST2(*(tptr), 2)) in isis_print()
2757 (EXTRACT_16BITS (tptr) >> 12), in isis_print()
2758 (EXTRACT_16BITS (tptr) & 0x0fff))); in isis_print()
2761 tptr = tptr+2; in isis_print()
2764 isis_print_mt_port_cap_subtlv(ndo, tptr, tmp); in isis_print()
2771 if (!ND_TTEST2(*(tptr), 2)) in isis_print()
2775 (EXTRACT_16BITS(tptr) >> 15) & 0x01, in isis_print()
2776 (EXTRACT_16BITS(tptr) >> 12) & 0x07, in isis_print()
2777 EXTRACT_16BITS(tptr) & 0x0fff)); in isis_print()
2780 tptr = tptr+2; in isis_print()
2783 isis_print_mt_capability_subtlv(ndo, tptr, tmp); in isis_print()
2795 if (!ND_TTEST2(*tptr, sizeof(struct in_addr))) in isis_print()
2797 ND_PRINT((ndo, "\n\t IPv4 interface address: %s", ipaddr_string(ndo, tptr))); in isis_print()
2798 tptr += sizeof(struct in_addr); in isis_print()
2806 if (!ND_TTEST2(*tptr, 1)) in isis_print()
2808 ND_PRINT((ndo, "%c", *tptr++)); in isis_print()
2816 if (!ND_TTEST2(*tptr, NODE_ID_LEN)) in isis_print()
2818 ND_PRINT((ndo, "\n\t IS Neighbor: %s", isis_print_id(tptr, NODE_ID_LEN))); in isis_print()
2819 tptr+=(NODE_ID_LEN); in isis_print()
2824 if (!ND_TTEST2(*tptr, 1)) in isis_print()
2826 …ND_PRINT((ndo, ", Flags: [%s]", ISIS_MASK_TLV_SHARED_RISK_GROUP(*tptr++) ? "numbered" : "unnumbere… in isis_print()
2831 if (!ND_TTEST2(*tptr, sizeof(struct in_addr))) in isis_print()
2833 ND_PRINT((ndo, "\n\t IPv4 interface address: %s", ipaddr_string(ndo, tptr))); in isis_print()
2834 tptr+=sizeof(struct in_addr); in isis_print()
2839 if (!ND_TTEST2(*tptr, sizeof(struct in_addr))) in isis_print()
2841 ND_PRINT((ndo, "\n\t IPv4 neighbor address: %s", ipaddr_string(ndo, tptr))); in isis_print()
2842 tptr+=sizeof(struct in_addr); in isis_print()
2846 if (!ND_TTEST2(*tptr, 4)) in isis_print()
2848 ND_PRINT((ndo, "\n\t Link-ID: 0x%08x", EXTRACT_32BITS(tptr))); in isis_print()
2849 tptr+=4; in isis_print()
2855 tlv_lsp = (const struct isis_tlv_lsp *)tptr; in isis_print()
2878 if (!ND_TTEST2(*tptr, ISIS_TLV_CHECKSUM_MINLEN)) 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()
2899 tptr+=mt_len; in isis_print()
2912 if (!ND_TTEST2(*tptr, ISIS_TLV_RESTART_SIGNALING_FLAGLEN)) in isis_print()
2915 bittok2str(isis_restart_flag_values, "none", *tptr))); in isis_print()
2916 tptr+=ISIS_TLV_RESTART_SIGNALING_FLAGLEN; in isis_print()
2925 if (!ND_TTEST2(*tptr, ISIS_TLV_RESTART_SIGNALING_HOLDTIMELEN)) in isis_print()
2928 ND_PRINT((ndo, ", Remaining holding time %us", EXTRACT_16BITS(tptr))); in isis_print()
2929 tptr+=ISIS_TLV_RESTART_SIGNALING_HOLDTIMELEN; in isis_print()
2934 if (!ND_TTEST2(*tptr, SYSTEM_ID_LEN)) in isis_print()
2936 ND_PRINT((ndo, ", for %s", isis_print_id(tptr,SYSTEM_ID_LEN))); in isis_print()
2943 if (!ND_TTEST2(*tptr, ISIS_TLV_IDRP_INFO_MINLEN)) in isis_print()
2948 *tptr))); in isis_print()
2949 switch (*tptr++) { in isis_print()
2951 if (!ND_TTEST2(*tptr, 2)) /* fetch AS number */ 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()
2967 if (!ND_TTEST2(*tptr, ISIS_TLV_LSP_BUFFERSIZE_MINLEN)) in isis_print()
2969 ND_PRINT((ndo, "\n\t LSP Buffersize: %u", EXTRACT_16BITS(tptr))); in isis_print()
2974 if (!ND_TTEST2(*tptr, SYSTEM_ID_LEN)) in isis_print()
2976 ND_PRINT((ndo, "\n\t %s", isis_print_id(tptr, SYSTEM_ID_LEN))); in isis_print()
2977 tptr+=SYSTEM_ID_LEN; in isis_print()
2985 if (!ND_TTEST2(*tptr, sizeof(struct isis_metric_block))) in isis_print()
2988 isis_print_metric_block(ndo, (const struct isis_metric_block *)tptr); in isis_print()
2989 tptr+=sizeof(struct isis_metric_block); in isis_print()
2993 if (!ND_TTEST2(*tptr, 1)) in isis_print()
2995 prefix_len=*tptr++; /* read out prefix length in semioctets*/ in isis_print()
3003 if (!ND_TTEST2(*tptr, prefix_len / 2)) in isis_print()
3006 isonsap_string(tptr, prefix_len / 2), prefix_len * 4)); in isis_print()
3007 tptr+=prefix_len/2; in isis_print()
3015 … if (!ND_TTEST2(*tptr, ISIS_TLV_IIH_SEQNR_MINLEN)) /* check if four bytes are on the wire */ in isis_print()
3017 ND_PRINT((ndo, "\n\t Sequence number: %u", EXTRACT_32BITS(tptr))); in isis_print()
3023 … if (!ND_TTEST2(*tptr, ISIS_TLV_VENDOR_PRIVATE_MINLEN)) /* check if enough byte for a full oui */ in isis_print()
3025 vendor_id = EXTRACT_24BITS(tptr); in isis_print()
3029 tptr+=3; in isis_print()
3032 if (!print_unknown_data(ndo, tptr, "\n\t\t", tmp)) in isis_print()