diff options
author | 2021-06-22 12:24:50 +0800 | |
---|---|---|
committer | 2021-06-22 10:33:04 -0700 | |
commit | c69f114d09891adfa3e301a35d9e872b8b7b5a50 (patch) | |
tree | 0886e2a99c19f94e8dbc1f6b0810205dbc72d0bc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bonding: avoid adding slave device with IFF_MASTER flag (diff) | |
download | wireguard-linux-c69f114d09891adfa3e301a35d9e872b8b7b5a50.tar.xz wireguard-linux-c69f114d09891adfa3e301a35d9e872b8b7b5a50.zip |
net/ipv4: swap flow ports when validating source
When doing source address validation, the flowi4 struct used for
fib_lookup should be in the reverse direction to the given skb.
fl4_dport and fl4_sport returned by fib4_rules_early_flow_dissect
should thus be swapped.
Fixes: 5a847a6e1477 ("net/ipv4: Initialize proto and ports in flow struct")
Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions