diff options
author | Damjan Marion <dmarion@me.com> | 2023-01-30 11:48:38 +0100 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2023-02-06 10:17:40 +0000 |
commit | 085757bb4930511928daa97f972cdca021e7a813 (patch) | |
tree | 5edf076e28156d9834fa37029028f2f5c5f568b9 /src/plugins/snort | |
parent | 0df06b6e95b6a3261c8e9c261c7a4a661d6ea25a (diff) |
vppinfra: refactor clib_socket_init, add linux netns support
Type: improvement
Change-Id: Ida2d044bccf0bc8914b4fe7d383f827400fa6a52
Signed-off-by: Damjan Marion <dmarion@me.com>
Diffstat (limited to 'src/plugins/snort')
-rw-r--r-- | src/plugins/snort/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/snort/main.c b/src/plugins/snort/main.c index 39c13a8f237..2430fcdc5c2 100644 --- a/src/plugins/snort/main.c +++ b/src/plugins/snort/main.c @@ -259,8 +259,10 @@ snort_listener_init (vlib_main_t *vm) s = clib_mem_alloc (sizeof (clib_socket_t)); clib_memset (s, 0, sizeof (clib_socket_t)); s->config = (char *) sm->socket_name; - s->flags = CLIB_SOCKET_F_IS_SERVER | CLIB_SOCKET_F_ALLOW_GROUP_WRITE | - CLIB_SOCKET_F_SEQPACKET | CLIB_SOCKET_F_PASSCRED; + s->is_server = 1; + s->allow_group_write = 1; + s->is_seqpacket = 1; + s->passcred = 1; if ((err = clib_socket_init (s))) { |