diff options
author | remi <remi@cvs.openbsd.org> | 2018-06-06 05:51:44 +0000 |
---|---|---|
committer | remi <remi@cvs.openbsd.org> | 2018-06-06 05:51:44 +0000 |
commit | c3b1ea67ee228177312e9564814212c33b686f1e (patch) | |
tree | 6d1c3b7d7956954da738b714265de8743e558d5f /usr.sbin | |
parent | d8106c16a82b373c508752b5ca33364f80828a8c (diff) |
print metric for Intra-Area-Prefix LSAs
ok stsp@ claudio@ jca@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospf6ctl/ospf6ctl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c index 5b56b5fded1..7410a7c9179 100644 --- a/usr.sbin/ospf6ctl/ospf6ctl.c +++ b/usr.sbin/ospf6ctl/ospf6ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf6ctl.c,v 1.47 2017/11/05 16:56:02 jca Exp $ */ +/* $OpenBSD: ospf6ctl.c,v 1.48 2018/06/06 05:51:43 remi Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -944,9 +944,10 @@ show_db_msg_detail(struct imsg *imsg) bcopy(prefix + 1, &ia6, LSA_PREFIXSIZE(prefix->prefixlen)); - printf(" Prefix: %s/%d%s\n", log_in6addr(&ia6), - prefix->prefixlen, - print_prefix_opt(prefix->options)); + printf(" Prefix: %s/%d%s Metric: %d\n", + log_in6addr(&ia6), prefix->prefixlen, + print_prefix_opt(prefix->options), + ntohs(prefix->metric)); off += sizeof(struct lsa_prefix) + LSA_PREFIXSIZE(prefix->prefixlen); |