strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3eb9630
)
using local address as gateway in installed routes
author
Martin Willi
<martin@strongswan.org>
Tue, 22 May 2007 07:47:16 +0000
(07:47 -0000)
committer
Martin Willi
<martin@strongswan.org>
Tue, 22 May 2007 07:47:16 +0000
(07:47 -0000)
src/charon/kernel/kernel_interface.c
patch
|
blob
|
history
diff --git
a/src/charon/kernel/kernel_interface.c
b/src/charon/kernel/kernel_interface.c
index
4aabded
..
42886b2
100644
(file)
--- a/
src/charon/kernel/kernel_interface.c
+++ b/
src/charon/kernel/kernel_interface.c
@@
-1697,8
+1697,7
@@
static status_t add_policy(private_kernel_interface_t *this,
policy->route = malloc_thing(route_entry_t);
if (get_address_by_ts(this, dst_ts, &policy->route->src_ip) == SUCCESS)
{
policy->route = malloc_thing(route_entry_t);
if (get_address_by_ts(this, dst_ts, &policy->route->src_ip) == SUCCESS)
{
- policy->route->gateway = (direction == POLICY_IN) ?
- dst->clone(dst) : src->clone(src);
+ policy->route->gateway = dst->clone(dst);
policy->route->if_index = get_interface_index(this, dst);
policy->route->dst_net = chunk_alloc(policy->sel.family == AF_INET ? 4 : 16);
memcpy(policy->route->dst_net.ptr, &policy->sel.saddr, policy->route->dst_net.len);
policy->route->if_index = get_interface_index(this, dst);
policy->route->dst_net = chunk_alloc(policy->sel.family == AF_INET ? 4 : 16);
memcpy(policy->route->dst_net.ptr, &policy->sel.saddr, policy->route->dst_net.len);