]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Loosen source address check on IPv4 output
authorJulian Anastasov <ja@ssi.bg>
Wed, 1 Oct 2008 14:28:28 +0000 (07:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Oct 2008 14:28:28 +0000 (07:28 -0700)
commite0fd7fb67f8c5e1287424174340b768b14b4aa8c
treeceea5f8de75e70b13641f340e3b13a125a52567a
parent1d364f78fb75f00f4605de5adcd5f6bb8a4dde83
ipv4: Loosen source address check on IPv4 output

ip_route_output() contains a check to make sure that no flows with
non-local source IP addresses are routed. This obviously makes using
such addresses impossible.

This patch introduces a flowi flag which makes omitting this check
possible. The new flag provides a way of handling transparent and
non-transparent connections differently.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: KOVACS Krisztian <hidden@sch.bme.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow.h
net/ipv4/route.c