diff options
author | Julian Anastasov <ja@ssi.bg> | 2012-10-08 13:41:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-08 23:42:36 +0200 |
commit | 155e8336c373d14d87a7f91e356d85ef4b93b8f9 (patch) | |
tree | 5d31e9d9c197129fcf26fd8ae9d54da770503a6c /net/ipv4/xfrm4_policy.c | |
parent | ipv4: make sure nh_pcpu_rth_output is always allocated (diff) | |
download | linux-155e8336c373d14d87a7f91e356d85ef4b93b8f9.tar.xz linux-155e8336c373d14d87a7f91e356d85ef4b93b8f9.zip |
ipv4: introduce rt_uses_gateway
Add new flag to remember when route is via gateway.
We will use it to allow rt_gateway to contain address of
directly connected host for the cases when DST_NOCACHE is
used or when the NH exception caches per-destination route
without DST_NOCACHE flag, i.e. when routes are not used for
other destinations. By this way we force the neighbour
resolving to work with the routed destination but we
can use different address in the packet, feature needed
for IPVS-DR where original packet for virtual IP is routed
via route to real IP.
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')
-rw-r--r-- | net/ipv4/xfrm4_policy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c index 681ea2f413e2..05c5ab8d983c 100644 --- a/net/ipv4/xfrm4_policy.c +++ b/net/ipv4/xfrm4_policy.c @@ -91,6 +91,7 @@ static int xfrm4_fill_dst(struct xfrm_dst *xdst, struct net_device *dev, RTCF_LOCAL); xdst->u.rt.rt_type = rt->rt_type; xdst->u.rt.rt_gateway = rt->rt_gateway; + xdst->u.rt.rt_uses_gateway = rt->rt_uses_gateway; xdst->u.rt.rt_pmtu = rt->rt_pmtu; INIT_LIST_HEAD(&xdst->u.rt.rt_uncached); |