From be16beb9e47fe861fa77eb9a974abed1d6638009 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Ganne?= Date: Wed, 5 Jun 2019 19:11:11 +0200 Subject: [PATCH] gbp: do not classify unknown packet as EP packets MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If we fail to classify the packet based on LPM we must not classify it based on the EP sclass. Change-Id: Ie234e0c87bd44976c3c57c818359c93f7d99ab84 Signed-off-by: Benoît Ganne --- src/plugins/gbp/gbp_classify_node.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/gbp/gbp_classify_node.c b/src/plugins/gbp/gbp_classify_node.c index 1179076a4c7..f7124be84dc 100644 --- a/src/plugins/gbp/gbp_classify_node.c +++ b/src/plugins/gbp/gbp_classify_node.c @@ -481,6 +481,10 @@ gbp_lpm_classify_inline (vlib_main_t * vm, { ge0 = gbp_endpoint_find_ip6 (ip6_0, fib_index0); } + else + { + ge0 = NULL; + } next0 = vnet_l2_feature_next (b0, gscm->l2_input_feat_next[GBP_SRC_CLASSIFY_LPM], -- 2.16.6