summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfctl
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2016-12-05 22:39:25 +0000
committerjca <jca@openbsd.org>2016-12-05 22:39:25 +0000
commiteb7773453957333bb16f480f9f2dd57b41a857a4 (patch)
treedda0a306ef0dadc3e58a371ce8b9dca6e530d714 /usr.sbin/ospfctl
parentAdd Copyright and license. (diff)
downloadwireguard-openbsd-eb7773453957333bb16f480f9f2dd57b41a857a4.tar.xz
wireguard-openbsd-eb7773453957333bb16f480f9f2dd57b41a857a4.zip
Also print the mtu when showing interface details
ok sthen@ benno@
Diffstat (limited to 'usr.sbin/ospfctl')
-rw-r--r--usr.sbin/ospfctl/ospfctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c
index 81fafbe9fad..4d0f05152d8 100644
--- a/usr.sbin/ospfctl/ospfctl.c
+++ b/usr.sbin/ospfctl/ospfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfctl.c,v 1.63 2015/12/03 11:42:14 claudio Exp $ */
+/* $OpenBSD: ospfctl.c,v 1.64 2016/12/05 22:39:25 jca Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -434,8 +434,9 @@ show_interface_detail_msg(struct imsg *imsg)
inet_ntoa(iface->addr),
mask2prefixlen(iface->mask.s_addr));
printf("Area %s\n", inet_ntoa(iface->area));
- printf(" Linkstate %s\n",
+ printf(" Linkstate %s,",
get_linkstate(iface->if_type, iface->linkstate));
+ printf(" mtu %d\n", iface->mtu);
printf(" Router ID %s, network type %s, cost: %d\n",
inet_ntoa(iface->rtr_id),
if_type_name(iface->type), iface->metric);