Lines Matching refs:tlen

968         int plen,tlen,strlen,tlv_type,tlv_len,ttlv_len;  in decode_labeled_vpn_l2()  local
972 tlen=plen; in decode_labeled_vpn_l2()
989 tlen-=12; in decode_labeled_vpn_l2()
1004 tlen-=15; in decode_labeled_vpn_l2()
1007 while (tlen>0) { in decode_labeled_vpn_l2()
1008 if (tlen < 3) in decode_labeled_vpn_l2()
1043 tlen-=(tlv_len<<3); /* the tlv-length is expressed in bits so lets shift it right */ in decode_labeled_vpn_l2()
1315 u_int tlen; in bgp_attr_print() local
1322 tlen=len; in bgp_attr_print()
1440 while (tlen>0) { in bgp_attr_print()
1458 (tlen>4) ? ", " : "")); in bgp_attr_print()
1461 tlen -=4; in bgp_attr_print()
1478 while (tlen>0) { in bgp_attr_print()
1482 (tlen>4) ? ", " : "")); in bgp_attr_print()
1483 tlen -=4; in bgp_attr_print()
1533 ND_TCHECK2(tptr[0], tlen); in bgp_attr_print()
1536 print_unknown_data(ndo, tptr, "\n\t ", tlen); in bgp_attr_print()
1545 tlen = nhlen; in bgp_attr_print()
1548 if (tlen) { in bgp_attr_print()
1551 while (tlen > 0) { in bgp_attr_print()
1563 if (tlen < (int)sizeof(struct in_addr)) { in bgp_attr_print()
1565 tlen = 0; in bgp_attr_print()
1569 tlen -= sizeof(struct in_addr); in bgp_attr_print()
1576 if (tlen < (int)(sizeof(struct in_addr)+BGP_VPN_RD_LEN)) { in bgp_attr_print()
1578 tlen = 0; in bgp_attr_print()
1584 tlen -= (sizeof(struct in_addr)+BGP_VPN_RD_LEN); in bgp_attr_print()
1593 if (tlen < (int)sizeof(struct in6_addr)) { in bgp_attr_print()
1595 tlen = 0; in bgp_attr_print()
1599 tlen -= sizeof(struct in6_addr); in bgp_attr_print()
1606 if (tlen < (int)(sizeof(struct in6_addr)+BGP_VPN_RD_LEN)) { in bgp_attr_print()
1608 tlen = 0; in bgp_attr_print()
1614 tlen -= (sizeof(struct in6_addr)+BGP_VPN_RD_LEN); in bgp_attr_print()
1623 if (tlen < (int)sizeof(struct in_addr)) { in bgp_attr_print()
1625 tlen = 0; in bgp_attr_print()
1629 tlen -= (sizeof(struct in_addr)); in bgp_attr_print()
1636 ND_TCHECK2(tptr[0], tlen); in bgp_attr_print()
1637 ND_PRINT((ndo, "%s", isonsap_string(tptr, tlen))); in bgp_attr_print()
1638 tptr += tlen; in bgp_attr_print()
1639 tlen = 0; in bgp_attr_print()
1645 if (tlen < BGP_VPN_RD_LEN+1) { in bgp_attr_print()
1647 tlen = 0; in bgp_attr_print()
1649 ND_TCHECK2(tptr[0], tlen); in bgp_attr_print()
1652 isonsap_string(tptr+BGP_VPN_RD_LEN,tlen-BGP_VPN_RD_LEN))); in bgp_attr_print()
1661 tptr += tlen; in bgp_attr_print()
1662 tlen = 0; in bgp_attr_print()
1666 ND_TCHECK2(tptr[0], tlen); in bgp_attr_print()
1669 print_unknown_data(ndo, tptr, "\n\t ", tlen); in bgp_attr_print()
1670 tptr += tlen; in bgp_attr_print()
1671 tlen = 0; in bgp_attr_print()
1678 tptr += tlen; in bgp_attr_print()
1833 ND_TCHECK2(*tptr,tlen); in bgp_attr_print()
1836 print_unknown_data(ndo, tptr, "\n\t ", tlen); in bgp_attr_print()
1995 ND_TCHECK2(*(tptr-3),tlen); in bgp_attr_print()
1998 print_unknown_data(ndo, tptr-3, "\n\t ", tlen); in bgp_attr_print()
2013 while (tlen>0) { in bgp_attr_print()
2091 tlen -=8; in bgp_attr_print()
2102 tlen = len; in bgp_attr_print()
2112 tlen -= 5; in bgp_attr_print()
2149 print_unknown_data(ndo, tptr, "\n\t ", tlen); in bgp_attr_print()