diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-12-12 22:44:08 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-12-12 22:44:08 +0000 |
commit | 95dbff1ba840ada43aa03c3922ff39bcfda081a3 (patch) | |
tree | 9dd7b653fd4960fac5553f240d9c2d07122e497a /usr.sbin | |
parent | fe2d6de7fe376f66266225d7022850969de7496b (diff) |
ospfd knows now priorities so let ospfctl know and print them as well.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospfctl/ospfctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c index 3ff5b0f5d6a..c9382841f32 100644 --- a/usr.sbin/ospfctl/ospfctl.c +++ b/usr.sbin/ospfctl/ospfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfctl.c,v 1.42 2008/12/06 13:18:12 sobrado Exp $ */ +/* $OpenBSD: ospfctl.c,v 1.43 2008/12/12 22:44:07 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -1103,7 +1103,7 @@ void show_fib_head(void) { printf("flags: * = valid, O = OSPF, C = Connected, S = Static\n"); - printf("%-6s %-20s %-17s\n", "Flags", "Destination", "Nexthop"); + printf("%-6s %-4s %-20s %-17s\n", "Flags", "Prio", "Destination", "Nexthop"); } int @@ -1133,6 +1133,7 @@ show_fib_msg(struct imsg *imsg) printf(" "); printf(" "); + printf("%4d ", k->priority); if (asprintf(&p, "%s/%u", inet_ntoa(k->prefix), k->prefixlen) == -1) err(1, NULL); |