]> git.ipfire.org Git - thirdparty/suricata.git/commit
flow: get/set memcap value
authorGiuseppe Longo <glongo@stamus-networks.com>
Mon, 20 Nov 2017 14:02:32 +0000 (15:02 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 19 Dec 2017 10:18:57 +0000 (11:18 +0100)
commit6fdad7d9e58bb07f085c262c998d2cc3f741c3a0
treec5d5341acc7b4e24b21bd4a611f88586eb15a6e3
parent80bf728bfe80eec5b9df5c47b14daba318952fc6
flow: 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.

FlowGetMemuse() function is made as public
because the memuse value will be shown
through unix-socket.
src/flow-manager.c
src/flow-util.h
src/flow.c
src/flow.h