diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/lisp-gpe/decap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/lisp-gpe/decap.c b/src/vnet/lisp-gpe/decap.c index 9c5234e7182..50bfa4938db 100644 --- a/src/vnet/lisp-gpe/decap.c +++ b/src/vnet/lisp-gpe/decap.c @@ -68,7 +68,7 @@ next_protocol_to_next_index (lisp_gpe_header_t * lgh, u8 * next_header) if (PREDICT_TRUE ((lgh->flags & LISP_GPE_FLAGS_P) || GPE_ENCAP_VXLAN == lgm->encap_mode)) { - if (PREDICT_FALSE (lgh->next_protocol > LISP_GPE_NEXT_PROTOS)) + if (PREDICT_FALSE (lgh->next_protocol >= LISP_GPE_NEXT_PROTOS)) return LISP_GPE_INPUT_NEXT_DROP; return next_proto_to_next_index[lgh->next_protocol]; |