summaryrefslogtreecommitdiffstats
path: root/src/plugins/nsh/nsh.h
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-02-26 02:59:07 -0800
committerDamjan Marion <dmarion@me.com>2019-02-26 20:18:46 +0000
commit4ba19b8a75c40cecd3818af2fd657fe5bf1b2f41 (patch)
treed79c028a1069612597178aa84ce9e112b9ea28cd /src/plugins/nsh/nsh.h
parent849cbe225ea9c0358e3f2789c89d4b84d0f7b367 (diff)
nsh: migrate old MUTIARCH macros to VLIB_NODE_FN
Change-Id: Iafe8b3a38f2a7d7571e60db91608d8130bb07cb3 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/nsh/nsh.h')
-rw-r--r--src/plugins/nsh/nsh.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/plugins/nsh/nsh.h b/src/plugins/nsh/nsh.h
index 1b14567078b..46dd879dce1 100644
--- a/src/plugins/nsh/nsh.h
+++ b/src/plugins/nsh/nsh.h
@@ -159,13 +159,16 @@ typedef struct {
u8 input_feature_arc_index;
u8 output_feature_arc_index;
+ u32 nsh_input_node_index;
+ u32 nsh_proxy_node_index;
+ u32 nsh_classifier_node_index;
+
/* convenience */
vlib_main_t * vlib_main;
vnet_main_t * vnet_main;
} nsh_main_t;
-nsh_main_t nsh_main;
-
+extern nsh_main_t nsh_main;
extern vlib_node_registration_t nsh_aware_vnf_proxy_node;
extern vlib_node_registration_t nsh_eth_output_node;
@@ -268,4 +271,25 @@ typedef struct _nsh_main_dummy
u8 output_feature_arc_index;
} nsh_main_dummy_t;
+int
+nsh_add_del_map (nsh_add_del_map_args_t * a, u32 * map_indexp);
+
+int
+nsh_add_del_proxy_session (nsh_add_del_map_args_t * a);
+
+nsh_option_map_t *
+nsh_md2_lookup_option (u16 class, u8 type);
+
+int
+nsh_add_del_entry (nsh_add_del_entry_args_t * a, u32 * entry_indexp);
+
+u8 *
+format_nsh_node_map_trace (u8 * s, va_list * args);
+
+u8 *
+format_nsh_header (u8 * s, va_list * args);
+
+clib_error_t *
+nsh_api_init (vlib_main_t * vm, nsh_main_t * nm);
+
#endif /* included_nsh_h */