aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/cmp.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-04-09 12:54:47 +0000
committerMartin Willi <martin@strongswan.org>2008-04-09 12:54:47 +0000
commitcdcfe777f4cec7906a28fd2ef57d24ec3290902f (patch)
treec225288c98e84133eb392499ce842004e249f816 /src/starter/cmp.c
parent4a96521965fd1ab21f4e37bb848b6509d912b9a7 (diff)
downloadstrongswan-cdcfe777f4cec7906a28fd2ef57d24ec3290902f.tar.bz2
strongswan-cdcfe777f4cec7906a28fd2ef57d24ec3290902f.tar.xz
implementation of an CFG attribute framework, currently supporting virtual IPs
updated ipsec.conf sourceip parameter to support CIDR notatation to serve from a pool %poolname to query a separate (database?) pool
Diffstat (limited to 'src/starter/cmp.c')
-rw-r--r--src/starter/cmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/starter/cmp.c b/src/starter/cmp.c
index 03d98cbd7..610b08960 100644
--- a/src/starter/cmp.c
+++ b/src/starter/cmp.c
@@ -29,6 +29,7 @@
#define VARCMP(obj) if (c1->obj != c2->obj) return FALSE
#define ADDCMP(obj) if (!sameaddr(&c1->obj,&c2->obj)) return FALSE
#define SUBCMP(obj) if (!samesubnet(&c1->obj,&c2->obj)) return FALSE
+#define STRCMP(obj) if (strcmp(c1->obj,c2->obj)) return FALSE
static bool
starter_cmp_end(starter_end_t *c1, starter_end_t *c2)
@@ -45,12 +46,11 @@ starter_cmp_end(starter_end_t *c1, starter_end_t *c2)
ADDCMP(addr);
}
ADDCMP(nexthop);
- ADDCMP(srcip);
+ STRCMP(srcip);
SUBCMP(subnet);
VARCMP(has_client);
VARCMP(has_client_wildcard);
VARCMP(has_port_wildcard);
- VARCMP(has_srcip);
VARCMP(modecfg);
VARCMP(port);
VARCMP(protocol);