mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
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>
This commit is contained in:
parent
4edd87ad5c
commit
a210d01ae3
2 changed files with 15 additions and 7 deletions
|
@ -47,6 +47,8 @@ struct flowi {
|
|||
#define fl4_scope nl_u.ip4_u.scope
|
||||
|
||||
__u8 proto;
|
||||
__u8 flags;
|
||||
#define FLOWI_FLAG_ANYSRC 0x01
|
||||
union {
|
||||
struct {
|
||||
__be16 sport;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue