Home | History | Annotate | Download | only in tcpdump

Lines Matching defs:tptr

1313     const u_char *tptr = pptr;
1328 while (tptr < pptr + len) {
1329 ND_TCHECK(tptr[0]);
1334 if (tptr[0] < BGP_AS_SEG_TYPE_MIN || tptr[0] > BGP_AS_SEG_TYPE_MAX) {
1337 ND_TCHECK(tptr[1]);
1338 tptr += 2 + tptr[1] * 2;
1345 if (tptr == pptr + len) {
1373 const u_char *tptr;
1377 tptr = pptr;
1385 ND_TCHECK(*tptr);
1388 tptr[0])));
1416 while (tptr < pptr + len) {
1417 ND_TCHECK(tptr[0]);
1419 "?", tptr[0])));
1420 ND_TCHECK(tptr[1]);
1421 for (i = 0; i < tptr[1] * as_size; i += as_size) {
1422 ND_TCHECK2(tptr[2 + i], as_size);
1426 EXTRACT_16BITS(&tptr[2 + i]) :
1427 EXTRACT_32BITS(&tptr[2 + i]))));
1429 ND_TCHECK(tptr[0]);
1431 "?", tptr[0])));
1432 ND_TCHECK(tptr[1]);
1433 tptr += 2 + tptr[1] * as_size;
1440 ND_TCHECK2(tptr[0], 4);
1441 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr)));
1449 ND_TCHECK2(tptr[0], 4);
1450 ND_PRINT((ndo, "%u", EXTRACT_32BITS(tptr)));
1467 ND_TCHECK2(tptr[0], len);
1470 as_printf(ndo, astostr, sizeof(astostr), EXTRACT_16BITS(tptr)),
1471 ipaddr_string(ndo, tptr + 2)));
1475 EXTRACT_32BITS(tptr)), ipaddr_string(ndo, tptr + 4)));
1483 ND_TCHECK2(tptr[0], 8);
1485 as_printf(ndo, astostr, sizeof(astostr), EXTRACT_32BITS(tptr)),
1486 ipaddr_string(ndo, tptr + 4)));
1495 ND_TCHECK2(tptr[0], 4);
1496 comm = EXTRACT_32BITS(tptr);
1515 tptr +=4;
1523 ND_TCHECK2(tptr[0], 4);
1524 ND_PRINT((ndo, "%s",ipaddr_string(ndo, tptr)));
1532 ND_TCHECK2(tptr[0], 4);
1534 ipaddr_string(ndo, tptr),
1537 tptr +=4;
1541 ND_TCHECK2(tptr[0], 3);
1542 af = EXTRACT_16BITS(tptr);
1543 safi = tptr[2];
1582 ND_TCHECK2(tptr[0], tlen);
1585 print_unknown_data(ndo, tptr, "\n\t ", tlen);
1590 tptr +=3;
1592 ND_TCHECK(tptr[0]);
1593 nhlen = tptr[0];
1595 tptr++;
1616 ND_TCHECK2(tptr[0], sizeof(struct in_addr));
1617 ND_PRINT((ndo, "%s",ipaddr_string(ndo, tptr)));
1619 tptr += sizeof(struct in_addr);
1629 ND_TCHECK2(tptr[0], sizeof(struct in_addr)+BGP_VPN_RD_LEN);
1631 bgp_vpn_rd_print(ndo, tptr),
1632 ipaddr_string(ndo, tptr+BGP_VPN_RD_LEN)));
1634 tptr += (sizeof(struct in_addr)+BGP_VPN_RD_LEN);
1645 ND_TCHECK2(tptr[0], sizeof(struct in6_addr));
1646 ND_PRINT((ndo, "%s", ip6addr_string(ndo, tptr)));
1648 tptr += sizeof(struct in6_addr);
1658 ND_TCHECK2(tptr[0], sizeof(struct in6_addr)+BGP_VPN_RD_LEN);
1660 bgp_vpn_rd_print(ndo, tptr),
1661 ip6addr_string(ndo, tptr+BGP_VPN_RD_LEN)));
1663 tptr += (sizeof(struct in6_addr)+BGP_VPN_RD_LEN);
1674 ND_TCHECK2(tptr[0], sizeof(struct in_addr));
1675 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr)));
1677 tptr += (sizeof(struct in_addr));
1683 ND_TCHECK2(tptr[0], tlen);
1684 ND_PRINT((ndo, "%s", isonsap_string(ndo, tptr, tlen)));
1685 tptr += tlen;
1696 ND_TCHECK2(tptr[0], tlen);
1698 bgp_vpn_rd_print(ndo, tptr),
1699 isonsap_string(ndo, tptr+BGP_VPN_RD_LEN,tlen-BGP_VPN_RD_LEN)));
1701 if (EXTRACT_32BITS(tptr+BGP_VPN_RD_LEN) == 0x47000601)
1702 ND_PRINT((ndo, " = %s", ipaddr_string(ndo, tptr+BGP_VPN_RD_LEN+4)));
1704 else if (EXTRACT_24BITS(tptr+BGP_VPN_RD_LEN) == 0x350000)
1705 ND_PRINT((ndo, " = %s", ip6addr_string(ndo, tptr+BGP_VPN_RD_LEN+3)));
1706 tptr += tlen;
1711 ND_TCHECK2(tptr[0], tlen);
1714 print_unknown_data(ndo, tptr, "\n\t ", tlen);
1715 tptr += tlen;
1723 tptr += tlen;
1725 ND_TCHECK(tptr[0]);
1726 snpa = tptr[0];
1727 tptr++;
1732 ND_TCHECK(tptr[0]);
1733 ND_PRINT((ndo, "\n\t %d bytes", tptr[0]));
1734 tptr += tptr[0] + 1;
1740 while (tptr < pptr + len) {
1745 advance = decode_prefix4(ndo, tptr, len, buf, sizeof(buf));
1756 advance = decode_labeled_prefix4(ndo, tptr, len, buf, sizeof(buf));
1769 advance = decode_labeled_vpn_prefix4(ndo, tptr, buf, sizeof(buf));
1778 advance = decode_rt_routing_info(ndo, tptr, buf, sizeof(buf));
1788 advance = decode_multicast_vpn(ndo, tptr, buf, sizeof(buf));
1798 advance = decode_mdt_vpn_nlri(ndo, tptr, buf, sizeof(buf));
1809 advance = decode_prefix6(ndo, tptr, len, buf, sizeof(buf));
1820 advance = decode_labeled_prefix6(ndo, tptr, len, buf, sizeof(buf));
1833 advance = decode_labeled_vpn_prefix6(ndo, tptr, buf, sizeof(buf));
1845 advance = decode_labeled_vpn_l2(ndo, tptr, buf, sizeof(buf));
1856 advance = decode_clnp_prefix(ndo, tptr, buf, sizeof(buf));
1867 advance = decode_labeled_vpn_clnp_prefix(ndo, tptr, buf, sizeof(buf));
1876 ND_TCHECK2(*tptr,tlen);
1879 print_unknown_data(ndo, tptr, "\n\t ", tlen);
1881 tptr = pptr + len;
1886 tptr += advance;
1892 ND_TCHECK2(tptr[0], BGP_MP_NLRI_MINSIZE);
1893 af = EXTRACT_16BITS(tptr);
1894 safi = tptr[2];
1906 tptr += 3;
1908 while (tptr < pptr + len) {
1913 advance = decode_prefix4(ndo, tptr, len, buf, sizeof(buf));
1924 advance = decode_labeled_prefix4(ndo, tptr, len, buf, sizeof(buf));
1937 advance = decode_labeled_vpn_prefix4(ndo, tptr, buf, sizeof(buf));
1948 advance = decode_prefix6(ndo, tptr, len, buf, sizeof(buf));
1959 advance = decode_labeled_prefix6(ndo, tptr, len, buf, sizeof(buf));
1972 advance = decode_labeled_vpn_prefix6(ndo, tptr, buf, sizeof(buf));
1984 advance = decode_labeled_vpn_l2(ndo, tptr, buf, sizeof(buf));
1995 advance = decode_clnp_prefix(ndo, tptr, buf, sizeof(buf));
2006 advance = decode_labeled_vpn_clnp_prefix(ndo, tptr, buf, sizeof(buf));
2015 advance = decode_mdt_vpn_nlri(ndo, tptr, buf, sizeof(buf));
2025 advance = decode_multicast_vpn(ndo, tptr, buf, sizeof(buf));
2034 ND_TCHECK2(*(tptr-3),tlen);
2037 print_unknown_data(ndo, tptr-3, "\n\t ", tlen);
2039 tptr = pptr + len;
2044 tptr += advance;
2055 ND_TCHECK2(tptr[0], 2);
2056 extd_comm=EXTRACT_16BITS(tptr);
2065 ND_TCHECK2(*(tptr+2), 6);
2071 EXTRACT_16BITS(tptr+2),
2072 EXTRACT_32BITS(tptr+4),
2073 ipaddr_string(ndo, tptr+4)));
2080 ipaddr_string(ndo, tptr+2),
2081 EXTRACT_16BITS(tptr+6)));
2087 EXTRACT_32BITS(tptr+2)), EXTRACT_16BITS(tptr+6)));
2090 bw.i = EXTRACT_32BITS(tptr+2);
2100 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr+2)));
2105 ipaddr_string(ndo, tptr+2),
2108 *(tptr+6)),
2109 (*(tptr+7) & BGP_OSPF_RTYPE_METRIC_TYPE) ? "E2" : "",
2110 ((*(tptr+6) == BGP_OSPF_RTYPE_EXT) || (*(tptr+6) == BGP_OSPF_RTYPE_NSSA)) ? "E1" : ""));
2116 *(tptr+2)),
2117 *(tptr+3),
2118 EXTRACT_16BITS(tptr+4)));
2121 ND_PRINT((ndo, ": AS %u", EXTRACT_16BITS(tptr+2)));
2124 ND_TCHECK2(*tptr,8);
2125 print_unknown_data(ndo, tptr, "\n\t ", 8);
2129 tptr +=8;
2137 ND_TCHECK2(tptr[0], 5);
2138 tunnel_type = *(tptr+1);
2139 flags = *tptr;
2146 EXTRACT_24BITS(tptr+2)>>4));
2148 tptr +=5;
2154 ND_TCHECK2(tptr[0], 8);
2156 ipaddr_string(ndo, tptr),
2157 ipaddr_string(ndo, tptr+4)));
2161 ND_TCHECK2(tptr[0], 8);
2163 ipaddr_string(ndo, tptr),
2164 ipaddr_string(ndo, tptr+4)));
2167 ND_TCHECK2(tptr[0], 4);
2169 ipaddr_string(ndo, tptr)));
2173 ND_TCHECK2(tptr[0], 8);
2175 ipaddr_string(ndo, tptr),
2176 EXTRACT_32BITS(tptr+4)));
2179 ND_TCHECK2(tptr[0], 8);
2181 ipaddr_string(ndo, tptr),
2182 EXTRACT_32BITS(tptr+4)));
2186 print_unknown_data(ndo, tptr, "\n\t ", tlen);
2200 ND_TCHECK2(tptr[0], 3);
2202 tptr;
2203 length = EXTRACT_16BITS(tptr+1);
2204 tptr += 3;
2218 ND_TCHECK2(tptr[3], length);
2226 EXTRACT_64BITS(tptr)));
2231 print_unknown_data(ndo, tptr,"\n\t ", length);
2235 tptr += length;
2241 ND_TCHECK2(tptr[0], 4);
2245 as_printf(ndo, astostr, sizeof(astostr), EXTRACT_32BITS(tptr))));
2246 tptr+=4;
2252 ND_TCHECK2(tptr[0], 2);
2255 aflags = *tptr;
2256 atype = *(tptr + 1);
2257 tptr += 2;
2259 alenlen = bgp_attr_lenlen(aflags, tptr);
2260 ND_TCHECK2(tptr[0], alenlen);
2263 alen = bgp_attr_len(aflags, tptr);
2264 tptr += alenlen;
2284 if (!bgp_attr_print(ndo, atype, tptr, alen))
2286 tptr += alen;
2298 ND_TCHECK2(*tptr, 12);
2300 EXTRACT_32BITS(tptr),
2301 EXTRACT_32BITS(tptr + 4),
2302 EXTRACT_32BITS(tptr + 8),
2304 tptr += 12;
2631 const u_char *tptr;
2687 tptr = dat + BGP_NOTIFICATION_SIZE;
2688 ND_TCHECK2(*tptr, 7);
2691 EXTRACT_16BITS(tptr)),
2692 EXTRACT_16BITS(tptr),
2693 tok2str(bgp_safi_values, "Unknown", *(tptr+2)),
2694 *(tptr+2),
2695 EXTRACT_32BITS(tptr+3)));