From 547ebde69dd25f8156f6693c677d3007b77ec5f8 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 2 Jan 2009 00:09:54 +0000 Subject: In show interface only print the hello_timer value if valid. --- usr.sbin/ospfctl/ospfctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c index c9382841f32..cacf8ff6895 100644 --- a/usr.sbin/ospfctl/ospfctl.c +++ b/usr.sbin/ospfctl/ospfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfctl.c,v 1.43 2008/12/12 22:44:07 claudio Exp $ */ +/* $OpenBSD: ospfctl.c,v 1.44 2009/01/02 00:09:53 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker @@ -364,6 +364,7 @@ show_interface_msg(struct imsg *imsg) err(1, NULL); printf("%-11s %-18s %-6s %-10s %-10s %s %3d %3d\n", iface->name, netid, if_state_name(iface->state), + iface->hello_timer < 0 ? "-" : fmt_timeframe_core(iface->hello_timer), get_linkstate(get_ifms_type(iface->mediatype), iface->linkstate), fmt_timeframe_core(iface->uptime), -- cgit v1.2.3