suricata
runmode-unix-socket.h
Go to the documentation of this file.
1 /* Copyright (C) 2012 Open Information Security Foundation
2  *
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
5  * Software Foundation.
6  *
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.
11  *
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
15  * 02110-1301, USA.
16  */
17 
18 /** \file
19  *
20  * \author Eric Leblond <eric@regit.org>
21  */
22 
23 #ifndef SURICATA_RUNMODE_UNIX_SOCKET_H
24 #define SURICATA_RUNMODE_UNIX_SOCKET_H
25 
26 void RunModeUnixSocketRegister(void);
27 const char *RunModeUnixSocketGetDefaultMode(void);
28 
30 
31 TmEcode UnixSocketPcapFile(TmEcode tm, struct timespec *last_processed);
32 
33 float MemcapsGetPressure(void);
34 
35 #ifdef BUILD_UNIX_SOCKET
36 TmEcode UnixSocketDatasetAdd(json_t *cmd, json_t* answer, void *data);
37 TmEcode UnixSocketDatasetRemove(json_t *cmd, json_t* answer, void *data);
38 TmEcode UnixSocketDatasetDump(json_t *cmd, json_t *answer, void *data);
39 TmEcode UnixSocketDatasetClear(json_t *cmd, json_t *answer, void *data);
40 TmEcode UnixSocketDatasetLookup(json_t *cmd, json_t *answer, void *data);
41 TmEcode UnixSocketRegisterTenantHandler(json_t *cmd, json_t* answer, void *data);
42 TmEcode UnixSocketUnregisterTenantHandler(json_t *cmd, json_t* answer, void *data);
43 TmEcode UnixSocketRegisterTenant(json_t *cmd, json_t* answer, void *data);
44 TmEcode UnixSocketReloadTenant(json_t *cmd, json_t* answer, void *data);
45 TmEcode UnixSocketReloadTenants(json_t *cmd, json_t *answer, void *data);
46 TmEcode UnixSocketUnregisterTenant(json_t *cmd, json_t* answer, void *data);
47 TmEcode UnixSocketHostbitAdd(json_t *cmd, json_t* answer, void *data);
48 TmEcode UnixSocketHostbitRemove(json_t *cmd, json_t* answer, void *data);
49 TmEcode UnixSocketHostbitList(json_t *cmd, json_t* answer, void *data);
50 TmEcode UnixSocketSetMemcap(json_t *cmd, json_t* answer, void *data);
51 TmEcode UnixSocketShowMemcap(json_t *cmd, json_t *answer, void *data);
52 TmEcode UnixSocketShowAllMemcap(json_t *cmd, json_t *answer, void *data);
53 TmEcode UnixSocketGetFlowStatsById(json_t *cmd, json_t *answer, void *data);
54 #endif
55 
56 #endif /* SURICATA_RUNMODE_UNIX_SOCKET_H */
MemcapsGetPressure
float MemcapsGetPressure(void)
Definition: runmode-unix-socket.c:110
RunModeUnixSocketRegister
void RunModeUnixSocketRegister(void)
Definition: runmode-unix-socket.c:557
RunModeUnixSocketGetDefaultMode
const char * RunModeUnixSocketGetDefaultMode(void)
Definition: runmode-unix-socket.c:86
TmEcode
TmEcode
Definition: tm-threads-common.h:79
RunModeUnixSocketIsActive
int RunModeUnixSocketIsActive(void)
Definition: runmode-unix-socket.c:1717
UnixSocketPcapFile
TmEcode UnixSocketPcapFile(TmEcode tm, struct timespec *last_processed)
Definition: runmode-unix-socket.c:568