diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2019-11-28 10:02:45 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2019-11-28 10:02:45 +0000 |
commit | 97375202cc5c0d4359be3a39613118af98a1b4db (patch) | |
tree | 7e3c5d8a67bfa6e3bacc69f3f906f8a4bfec4fb8 /usr.sbin | |
parent | 5182cbfbc4ebc628df0351ad32bf8b9f5a3cc9d6 (diff) |
Track all elements of a forwarder configuration individually:
IP address, port and authentication name.
This makes print_config less awkward and fixes a bug were an
alternative port number was not printed.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/unwindctl/unwindctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/unwindctl/unwindctl.c b/usr.sbin/unwindctl/unwindctl.c index 4bf27fc3144..9d4791bd795 100644 --- a/usr.sbin/unwindctl/unwindctl.c +++ b/usr.sbin/unwindctl/unwindctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unwindctl.c,v 1.16 2019/11/27 17:12:31 florian Exp $ */ +/* $OpenBSD: unwindctl.c,v 1.17 2019/11/28 10:02:44 florian Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -236,7 +236,7 @@ show_status_msg(struct imsg *imsg) if (!autoconf_forwarders++) printf("\nlearned forwarders:\n"); if_name = if_indextoname(cfi->if_index, ifnamebuf); - printf("%s - %s[%s]\n", cfi->name, + printf("%s - %s[%s]\n", cfi->ip, cfi->src == RTP_PROPOSAL_DHCLIENT ? "DHCP" : "SLAAC", if_name ? if_name : "unknown"); break; |