diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-06-05 19:11:11 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-06-06 08:04:10 +0000 |
commit | be16beb9e47fe861fa77eb9a974abed1d6638009 (patch) | |
tree | a40d119b58e7dd24ff8e0d4b46dce22d1106ea51 /src/plugins/gbp | |
parent | e56a786b7336428075c6db552655f9e7596a3af9 (diff) |
gbp: do not classify unknown packet as EP packets
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 <bganne@cisco.com>
Diffstat (limited to 'src/plugins/gbp')
-rw-r--r-- | src/plugins/gbp/gbp_classify_node.c | 4 |
1 files changed, 4 insertions, 0 deletions
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], |