diff options
| author | 2008-12-12 22:44:07 +0000 | |
|---|---|---|
| committer | 2008-12-12 22:44:07 +0000 | |
| commit | 253df2655ac73e93f001a75d5cd70c5000440762 (patch) | |
| tree | 759475a20df3b66dcd40378e6b1bbf80c6ee82b5 /usr.sbin/ospfctl/ospfctl.c | |
| parent | Make the kroute code routing priority aware. This solves a few issues and (diff) | |
| download | wireguard-openbsd-253df2655ac73e93f001a75d5cd70c5000440762.tar.xz wireguard-openbsd-253df2655ac73e93f001a75d5cd70c5000440762.zip | |
ospfd knows now priorities so let ospfctl know and print them as well.
Diffstat (limited to 'usr.sbin/ospfctl/ospfctl.c')
| -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); |
