diff options
author | Sivaprasad Tummala <Sivaprasad.Tummala@intel.com> | 2022-01-22 03:09:18 +0530 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-01-30 15:20:38 +0000 |
commit | c454e8993d18670f76b03dca780213860c2e19a2 (patch) | |
tree | 22d84f0047a8d746fabd58709e4553960644e84c /src/plugins/snort/snort.h | |
parent | 9d0c638b0fa28b9aebd9e3c0c0bdf98361d50a50 (diff) |
snort: feature support on interface output
support snort plugin on interface output via ip4-output fa
Type: feature
Signed-off-by: Sivaprasad Tummala <Sivaprasad.Tummala@intel.com>
Change-Id: I2d5e7d0719c03f88806b12debfe596675dbd66c1
Diffstat (limited to 'src/plugins/snort/snort.h')
-rw-r--r-- | src/plugins/snort/snort.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/snort/snort.h b/src/plugins/snort/snort.h index d069fa01661..79299aa6d91 100644 --- a/src/plugins/snort/snort.h +++ b/src/plugins/snort/snort.h @@ -90,6 +90,13 @@ typedef enum SNORT_ENQ_N_NEXT_NODES, } snort_enq_next_t; +typedef enum +{ + SNORT_INPUT = 1, + SNORT_OUTPUT = 2, + SNORT_INOUT = 3 +} snort_attach_dir_t; + #define SNORT_ENQ_NEXT_NODES \ { \ [SNORT_ENQ_NEXT_DROP] = "error-drop", \ @@ -100,7 +107,8 @@ clib_error_t *snort_instance_create (vlib_main_t *vm, char *name, u8 log2_queue_sz, u8 drop_on_disconnect); clib_error_t *snort_interface_enable_disable (vlib_main_t *vm, char *instance_name, - u32 sw_if_index, int is_enable); + u32 sw_if_index, int is_enable, + snort_attach_dir_t dir); clib_error_t *snort_set_node_mode (vlib_main_t *vm, u32 mode); always_inline void |