disabling routing for IPv6, does not work correctly
authorMartin Willi <martin@strongswan.org>
Thu, 8 Mar 2007 20:17:34 +0000 (20:17 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 8 Mar 2007 20:17:34 +0000 (20:17 -0000)
src/charon/threads/kernel_interface.c

index 4f2230b..a2a4265 100644 (file)
@@ -1671,7 +1671,8 @@ static status_t add_policy(private_kernel_interface_t *this,
                return FAILED;
        }
        
-       if (direction == POLICY_FWD && mode != MODE_TRANSPORT)
+       if (direction == POLICY_FWD && mode != MODE_TRANSPORT &&
+               src->get_family(src) != AF_INET6)
        {
                policy->route = malloc_thing(route_entry_t);
                if (get_address_by_ts(this, dst_ts, &policy->route->src_ip) == SUCCESS)