]>
git.ipfire.org Git - people/ms/suricata.git/blob - src/flow-spare-pool.h
1 /* Copyright (C) 2007-2020 Open Information Security Foundation
3 * You can copy, redistribute or modify this Program under the terms of
4 * the GNU General Public License version 2 as published by the Free
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * version 2 along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 * \author Victor Julien <victor@inliniac.net>
24 #ifndef __FLOW_SPARE_POOL_H__
25 #define __FLOW_SPARE_POOL_H__
27 #include "suricata-common.h"
30 void FlowSparePoolInit(void);
31 void FlowSparePoolDestroy(void);
32 void FlowSparePoolUpdate(uint32_t size
);
34 uint32_t FlowSpareGetPoolSize(void);
36 FlowQueuePrivate
FlowSpareGetFromPool(void);
38 void FlowSparePoolReturnFlow(Flow
*f
);
39 void FlowSparePoolReturnFlows(FlowQueuePrivate
*fqp
);
41 #endif /* __FLOW_SPARE_POOL_H__ */