X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vnet%2Fvnet%2Fvxlan-gpe%2Fdecap.c;h=870871e7de603bba29cfbd65acf998c75ee01096;hb=e7a40e86b1f7f2325ebcff1d2506ef6a81536955;hp=aed5857d0b1de02296bfb19dff968ba176acea83;hpb=72a7ded3762ef54867fc8b35ec8082c406c84005;p=vpp.git diff --git a/vnet/vnet/vxlan-gpe/decap.c b/vnet/vnet/vxlan-gpe/decap.c index aed5857d0b1..870871e7de6 100644 --- a/vnet/vnet/vxlan-gpe/decap.c +++ b/vnet/vnet/vxlan-gpe/decap.c @@ -142,8 +142,8 @@ vxlan_gpe_input (vlib_main_t * vm, error0 = 0; error1 = 0; - next0 = (iuvn0->vxlan.protocol < VXLAN_GPE_INPUT_N_NEXT) ? iuvn0->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP; - next1 = (iuvn1->vxlan.protocol < VXLAN_GPE_INPUT_N_NEXT) ? iuvn1->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP; + next0 = (iuvn0->vxlan.protocol < node->n_next_nodes) ? iuvn0->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP; + next1 = (iuvn1->vxlan.protocol < node->n_next_nodes) ? iuvn1->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP; @@ -328,7 +328,7 @@ vxlan_gpe_input (vlib_main_t * vm, tunnel_index0 = ~0; error0 = 0; - next0 = (iuvn0->vxlan.protocol < VXLAN_GPE_INPUT_N_NEXT) ? iuvn0->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP; + next0 = (iuvn0->vxlan.protocol < node->n_next_nodes) ? iuvn0->vxlan.protocol : VXLAN_GPE_INPUT_NEXT_DROP; key0.local = iuvn0->ip4.dst_address.as_u32; key0.remote = iuvn0->ip4.src_address.as_u32;