[Swan-dev] pluto: Fix modecfg client/server display

Herbert Xu herbert at gondor.apana.org.au
Thu Apr 30 10:25:49 EEST 2015


The display for modecfg client/server status in ipsec whack --status
is reversed.

Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>

diff --git a/programs/pluto/connections.c b/programs/pluto/connections.c
index 1a03c29..6e9b2f2 100644
--- a/programs/pluto/connections.c
+++ b/programs/pluto/connections.c
@@ -3438,8 +3438,8 @@ static void show_one_sr(struct connection *c,
 		"\"%s\"%s:   modecfg info: us:%s, them:%s, modecfg "
 		"policy:%s, dns1:%s, dns2:%s, domain:%s%s;",
 		c->name, instance,
-		COMBO(sr->this, modecfg_client, modecfg_server),
-		COMBO(sr->that, modecfg_client, modecfg_server),
+		COMBO(sr->this, modecfg_server, modecfg_client),
+		COMBO(sr->that, modecfg_server, modecfg_client),
 
 		(c->policy & POLICY_MODECFG_PULL) ? "pull" : "push",
 		isanyaddr(&c->modecfg_dns1) ? "unset" : ipstr(&c->modecfg_dns1, &dns1b),
-- 
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


More information about the Swan-dev mailing list