aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2017-07-07 13:07:17 +0200
committerPablo Neira Ayuso <[email protected]>2017-07-17 17:02:19 +0200
commit97772bcd56efa21d9d8976db6f205574ea602f51 (patch)
tree6201ab9cf05ef4e22928dd0270dcf69ccf3b6abb /net/lapb/lapb_iface.c
parentcf56c2f892a8a1870a8358114ad896772da7543a (diff)
netfilter: nat: fix src map lookup
When doing initial conversion to rhashtable I replaced the bucket walk with a single rhashtable_lookup_fast(). When moving to rhlist I failed to properly walk the list of identical tuples, but that is what is needed for this to work correctly. The table contains the original tuples, so the reply tuples are all distinct. We currently decide that mapping is (not) in range only based on the first entry, but in case its not we need to try the reply tuple of the next entry until we either find an in-range mapping or we checked all the entries. This bug makes nat core attempt collision resolution while it might be able to use the mapping as-is. Fixes: 870190a9ec90 ("netfilter: nat: convert nat bysrc hash to rhashtable") Reported-by: Jaco Kroon <[email protected]> Tested-by: Jaco Kroon <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions