]> git.ipfire.org Git - thirdparty/suricata.git/commit
dns: add memcap checking 787/head
authorVictor Julien <victor@inliniac.net>
Tue, 21 Jan 2014 11:01:07 +0000 (12:01 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 21 Jan 2014 11:01:07 +0000 (12:01 +0100)
commitb844d4315f95811e706cbe326d40af2b92d5a447
treecd4fe99a30f97d53d9b90ebd407498dd56b7f8a9
parent850fac84d679e0c2006a646f63e74ae36de3d41f
dns: add memcap checking

Add memuse tracking and memcap checking to the DNS parsers. Memuse
is tracked globally and per flow (state).

Memcaps are also checked per flow and globally before memory allocs
are done.
src/app-layer-dns-common.c
src/app-layer-dns-common.h
src/app-layer-dns-tcp.c