diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-01-02 00:09:54 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-01-02 00:09:54 +0000 |
commit | 547ebde69dd25f8156f6693c677d3007b77ec5f8 (patch) | |
tree | 6494ed4214f5dadc298aab4c35ec201e31885171 | |
parent | e7f671cb16179540a9e6989f79a621968d5906d1 (diff) |
In show interface only print the hello_timer value if valid.
-rw-r--r-- | usr.sbin/ospfctl/ospfctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <claudio@openbsd.org> @@ -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), |