]> git.ipfire.org Git - thirdparty/suricata.git/commit
defrag: get/set memcap value
authorGiuseppe Longo <glongo@stamus-networks.com>
Mon, 20 Nov 2017 14:09:17 +0000 (15:09 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 19 Dec 2017 10:18:57 +0000 (11:18 +0100)
commit0839d0651433d55f3d18facbc16d3471e28895c8
treefcf45df0febee17bd091938974b455c179051ff8
parent7addc24566919feea6bc47eef8ae7ee7bdb963ab
defrag: get/set memcap value

This adds new functions that will be called
through unix-socket and permit to update
and show memcap value.

The memcap value needs to be handled in a
thread safe way, so for this reason it is
declared as atomic var.

Another function is added to gets
the memuse value since it will be shown
through unix-socket.
src/defrag-hash.c
src/defrag-hash.h