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 __RUNMODE_UNIX_SOCKET_H__
24 #define __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 #ifdef BUILD_UNIX_SOCKET
34 TmEcode UnixSocketRegisterTenantHandler(json_t *cmd, json_t* answer, void *data);
35 TmEcode UnixSocketUnregisterTenantHandler(json_t *cmd, json_t* answer, void *data);
36 TmEcode UnixSocketRegisterTenant(json_t *cmd, json_t* answer, void *data);
37 TmEcode UnixSocketReloadTenant(json_t *cmd, json_t* answer, void *data);
38 TmEcode UnixSocketUnregisterTenant(json_t *cmd, json_t* answer, void *data);
39 TmEcode UnixSocketHostbitAdd(json_t *cmd, json_t* answer, void *data);
40 TmEcode UnixSocketHostbitRemove(json_t *cmd, json_t* answer, void *data);
41 TmEcode UnixSocketHostbitList(json_t *cmd, json_t* answer, void *data);
42 TmEcode UnixSocketSetMemcap(json_t *cmd, json_t* answer, void *data);
43 TmEcode UnixSocketShowMemcap(json_t *cmd, json_t *answer, void *data);
44 TmEcode UnixSocketShowAllMemcap(json_t *cmd, json_t *answer, void *data);
45 #endif
46 
47 #endif /* __RUNMODE_UNIX_SOCKET_H__ */
void RunModeUnixSocketRegister(void)
const char * RunModeUnixSocketGetDefaultMode(void)
int RunModeUnixSocketIsActive(void)
TmEcode UnixSocketPcapFile(TmEcode tm, struct timespec *last_processed)