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
27const char *RunModeUnixSocketGetDefaultMode(void);
28
30
31TmEcode UnixSocketPcapFile(TmEcode tm, struct timespec *last_processed);
32
33float MemcapsGetPressure(void);
34
35#ifdef BUILD_UNIX_SOCKET
36TmEcode UnixSocketDatasetAdd(json_t *cmd, json_t* answer, void *data);
37TmEcode UnixSocketDatasetRemove(json_t *cmd, json_t* answer, void *data);
38TmEcode UnixSocketDatasetDump(json_t *cmd, json_t *answer, void *data);
39TmEcode UnixSocketDatasetClear(json_t *cmd, json_t *answer, void *data);
40TmEcode UnixSocketDatasetLookup(json_t *cmd, json_t *answer, void *data);
41TmEcode UnixSocketDatajsonAdd(json_t *cmd, json_t *answer, void *data);
42TmEcode UnixSocketRegisterTenantHandler(json_t *cmd, json_t* answer, void *data);
43TmEcode UnixSocketUnregisterTenantHandler(json_t *cmd, json_t* answer, void *data);
44TmEcode UnixSocketRegisterTenant(json_t *cmd, json_t* answer, void *data);
45TmEcode UnixSocketReloadTenant(json_t *cmd, json_t* answer, void *data);
46TmEcode UnixSocketReloadTenants(json_t *cmd, json_t *answer, void *data);
47TmEcode UnixSocketUnregisterTenant(json_t *cmd, json_t* answer, void *data);
48TmEcode UnixSocketHostbitAdd(json_t *cmd, json_t* answer, void *data);
49TmEcode UnixSocketHostbitRemove(json_t *cmd, json_t* answer, void *data);
50TmEcode UnixSocketHostbitList(json_t *cmd, json_t* answer, void *data);
51TmEcode UnixSocketSetMemcap(json_t *cmd, json_t* answer, void *data);
52TmEcode UnixSocketShowMemcap(json_t *cmd, json_t *answer, void *data);
53TmEcode UnixSocketShowAllMemcap(json_t *cmd, json_t *answer, void *data);
54TmEcode UnixSocketGetFlowStatsById(json_t *cmd, json_t *answer, void *data);
55#endif
56
57#endif /* SURICATA_RUNMODE_UNIX_SOCKET_H */
TmEcode UnixSocketPcapFile(TmEcode tm, struct timespec *last_processed)
void RunModeUnixSocketRegister(void)
float MemcapsGetPressure(void)
int RunModeUnixSocketIsActive(void)
const char * RunModeUnixSocketGetDefaultMode(void)