diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-12-23 18:01:32 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-12-23 18:01:32 +0000 |
commit | 59618fbb54fbd16a27eeeefc3620f3c2eaf9fe8a (patch) | |
tree | 18043dffa3238a28a385c5c2093f834c92e99a82 | |
parent | 4fd4f966eabc8c57cefe1362f25724002f0e535e (diff) |
Print more addresses with scope.
-rw-r--r-- | usr.sbin/ospf6ctl/ospf6ctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c index bdd5e72a49b..27afef49263 100644 --- a/usr.sbin/ospf6ctl/ospf6ctl.c +++ b/usr.sbin/ospf6ctl/ospf6ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf6ctl.c,v 1.31 2009/12/22 17:55:04 claudio Exp $ */ +/* $OpenBSD: ospf6ctl.c,v 1.32 2009/12/23 18:01:31 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -1138,7 +1138,7 @@ show_rib_detail_msg(struct imsg *imsg) errx(1, "unknown route type"); } printf("%-18s %-15s ", dstnet, - log_in6addr(&rt->nexthop)); + log_in6addr_scope(&rt->nexthop, rt->ifindex)); printf("%-15s %-12s %-7d", inet_ntoa(rt->adv_rtr), path_type_name(rt->p_type), rt->cost); free(dstnet); @@ -1159,7 +1159,7 @@ show_rib_detail_msg(struct imsg *imsg) err(1, NULL); printf("%-18s %-15s ", dstnet, - log_in6addr(&rt->nexthop)); + log_in6addr_scope(&rt->nexthop, rt->ifindex)); printf("%-15s %-12s %-7d %-7d\n", inet_ntoa(rt->adv_rtr), path_type_name(rt->p_type), rt->cost, rt->cost2); @@ -1226,7 +1226,7 @@ show_fib_msg(struct imsg *imsg) free(p); if (!IN6_IS_ADDR_UNSPECIFIED(&k->nexthop)) - printf("%s", log_in6addr(&k->nexthop)); + printf("%s", log_in6addr_scope(&k->nexthop, k->scope)); else if (k->flags & F_CONNECTED) printf("link#%u", k->ifindex); printf("\n"); |