summaryrefslogtreecommitdiffstats
path: root/nsh-plugin/nsh
diff options
context:
space:
mode:
Diffstat (limited to 'nsh-plugin/nsh')
-rw-r--r--nsh-plugin/nsh/nsh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nsh-plugin/nsh/nsh.c b/nsh-plugin/nsh/nsh.c
index bfa75fd..f2d4685 100644
--- a/nsh-plugin/nsh/nsh.c
+++ b/nsh-plugin/nsh/nsh.c
@@ -1654,7 +1654,7 @@ nsh_input_map (vlib_main_t * vm,
}
else if(node_type == NSH_CLASSIFIER_TYPE)
{
- nsp_nsi0 = vnet_buffer(b0)->l2_classify.opaque_index;
+ nsp_nsi0 = clib_host_to_net_u32(vnet_buffer(b0)->l2_classify.opaque_index);
}
else
{
@@ -1686,7 +1686,7 @@ nsh_input_map (vlib_main_t * vm,
}
else if(node_type == NSH_CLASSIFIER_TYPE)
{
- nsp_nsi1 = vnet_buffer(b1)->l2_classify.opaque_index;
+ nsp_nsi1 = clib_host_to_net_u32(vnet_buffer(b1)->l2_classify.opaque_index);
}
else
{
@@ -1959,7 +1959,7 @@ nsh_input_map (vlib_main_t * vm,
}
else if(node_type == NSH_CLASSIFIER_TYPE)
{
- nsp_nsi0 = vnet_buffer(b0)->l2_classify.opaque_index;
+ nsp_nsi0 = clib_host_to_net_u32(vnet_buffer(b0)->l2_classify.opaque_index);
}
else if(node_type == NSH_AWARE_VNF_PROXY_TYPE)
{