Got report from user that bgpd doesn't show masks for some routes in
"show ip bgp". Looked at code and discovered this in
route_vty_out_route (bgp_route.c:3703) function:
if ((IN_CLASSC (destination) && p->prefixlen == 24)
|| (IN_CLASSB (destination) && p->prefixlen == 16)
|| (IN_CLASSA (destination) && p->prefixlen == 8)
|| p->u.prefix4.s_addr == 0)
{
/* When mask is natural, mask is not displayed. */
}
else
len += vty_out (vty, "/%d", p->prefixlen);
I thought that we already live in classless world.
--
Hasso Tepper
Elion Enterprises Ltd.
WAN administrator
"show ip bgp". Looked at code and discovered this in
route_vty_out_route (bgp_route.c:3703) function:
if ((IN_CLASSC (destination) && p->prefixlen == 24)
|| (IN_CLASSB (destination) && p->prefixlen == 16)
|| (IN_CLASSA (destination) && p->prefixlen == 8)
|| p->u.prefix4.s_addr == 0)
{
/* When mask is natural, mask is not displayed. */
}
else
len += vty_out (vty, "/%d", p->prefixlen);
I thought that we already live in classless world.
--
Hasso Tepper
Elion Enterprises Ltd.
WAN administrator