diff options
author | Michael Brown | 2013-11-15 16:12:25 +0100 |
---|---|---|
committer | Michael Brown | 2013-11-15 16:22:54 +0100 |
commit | 6b1eee04527969f21ab65245b67cf9efa4b4aea8 (patch) | |
tree | cc174ea4309f6decfdcd7d93891c038cf54dcc49 /src/usr | |
parent | [build] Update build system for Syslinux 6.x (diff) | |
download | ipxe-6b1eee04527969f21ab65245b67cf9efa4b4aea8.tar.gz ipxe-6b1eee04527969f21ab65245b67cf9efa4b4aea8.tar.xz ipxe-6b1eee04527969f21ab65245b67cf9efa4b4aea8.zip |
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/route_ipv6.c | 4 |
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" ); |