aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorLin Zhang <[email protected]>2017-10-06 00:44:03 +0800
committerPablo Neira Ayuso <[email protected]>2017-10-09 13:08:39 +0200
commit49f817d793d1bcc11d721881aac037b996feef5c (patch)
treef1525ecf75e8f4e4d7c9ffca73f2b097cb4c424a /lib/netdev-notifier-error-inject.c
parente466af75c074e76107ae1cd5a2823e9c61894ffb (diff)
netfilter: SYNPROXY: skip non-tcp packet in {ipv4, ipv6}_synproxy_hook
In function {ipv4,ipv6}_synproxy_hook we expect a normal tcp packet, but the real server maybe reply an icmp error packet related to the exist tcp conntrack, so we will access wrong tcp data. Fix it by checking for the protocol field and only process tcp traffic. Signed-off-by: Lin Zhang <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions