]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: introduce rt_uses_gateway
authorJulian Anastasov <ja@ssi.bg>
Mon, 8 Oct 2012 11:41:18 +0000 (11:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2012 21:42:36 +0000 (17:42 -0400)
commit3de82aab5daa617368a4ba21170f4da5a093ac02
tree5d31e9d9c197129fcf26fd8ae9d54da770503a6c
parent97a3c66df31d992dbddf8a90e685a47db34d7a32
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>
include/net/route.h
net/ipv4/inet_connection_sock.c
net/ipv4/ip_forward.c
net/ipv4/ip_output.c
net/ipv4/route.c
net/ipv4/xfrm4_policy.c