diff options
| author | 2009-01-02 00:09:53 +0000 | |
|---|---|---|
| committer | 2009-01-02 00:09:53 +0000 | |
| commit | 0cfd0ba2640b46da21a7e466eb8d0562fe71c897 (patch) | |
| tree | 38d24a15483a70468fd3b481fd7e888718a31b64 /usr.sbin/ospfctl/ospfctl.c | |
| parent | I removed prefix from lsa_prefix but this code was still using it. Unbreak (diff) | |
| download | wireguard-openbsd-0cfd0ba2640b46da21a7e466eb8d0562fe71c897.tar.xz wireguard-openbsd-0cfd0ba2640b46da21a7e466eb8d0562fe71c897.zip | |
In show interface only print the hello_timer value if valid.
Diffstat (limited to 'usr.sbin/ospfctl/ospfctl.c')
| -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), |
