diff options
Diffstat (limited to 'nsh-plugin/nsh/nsh.c')
-rw-r--r-- | nsh-plugin/nsh/nsh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c index 5b260e0..9353378 100644 --- a/nsh-plugin/nsh/nsh.c +++ b/nsh-plugin/nsh/nsh.c @@ -1472,6 +1472,7 @@ clib_error_t *nsh_init (vlib_main_t *vm) nsh_main_t *nm = &nsh_main; clib_error_t * error = 0; u8 * name; + uword next_node; /* Init the main structures from VPP */ nm->vlib_main = vm; @@ -1500,8 +1501,9 @@ clib_error_t *nsh_init (vlib_main_t *vm) /* Add dispositions to nodes that feed nsh-input */ //alagalah - validate we don't really need to use the node value - vlib_node_add_next (vm, vxlan4_gpe_input_node.index, nsh_input_node.index); + next_node = vlib_node_add_next (vm, vxlan4_gpe_input_node.index, nsh_input_node.index); vlib_node_add_next (vm, vxlan4_gpe_input_node.index, nsh_proxy_node.index); + vxlan_gpe_register_decap_protocol (VXLAN_GPE_PROTOCOL_NSH, next_node); vlib_node_add_next (vm, vxlan6_gpe_input_node.index, nsh_input_node.index); vlib_node_add_next (vm, vxlan6_gpe_input_node.index, nsh_proxy_node.index); |