diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-12-22 17:55:05 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-12-22 17:55:05 +0000 |
commit | 54324633703a216eaa7c7f5c32cdb1b93cae5b9e (patch) | |
tree | 97b8b66cb86b927d880a878f3718c1f358a031ac /usr.sbin/ospf6ctl | |
parent | 58331f8d9840ab7984560e6661dafa60514ea67c (diff) |
Use log_in6addr_scope() to print the correct nexthop.
Diffstat (limited to 'usr.sbin/ospf6ctl')
-rw-r--r-- | usr.sbin/ospf6ctl/ospf6ctl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c index ade7787c32f..bdd5e72a49b 100644 --- a/usr.sbin/ospf6ctl/ospf6ctl.c +++ b/usr.sbin/ospf6ctl/ospf6ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf6ctl.c,v 1.30 2009/11/02 20:25:27 claudio Exp $ */ +/* $OpenBSD: ospf6ctl.c,v 1.31 2009/12/22 17:55:04 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -1026,8 +1026,9 @@ show_rib_msg(struct imsg *imsg) } printf("%-20s %-17s %-12s %-9s %-7d %s\n", dstnet, - log_in6addr(&rt->nexthop), path_type_name(rt->p_type), - dst_type_name(rt->d_type), rt->cost, + log_in6addr_scope(&rt->nexthop, rt->ifindex), + path_type_name(rt->p_type), dst_type_name(rt->d_type), + rt->cost, rt->uptime == 0 ? "-" : fmt_timeframe_core(rt->uptime)); free(dstnet); break; |