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
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user