]> git.ipfire.org Git - thirdparty/suricata.git/commit
defrag: use IP ID in hash
authorEric Leblond <eric@regit.org>
Fri, 27 Jul 2012 09:22:03 +0000 (11:22 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 6 Aug 2012 14:11:19 +0000 (16:11 +0200)
commit4df509f87a4b077e3a5d53080e2412dc066ed8d6
tree6749b6dd8004c5f7fcecb5564209d21333cc4c6c
parenta5587fec2ebdd3cd75a2b0e7c8fe7f06a8f0daea
defrag: use IP ID in hash

This patch fixes the collision issue observed on an intensive network
trafic. When there is fragmentation it is the case for all data
exchanged between two hosts. Thus using a hash func only involving
IP addresses (and protocol) was leading to a collision for all
exchanges between the hosts. At a larger scale, it was resulting in
a packet loss. By using the IP ID instead of the protocol family, we
introduce a real difference between the trackers.
src/defrag.c