diff options
author | Vengada <venggovi@cisco.com> | 2017-01-27 01:57:46 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-01-27 12:43:08 +0000 |
commit | 6a0b7e3970f3f4c729112a809665cc2b6a074037 (patch) | |
tree | 92b438e5ca3eaedc3ec5bfd0bb175e9c08193d4e /src/plugins/ioam/lib-vxlan-gpe/ioam_decap.c | |
parent | 19359429304030728c14bc7296024301867f1e81 (diff) |
Cleanup some obfuscated code in next node handling.
The values of next node can be simply assigned by dereferencing the pointer instead of obfuscating the dereference.
Change-Id: I1f4a3d51b768960699010591410695473728d3a2
Signed-off-by: Vengada <venggovi@cisco.com>
Diffstat (limited to 'src/plugins/ioam/lib-vxlan-gpe/ioam_decap.c')
-rw-r--r-- | src/plugins/ioam/lib-vxlan-gpe/ioam_decap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/ioam/lib-vxlan-gpe/ioam_decap.c b/src/plugins/ioam/lib-vxlan-gpe/ioam_decap.c index a0a76a8dce1..87e57d3605e 100644 --- a/src/plugins/ioam/lib-vxlan-gpe/ioam_decap.c +++ b/src/plugins/ioam/lib-vxlan-gpe/ioam_decap.c @@ -51,11 +51,11 @@ vxlan_gpe_decap_ioam_v4_two_inline (vlib_main_t * vm, { vxlan_gpe_ioam_main_t *hm = &vxlan_gpe_ioam_main; - next0[0] = next1[0] = hm->decap_v4_next_override; - vxlan_gpe_encap_decap_ioam_v4_one_inline (vm, node, b0, &next0[0], + *next0 = *next1 = hm->decap_v4_next_override; + vxlan_gpe_encap_decap_ioam_v4_one_inline (vm, node, b0, next0, VXLAN_GPE_DECAP_IOAM_V4_NEXT_DROP, 0 /* use_adj */ ); - vxlan_gpe_encap_decap_ioam_v4_one_inline (vm, node, b1, &next1[0], + vxlan_gpe_encap_decap_ioam_v4_one_inline (vm, node, b1, next1, VXLAN_GPE_DECAP_IOAM_V4_NEXT_DROP, 0 /* use_adj */ ); } |