summaryrefslogtreecommitdiffstats
path: root/src/usr/route_ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/route_ipv6.c')
-rw-r--r--src/usr/route_ipv6.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/route_ipv6.c b/src/usr/route_ipv6.c
index 8a6fbde3..6045f85b 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" );