Lines Matching defs:tptr

1540     const u_char *tptr = pptr;
1555 while (tptr < pptr + len) {
1559 if (GET_U_1(tptr) < BGP_AS_SEG_TYPE_MIN || GET_U_1(tptr) > BGP_AS_SEG_TYPE_MAX) {
1562 tptr += 2 + GET_U_1(tptr + 1) * 2;
1569 if (tptr == pptr + len) {
1653 const u_char *tptr, u_int tlen,
1659 af = GET_BE_U_2(tptr);
1661 safi = GET_U_1(tptr + 2);
1701 ND_TCHECK_LEN(tptr, tlen);
1704 print_unknown_data(ndo, tptr, "\n\t ", tlen);
1714 const u_char *tptr, u_int len,
1726 path_id = GET_BE_U_4(tptr);
1727 tptr += 4;
1729 advance = decode_prefix4(ndo, tptr, len, buf, buflen);
1742 advance = decode_labeled_prefix4(ndo, tptr, len, buf, buflen);
1755 advance = decode_labeled_vpn_prefix4(ndo, tptr, buf, buflen);
1762 advance = decode_rt_routing_info(ndo, tptr);
1766 advance = decode_multicast_vpn(ndo, tptr, buf, buflen);
1776 advance = decode_mdt_vpn_nlri(ndo, tptr, buf, buflen);
1788 path_id = GET_BE_U_4(tptr);
1789 tptr += 4;
1791 advance = decode_prefix6(ndo, tptr, len, buf, buflen);
1804 advance = decode_labeled_prefix6(ndo, tptr, len, buf, buflen);
1817 advance = decode_labeled_vpn_prefix6(ndo, tptr, buf, buflen);
1827 advance = decode_labeled_vpn_l2(ndo, tptr, buf, buflen);
1838 advance = decode_clnp_prefix(ndo, tptr, buf, buflen);
1847 advance = decode_labeled_vpn_clnp_prefix(ndo, tptr, buf, buflen);
1879 const u_char *tptr;
1885 tptr = pptr;
1895 GET_U_1(tptr)));
1923 while (tptr < pptr + len) {
1925 "?", GET_U_1(tptr)));
1926 for (i = 0; i < GET_U_1(tptr + 1) * as_size; i += as_size) {
1927 ND_TCHECK_LEN(tptr + 2 + i, as_size);
1931 GET_BE_U_2(tptr + i + 2) :
1932 GET_BE_U_4(tptr + i + 2)));
1935 "?", GET_U_1(tptr)));
1936 tptr += 2 + GET_U_1(tptr + 1) * as_size;
1943 ND_PRINT("%s", GET_IPADDR_STRING(tptr));
1951 ND_PRINT("%u", GET_BE_U_4(tptr));
1968 ND_TCHECK_LEN(tptr, len);
1971 as_printf(ndo, astostr, sizeof(astostr), GET_BE_U_2(tptr)),
1972 GET_IPADDR_STRING(tptr + 2));
1976 GET_BE_U_4(tptr)), GET_IPADDR_STRING(tptr + 4));
1985 as_printf(ndo, astostr, sizeof(astostr), GET_BE_U_4(tptr)),
1986 GET_IPADDR_STRING(tptr + 4));
1995 ND_TCHECK_4(tptr);
1998 comm = GET_BE_U_4(tptr);
2017 tptr +=4;
2025 ND_PRINT("%s",GET_IPADDR_STRING(tptr));
2036 GET_IPADDR_STRING(tptr),
2039 tptr +=4;
2043 ND_TCHECK_3(tptr);
2046 ret = bgp_mp_af_print(ndo, tptr, tlen, &af, &safi);
2052 tptr += 3;
2055 ND_TCHECK_1(tptr);
2058 nhlen = GET_U_1(tptr);
2059 tptr++;
2082 tptr += tnhlen;
2086 ND_PRINT("%s",GET_IPADDR_STRING(tptr));
2087 tptr += sizeof(nd_ipv4);
2097 tptr += tnhlen;
2102 bgp_vpn_rd_print(ndo, tptr),
2103 GET_IPADDR_STRING(tptr+BGP_VPN_RD_LEN));
2104 tptr += (sizeof(nd_ipv4)+BGP_VPN_RD_LEN);
2115 tptr += tnhlen;
2119 ND_PRINT("%s", GET_IP6ADDR_STRING(tptr));
2120 tptr += sizeof(nd_ipv6);
2130 tptr += tnhlen;
2135 bgp_vpn_rd_print(ndo, tptr),
2136 GET_IP6ADDR_STRING(tptr+BGP_VPN_RD_LEN));
2137 tptr += (sizeof(nd_ipv6)+BGP_VPN_RD_LEN);
2148 tptr += tnhlen;
2152 ND_PRINT("%s", GET_IPADDR_STRING(tptr));
2153 tptr += (sizeof(nd_ipv4));
2161 ND_PRINT("%s", GET_ISONSAP_STRING(tptr, tnhlen));
2162 tptr += tnhlen;
2172 tptr += tnhlen;
2176 ND_TCHECK_LEN(tptr, tnhlen);
2178 bgp_vpn_rd_print(ndo, tptr),
2179 GET_ISONSAP_STRING(tptr+BGP_VPN_RD_LEN,tnhlen-BGP_VPN_RD_LEN));
2181 if (GET_BE_U_4(tptr + BGP_VPN_RD_LEN) == 0x47000601)
2182 ND_PRINT(" = %s", GET_IPADDR_STRING(tptr+BGP_VPN_RD_LEN+4));
2184 else if (GET_BE_U_3(tptr + BGP_VPN_RD_LEN) == 0x350000)
2185 ND_PRINT(" = %s", GET_IP6ADDR_STRING(tptr+BGP_VPN_RD_LEN+3));
2186 tptr += tnhlen;
2197 tptr += tnhlen;
2210 snpa = GET_U_1(tptr);
2211 tptr++;
2220 snpalen = GET_U_1(tptr);
2222 tptr++;
2226 ND_TCHECK_LEN(tptr, snpalen);
2227 tptr += snpalen;
2234 add_path4 = check_add_path(ndo, tptr,
2235 (len-ND_BYTES_BETWEEN(pptr, tptr)), 32);
2236 add_path6 = check_add_path(ndo, tptr,
2237 (len-ND_BYTES_BETWEEN(pptr, tptr)), 128);
2239 while (tptr < pptr + len) {
2240 advance = bgp_nlri_print(ndo, af, safi, tptr, len, buf, sizeof(buf),
2246 tptr += advance;
2251 ND_TCHECK_LEN(tptr, BGP_MP_NLRI_MINSIZE);
2252 ret = bgp_mp_af_print(ndo, tptr, tlen, &af, &safi);
2261 tptr += 3;
2263 add_path4 = check_add_path(ndo, tptr,
2264 (len-ND_BYTES_BETWEEN(pptr, tptr)), 32);
2265 add_path6 = check_add_path(ndo, tptr,
2266 (len-ND_BYTES_BETWEEN(pptr, tptr)), 128);
2268 while (tptr < pptr + len) {
2269 advance = bgp_nlri_print(ndo, af, safi, tptr, len, buf, sizeof(buf),
2275 tptr += advance;
2286 ND_TCHECK_2(tptr);
2289 extd_comm=GET_BE_U_2(tptr);
2298 ND_TCHECK_8(tptr);
2302 bgp_extended_community_print(ndo, tptr);
2304 tptr += 8;
2312 ND_TCHECK_5(tptr);
2315 flags = GET_U_1(tptr);
2316 tunnel_type = GET_U_1(tptr + 1);
2322 GET_BE_U_3(tptr + 2)>>4);
2324 tptr +=5;
2331 GET_IPADDR_STRING(tptr),
2332 GET_IPADDR_STRING(tptr+4));
2337 GET_IPADDR_STRING(tptr),
2338 GET_IPADDR_STRING(tptr+4));
2342 GET_IPADDR_STRING(tptr));
2347 GET_IPADDR_STRING(tptr),
2348 GET_BE_U_4(tptr + 4));
2352 GET_IPADDR_STRING(tptr),
2353 GET_BE_U_4(tptr + 4));
2357 print_unknown_data(ndo, tptr, "\n\t ", tlen);
2368 type = GET_U_1(tptr);
2369 length = GET_BE_U_2(tptr + 1);
2370 tptr += 3;
2393 GET_BE_U_8(tptr));
2398 print_unknown_data(ndo, tptr,"\n\t ", length);
2402 tptr += length;
2408 ND_TCHECK_4(tptr);
2412 as_printf(ndo, astostr, sizeof(astostr), GET_BE_U_4(tptr)));
2413 tptr += 4;
2419 ND_TCHECK_2(tptr);
2422 tptr += len;
2425 aflags = GET_U_1(tptr);
2426 atype = GET_U_1(tptr + 1);
2427 tptr += 2;
2429 alenlen = bgp_attr_lenlen(aflags, tptr);
2430 ND_TCHECK_LEN(tptr, alenlen);
2433 tptr += len;
2436 alen = bgp_attr_len(aflags, tptr);
2437 tptr += alenlen;
2459 tptr += len;
2473 else if (!bgp_attr_print(ndo, atype, tptr, alen, attr_set_level + 1))
2475 tptr += alen;
2488 GET_BE_U_4(tptr),
2489 GET_BE_U_4(tptr + 4),
2490 GET_BE_U_4(tptr + 8),
2492 tptr += 12;
2914 const u_char *tptr;
2972 tptr = dat + BGP_NOTIFICATION_SIZE;
2974 tok2str(af_values, "Unknown", GET_BE_U_2(tptr)),
2975 GET_BE_U_2(tptr),
2976 tok2str(bgp_safi_values, "Unknown", GET_U_1((tptr + 2))),
2977 GET_U_1((tptr + 2)),
2978 GET_BE_U_4(tptr + 3));
2987 tptr = dat + BGP_NOTIFICATION_SIZE;
2988 uint8_t shutdown_comm_length = GET_U_1(tptr);
3000 (void)nd_printn(ndo, tptr+1, shutdown_comm_length, NULL);
3007 hex_print(ndo, "\n\t\t", tptr + remainder_offset, length - (remainder_offset + BGP_NOTIFICATION_SIZE));