Lines Matching refs:addr_length
577 const u_char *pptr, u_int addr_length) in bgp_vpn_ip_print() argument
584 switch(addr_length) { in bgp_vpn_ip_print()
596 snprintf(pos, sizeof(addr), "bogus address length %u", addr_length); in bgp_vpn_ip_print()
628 uint8_t addr_length; in bgp_vpn_sg_print() local
635 addr_length = *pptr++; in bgp_vpn_sg_print()
638 ND_TCHECK2(pptr[0], (addr_length >> 3)); in bgp_vpn_sg_print()
639 total_length += (addr_length >> 3) + 1; in bgp_vpn_sg_print()
641 if (addr_length) { in bgp_vpn_sg_print()
643 bgp_vpn_ip_print(ndo, pptr, addr_length)); in bgp_vpn_sg_print()
644 pptr += (addr_length >> 3); in bgp_vpn_sg_print()
649 addr_length = *pptr++; in bgp_vpn_sg_print()
652 ND_TCHECK2(pptr[0], (addr_length >> 3)); in bgp_vpn_sg_print()
653 total_length += (addr_length >> 3) + 1; in bgp_vpn_sg_print()
655 if (addr_length) { in bgp_vpn_sg_print()
657 bgp_vpn_ip_print(ndo, pptr, addr_length)); in bgp_vpn_sg_print()
658 pptr += (addr_length >> 3); in bgp_vpn_sg_print()
861 uint8_t route_type, route_length, addr_length, sg_length; in decode_multicast_vpn() local
899 addr_length = route_length - sg_length; in decode_multicast_vpn()
901 ND_TCHECK2(pptr[0], addr_length); in decode_multicast_vpn()
904 bgp_vpn_ip_print(ndo, pptr, addr_length << 3)); in decode_multicast_vpn()