]> git.ipfire.org Git - thirdparty/xtables-addons.git/commit
xt_psd: consider protocol when searching port list
authorFlorian Westphal <fw@strlen.de>
Fri, 1 Jun 2012 12:20:42 +0000 (14:20 +0200)
committerJan Engelhardt <jengelh@inai.de>
Sun, 16 Sep 2012 22:02:45 +0000 (00:02 +0200)
commit12d0a8702cf8834c0feef1ee239741d40d680716
treeb102bb82dfcb74499417442e66aac75c66c52871
parent35ce1adf5ee4e8efd91d11b0dd107d51610b82cc
xt_psd: consider protocol when searching port list

If we saw a TCP packet on port X, and we receive a UDP packet from the
same host to port X, we counted this as "port X", and did not see this
as a new packet.

Change compare to also consider protocol number and move it to a helper
to de-bloat the overlay large match function.

This change makes psd more aggressive with mixed TCP/UDP traffic.
extensions/xt_psd.c