diff options
author | benno <benno@openbsd.org> | 2018-07-12 21:45:37 +0000 |
---|---|---|
committer | benno <benno@openbsd.org> | 2018-07-12 21:45:37 +0000 |
commit | 2c1c130e7b406ac9e3c93ff842328516110396b6 (patch) | |
tree | ff07fdcc6619215f7e6b8f3ddb96c40cabe4a2d5 /usr.sbin/bgpctl | |
parent | if we couldn't update the clock for ~1h due to lack of data from peers and (diff) | |
download | wireguard-openbsd-2c1c130e7b406ac9e3c93ff842328516110396b6.tar.xz wireguard-openbsd-2c1c130e7b406ac9e3c93ff842328516110396b6.zip |
store and print the rdomain of the interfaces we see.
ok phessler@ henning@
Diffstat (limited to 'usr.sbin/bgpctl')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index f8d4a5adcc9..ee3594b9133 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.204 2018/07/11 16:35:37 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.205 2018/07/12 21:45:37 benno Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -1140,7 +1140,7 @@ show_nexthop_msg(struct imsg *imsg) void show_interface_head(void) { - printf("%-15s%-15s%-15s%s\n", "Interface", "Nexthop state", "Flags", + printf("%-15s%-9s%-9s%-7s%s\n", "Interface", "rdomain", "Nexthop", "Flags", "Link state"); } @@ -1223,8 +1223,9 @@ show_interface_msg(struct imsg *imsg) case IMSG_CTL_SHOW_INTERFACE: k = imsg->data; printf("%-15s", k->ifname); - printf("%-15s", k->nh_reachable ? "ok" : "invalid"); - printf("%-15s", k->flags & IFF_UP ? "UP" : ""); + printf("%-9u", k->rdomain); + printf("%-9s", k->nh_reachable ? "ok" : "invalid"); + printf("%-7s", k->flags & IFF_UP ? "UP" : ""); if ((ifms_type = ift2ifm(k->if_type)) != 0) printf("%s, ", get_media_descr(ifms_type)); |