summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfctl/ospfctl.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2005-10-27 22:37:31 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2005-10-27 22:37:31 +0000
commit9e02f1b52a207c1803ce36512aaf8895b0587fc2 (patch)
tree562739d2f00488788fcf66372102077940b3342a /usr.sbin/ospfctl/ospfctl.c
parent54ea7f6ac2b60fce081fa01ba82040b762137427 (diff)
indicate passive interface in 'show interface'; ok claudio@
Diffstat (limited to 'usr.sbin/ospfctl/ospfctl.c')
-rw-r--r--usr.sbin/ospfctl/ospfctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c
index aede9777303..fdc27b65745 100644
--- a/usr.sbin/ospfctl/ospfctl.c
+++ b/usr.sbin/ospfctl/ospfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfctl.c,v 1.21 2005/10/23 20:21:44 stevesk Exp $ */
+/* $OpenBSD: ospfctl.c,v 1.22 2005/10/27 22:37:30 stevesk Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -335,7 +335,9 @@ show_interface_msg(struct imsg *imsg)
"hello %d, dead %d, wait %d, retransmit %d\n",
iface->hello_interval, iface->dead_interval,
iface->dead_interval, iface->rxmt_interval);
- if (iface->hello_timer < 0)
+ if (iface->passive)
+ printf(" Passive interface (No Hellos)\n");
+ else if (iface->hello_timer < 0)
printf(" Hello timer not running\n");
else
printf(" Hello timer due in %s\n",