From 6b1eee04527969f21ab65245b67cf9efa4b4aea8 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 15 Nov 2013 15:12:25 +0000 Subject: [ipv6] Separate the concepts of prefix and address creation Allow for IPv6 routing table entries to be created for an on-link prefix where a local address has not yet been assigned to the network device. Signed-off-by: Michael Brown --- src/usr/route_ipv6.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/usr') diff --git a/src/usr/route_ipv6.c b/src/usr/route_ipv6.c index 8a6fbde37..6045f85bb 100644 --- a/src/usr/route_ipv6.c +++ b/src/usr/route_ipv6.c @@ -44,8 +44,10 @@ static void route_ipv6_print ( struct net_device *netdev ) { printf ( "%s: %s/%d", netdev->name, inet6_ntoa ( &miniroute->address ), miniroute->prefix_len ); - if ( miniroute->has_router ) + if ( miniroute->flags & IPV6_HAS_ROUTER ) printf ( " gw %s", inet6_ntoa ( &miniroute->router ) ); + if ( ! ( miniroute->flags & IPV6_HAS_ADDRESS ) ) + printf ( " (no address)" ); if ( ! netdev_is_open ( miniroute->netdev ) ) printf ( " (inaccessible)" ); printf ( "\n" ); -- cgit v1.2.3-55-g7522