summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-12-22 23:03:56 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-12-22 23:03:56 +0000
commitb84544f5e243f36c3f9220f42ec87606aa670524 (patch)
tree3f1d83b18d13bc7fd74cc1efa9b0208130c6c81d
parentaaa6c5ed58c6c2c4c6cd0db81630b6f0dca9f18e (diff)
Also print the mtu in detailed interface info.
Copied on the diff from Remi Locherer for ospfctl. ok benno@ claudio@
-rw-r--r--usr.sbin/ospf6ctl/ospf6ctl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c
index ff1b844bcd9..3b384e10fe4 100644
--- a/usr.sbin/ospf6ctl/ospf6ctl.c
+++ b/usr.sbin/ospf6ctl/ospf6ctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospf6ctl.c,v 1.43 2015/12/05 13:12:40 claudio Exp $ */
+/* $OpenBSD: ospf6ctl.c,v 1.44 2016/12/22 23:03:55 jca Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -409,9 +409,10 @@ show_interface_detail_msg(struct imsg *imsg)
iface->name, print_link(iface->flags));
printf(" Internet address %s Area %s\n",
log_in6addr(&iface->addr), inet_ntoa(iface->area));
- printf(" Link type %s, state %s",
+ printf(" Link type %s, state %s, mtu %d",
get_media_descr(get_ifms_type(iface->if_type)),
- get_linkstate(iface->if_type, iface->linkstate));
+ get_linkstate(iface->if_type, iface->linkstate),
+ iface->mtu);
if (iface->linkstate != LINK_STATE_DOWN &&
iface->baudrate > 0) {
printf(", ");