summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-12-05 22:39:26 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-12-05 22:39:26 +0000
commita80f0437dc55adec7643cacc50c6f8e700cccf40 (patch)
treed7893c0348842320c8ddcfe544e3d47626dba9c0 /usr.sbin
parent622a02183972f2f4a350d7c025000d054b4c1eae (diff)
Also print the mtu when showing interface details
ok sthen@ benno@
Diffstat (limited to 'usr.sbin')
-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);