]> git.ipfire.org Git - people/ms/suricata.git/commit
stream: initialize stream segment pool from mtu
authorVictor Julien <victor@inliniac.net>
Thu, 26 Jan 2017 17:05:11 +0000 (18:05 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 30 Jan 2017 08:04:15 +0000 (09:04 +0100)
commita0580d8805cfd74b8a216d9f8d3906ebe7e41cf0
treeb26d5435adacc99142bb88ca8f947bff39507fa1
parent1ba15d3721343a670436ea7363b050702bb2f043
stream: initialize stream segment pool from mtu

If segments section in the yaml is ommitted (default) or when the
pool size is set to 'from_mtu', the size of the pool will be MTU
minus 40. If the MTU couldn't be determined, it's assumed to be
1500, so the segment size for the bool will be 1460.
src/decode.h
src/stream-tcp-reassemble.c
suricata.yaml.in