support of dynamic/128 and %any6

This commit is contained in:
Andreas Steffen
2009-02-05 22:13:48 +00:00
parent 49971c4ce5
commit c59825fbfc
12 changed files with 35 additions and 25 deletions
@@ -691,7 +691,10 @@ static void add_ts(private_stroke_config_t *this,
if (end->tohost)
{
bool is_ipv6 = strchr(end->address, ':') || streq(end->address, "%any6");
ts = traffic_selector_create_dynamic(end->protocol,
is_ipv6? TS_IPV6_ADDR_RANGE:TS_IPV4_ADDR_RANGE,
end->port ? end->port : 0, end->port ? end->port : 65535);
child_cfg->add_traffic_selector(child_cfg, local, ts);
}