diff options
Diffstat (limited to 'ospf6d/ospf6_route.c')
| -rw-r--r-- | ospf6d/ospf6_route.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c index 8abb8912c8..5f630828e7 100644 --- a/ospf6d/ospf6_route.c +++ b/ospf6d/ospf6_route.c @@ -670,6 +670,9 @@ struct ospf6_route *ospf6_route_add(struct ospf6_route *route,  	if (route->type == OSPF6_DEST_TYPE_LINKSTATE)  		ospf6_linkstate_prefix2str(&route->prefix, buf, sizeof(buf)); +	else if (route->type == OSPF6_DEST_TYPE_ROUTER) +		inet_ntop(AF_INET, &ADV_ROUTER_IN_PREFIX(&route->prefix), buf, +			  sizeof(buf));  	else  		prefix2str(&route->prefix, buf, sizeof(buf)); @@ -902,6 +905,9 @@ void ospf6_route_remove(struct ospf6_route *route,  	if (route->type == OSPF6_DEST_TYPE_LINKSTATE)  		ospf6_linkstate_prefix2str(&route->prefix, buf, sizeof(buf)); +	else if (route->type == OSPF6_DEST_TYPE_ROUTER) +		inet_ntop(AF_INET, &ADV_ROUTER_IN_PREFIX(&route->prefix), buf, +			  sizeof(buf));  	else  		prefix2str(&route->prefix, buf, sizeof(buf));  | 
