Lines Matching refs:tptr

1315     const u_char *tptr = pptr;
1330 while (tptr < pptr + len) {
1331 ND_TCHECK(tptr[0]);
1336 if (tptr[0] < BGP_AS_SEG_TYPE_MIN || tptr[0] > BGP_AS_SEG_TYPE_MAX) {
1339 ND_TCHECK(tptr[1]);
1340 tptr += 2 + tptr[1] * 2;
1347 if (tptr == pptr + len) {
1375 const u_char *tptr;
1379 tptr = pptr;
1387 ND_TCHECK(*tptr);
1390 tptr[0])));
1418 while (tptr < pptr + len) {
1419 ND_TCHECK(tptr[0]);
1421 "?", tptr[0])));
1422 ND_TCHECK(tptr[1]);
1423 for (i = 0; i < tptr[1] * as_size; i += as_size) {
1424 ND_TCHECK2(tptr[2 + i], as_size);
1428 EXTRACT_16BITS(&tptr[2 + i]) :
1429 EXTRACT_32BITS(&tptr[2 + i]))));
1431 ND_TCHECK(tptr[0]);
1433 "?", tptr[0])));
1434 ND_TCHECK(tptr[1]);
1435 tptr += 2 + tptr[1] * as_size;
1442 ND_TCHECK2(tptr[0], 4);
1443 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr)));
1451 ND_TCHECK2(tptr[0], 4);
1452 ND_PRINT((ndo, "%u", EXTRACT_32BITS(tptr)));
1469 ND_TCHECK2(tptr[0], len);
1472 as_printf(ndo, astostr, sizeof(astostr), EXTRACT_16BITS(tptr)),
1473 ipaddr_string(ndo, tptr + 2)));
1477 EXTRACT_32BITS(tptr)), ipaddr_string(ndo, tptr + 4)));
1485 ND_TCHECK2(tptr[0], 8);
1487 as_printf(ndo, astostr, sizeof(astostr), EXTRACT_32BITS(tptr)),
1488 ipaddr_string(ndo, tptr + 4)));
1497 ND_TCHECK2(tptr[0], 4);
1498 comm = EXTRACT_32BITS(tptr);
1517 tptr +=4;
1525 ND_TCHECK2(tptr[0], 4);
1526 ND_PRINT((ndo, "%s",ipaddr_string(ndo, tptr)));
1534 ND_TCHECK2(tptr[0], 4);
1536 ipaddr_string(ndo, tptr),
1539 tptr +=4;
1543 ND_TCHECK2(tptr[0], 3);
1544 af = EXTRACT_16BITS(tptr);
1545 safi = tptr[2];
1584 ND_TCHECK2(tptr[0], tlen);
1587 print_unknown_data(ndo, tptr, "\n\t ", tlen);
1592 tptr +=3;
1594 ND_TCHECK(tptr[0]);
1595 nhlen = tptr[0];
1597 tptr++;
1618 ND_TCHECK2(tptr[0], sizeof(struct in_addr));
1619 ND_PRINT((ndo, "%s",ipaddr_string(ndo, tptr)));
1621 tptr += sizeof(struct in_addr);
1631 ND_TCHECK2(tptr[0], sizeof(struct in_addr)+BGP_VPN_RD_LEN);
1633 bgp_vpn_rd_print(ndo, tptr),
1634 ipaddr_string(ndo, tptr+BGP_VPN_RD_LEN)));
1636 tptr += (sizeof(struct in_addr)+BGP_VPN_RD_LEN);
1647 ND_TCHECK2(tptr[0], sizeof(struct in6_addr));
1648 ND_PRINT((ndo, "%s", ip6addr_string(ndo, tptr)));
1650 tptr += sizeof(struct in6_addr);
1660 ND_TCHECK2(tptr[0], sizeof(struct in6_addr)+BGP_VPN_RD_LEN);
1662 bgp_vpn_rd_print(ndo, tptr),
1663 ip6addr_string(ndo, tptr+BGP_VPN_RD_LEN)));
1665 tptr += (sizeof(struct in6_addr)+BGP_VPN_RD_LEN);
1676 ND_TCHECK2(tptr[0], sizeof(struct in_addr));
1677 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr)));
1679 tptr += (sizeof(struct in_addr));
1685 ND_TCHECK2(tptr[0], tlen);
1686 ND_PRINT((ndo, "%s", isonsap_string(ndo, tptr, tlen)));
1687 tptr += tlen;
1698 ND_TCHECK2(tptr[0], tlen);
1700 bgp_vpn_rd_print(ndo, tptr),
1701 isonsap_string(ndo, tptr+BGP_VPN_RD_LEN,tlen-BGP_VPN_RD_LEN)));
1704 && EXTRACT_32BITS(tptr+BGP_VPN_RD_LEN) == 0x47000601)
1705 ND_PRINT((ndo, " = %s", ipaddr_string(ndo, tptr+BGP_VPN_RD_LEN+4)));
1708 && EXTRACT_24BITS(tptr+BGP_VPN_RD_LEN) == 0x350000)
1709 ND_PRINT((ndo, " = %s", ip6addr_string(ndo, tptr+BGP_VPN_RD_LEN+3)));
1710 tptr += tlen;
1715 ND_TCHECK2(tptr[0], tlen);
1718 print_unknown_data(ndo, tptr, "\n\t ", tlen);
1719 tptr += tlen;
1727 tptr += tlen;
1729 ND_TCHECK(tptr[0]);
1730 snpa = tptr[0];
1731 tptr++;
1736 ND_TCHECK(tptr[0]);
1737 ND_PRINT((ndo, "\n\t %d bytes", tptr[0]));
1738 tptr += tptr[0] + 1;
1744 while (tptr < pptr + len) {
1749 advance = decode_prefix4(ndo, tptr, len, buf, sizeof(buf));
1760 advance = decode_labeled_prefix4(ndo, tptr, len, buf, sizeof(buf));
1773 advance = decode_labeled_vpn_prefix4(ndo, tptr, buf, sizeof(buf));
1782 advance = decode_rt_routing_info(ndo, tptr, buf, sizeof(buf));
1792 advance = decode_multicast_vpn(ndo, tptr, buf, sizeof(buf));
1802 advance = decode_mdt_vpn_nlri(ndo, tptr, buf, sizeof(buf));
1813 advance = decode_prefix6(ndo, tptr, len, buf, sizeof(buf));
1824 advance = decode_labeled_prefix6(ndo, tptr, len, buf, sizeof(buf));
1837 advance = decode_labeled_vpn_prefix6(ndo, tptr, buf, sizeof(buf));
1849 advance = decode_labeled_vpn_l2(ndo, tptr, buf, sizeof(buf));
1860 advance = decode_clnp_prefix(ndo, tptr, buf, sizeof(buf));
1871 advance = decode_labeled_vpn_clnp_prefix(ndo, tptr, buf, sizeof(buf));
1880 ND_TCHECK2(*tptr,tlen);
1883 print_unknown_data(ndo, tptr, "\n\t ", tlen);
1885 tptr = pptr + len;
1890 tptr += advance;
1896 ND_TCHECK2(tptr[0], BGP_MP_NLRI_MINSIZE);
1897 af = EXTRACT_16BITS(tptr);
1898 safi = tptr[2];
1910 tptr += 3;
1912 while (tptr < pptr + len) {
1917 advance = decode_prefix4(ndo, tptr, len, buf, sizeof(buf));
1928 advance = decode_labeled_prefix4(ndo, tptr, len, buf, sizeof(buf));
1941 advance = decode_labeled_vpn_prefix4(ndo, tptr, buf, sizeof(buf));
1952 advance = decode_prefix6(ndo, tptr, len, buf, sizeof(buf));
1963 advance = decode_labeled_prefix6(ndo, tptr, len, buf, sizeof(buf));
1976 advance = decode_labeled_vpn_prefix6(ndo, tptr, buf, sizeof(buf));
1988 advance = decode_labeled_vpn_l2(ndo, tptr, buf, sizeof(buf));
1999 advance = decode_clnp_prefix(ndo, tptr, buf, sizeof(buf));
2010 advance = decode_labeled_vpn_clnp_prefix(ndo, tptr, buf, sizeof(buf));
2019 advance = decode_mdt_vpn_nlri(ndo, tptr, buf, sizeof(buf));
2029 advance = decode_multicast_vpn(ndo, tptr, buf, sizeof(buf));
2038 ND_TCHECK2(*(tptr-3),tlen);
2041 print_unknown_data(ndo, tptr-3, "\n\t ", tlen);
2043 tptr = pptr + len;
2048 tptr += advance;
2059 ND_TCHECK2(tptr[0], 2);
2060 extd_comm=EXTRACT_16BITS(tptr);
2069 ND_TCHECK2(*(tptr+2), 6);
2075 EXTRACT_16BITS(tptr+2),
2076 EXTRACT_32BITS(tptr+4),
2077 ipaddr_string(ndo, tptr+4)));
2084 ipaddr_string(ndo, tptr+2),
2085 EXTRACT_16BITS(tptr+6)));
2091 EXTRACT_32BITS(tptr+2)), EXTRACT_16BITS(tptr+6)));
2094 bw.i = EXTRACT_32BITS(tptr+2);
2104 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr+2)));
2109 ipaddr_string(ndo, tptr+2),
2112 *(tptr+6)),
2113 (*(tptr+7) & BGP_OSPF_RTYPE_METRIC_TYPE) ? "E2" : "",
2114 ((*(tptr+6) == BGP_OSPF_RTYPE_EXT) || (*(tptr+6) == BGP_OSPF_RTYPE_NSSA)) ? "E1" : ""));
2120 *(tptr+2)),
2121 *(tptr+3),
2122 EXTRACT_16BITS(tptr+4)));
2125 ND_PRINT((ndo, ": AS %u", EXTRACT_16BITS(tptr+2)));
2128 ND_TCHECK2(*tptr,8);
2129 print_unknown_data(ndo, tptr, "\n\t ", 8);
2133 tptr +=8;
2141 ND_TCHECK2(tptr[0], 5);
2142 tunnel_type = *(tptr+1);
2143 flags = *tptr;
2150 EXTRACT_24BITS(tptr+2)>>4));
2152 tptr +=5;
2158 ND_TCHECK2(tptr[0], 8);
2160 ipaddr_string(ndo, tptr),
2161 ipaddr_string(ndo, tptr+4)));
2165 ND_TCHECK2(tptr[0], 8);
2167 ipaddr_string(ndo, tptr),
2168 ipaddr_string(ndo, tptr+4)));
2171 ND_TCHECK2(tptr[0], 4);
2173 ipaddr_string(ndo, tptr)));
2177 ND_TCHECK2(tptr[0], 8);
2179 ipaddr_string(ndo, tptr),
2180 EXTRACT_32BITS(tptr+4)));
2183 ND_TCHECK2(tptr[0], 8);
2185 ipaddr_string(ndo, tptr),
2186 EXTRACT_32BITS(tptr+4)));
2190 print_unknown_data(ndo, tptr, "\n\t ", tlen);
2204 ND_TCHECK2(tptr[0], 3);
2206 type = *tptr;
2207 length = EXTRACT_16BITS(tptr+1);
2208 tptr += 3;
2222 ND_TCHECK2(tptr[3], length);
2230 EXTRACT_64BITS(tptr)));
2235 print_unknown_data(ndo, tptr,"\n\t ", length);
2239 tptr += length;
2245 ND_TCHECK2(tptr[0], 4);
2249 as_printf(ndo, astostr, sizeof(astostr), EXTRACT_32BITS(tptr))));
2250 tptr+=4;
2256 ND_TCHECK2(tptr[0], 2);
2259 aflags = *tptr;
2260 atype = *(tptr + 1);
2261 tptr += 2;
2263 alenlen = bgp_attr_lenlen(aflags, tptr);
2264 ND_TCHECK2(tptr[0], alenlen);
2267 alen = bgp_attr_len(aflags, tptr);
2268 tptr += alenlen;
2296 else if (!bgp_attr_print(ndo, atype, tptr, alen, attr_set_level + 1))
2298 tptr += alen;
2310 ND_TCHECK2(*tptr, 12);
2312 EXTRACT_32BITS(tptr),
2313 EXTRACT_32BITS(tptr + 4),
2314 EXTRACT_32BITS(tptr + 8),
2316 tptr += 12;
2648 const u_char *tptr;
2704 tptr = dat + BGP_NOTIFICATION_SIZE;
2705 ND_TCHECK2(*tptr, 7);
2708 EXTRACT_16BITS(tptr)),
2709 EXTRACT_16BITS(tptr),
2710 tok2str(bgp_safi_values, "Unknown", *(tptr+2)),
2711 *(tptr+2),
2712 EXTRACT_32BITS(tptr+3)));