diff options
author | Mohammed Hawari <mohammed@hawari.fr> | 2021-02-05 15:40:00 +0100 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-03-14 14:37:01 +0000 |
commit | 45723b8d305c7c6d034e16fcbf1904fd72dd6bb2 (patch) | |
tree | bb010ccd464efcfb90ccfabddded7b63b8223e6a /src/vnet/vxlan-gbp/vxlan_gbp.c | |
parent | 4e3f7b2869925b0812a58d04c4bf6371e6773630 (diff) |
ip: extend punt CLI for exception packets
Change-Id: I20e48a5ac8068eccb8d998346d35227c4802bb68
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Type: feature
Diffstat (limited to 'src/vnet/vxlan-gbp/vxlan_gbp.c')
-rw-r--r-- | src/vnet/vxlan-gbp/vxlan_gbp.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/vnet/vxlan-gbp/vxlan_gbp.c b/src/vnet/vxlan-gbp/vxlan_gbp.c index d1267cffc13..37cfd728121 100644 --- a/src/vnet/vxlan-gbp/vxlan_gbp.c +++ b/src/vnet/vxlan-gbp/vxlan_gbp.c @@ -14,6 +14,7 @@ */ #include <vnet/vxlan-gbp/vxlan_gbp.h> #include <vnet/ip/format.h> +#include <vnet/ip/punt.h> #include <vnet/fib/fib_entry.h> #include <vnet/fib/fib_table.h> #include <vnet/fib/fib_entry_track.h> @@ -1163,14 +1164,14 @@ vxlan_gbp_init (vlib_main_t * vm) punt_hdl = vlib_punt_client_register ("vxlan-gbp"); - vlib_punt_reason_alloc (punt_hdl, - "VXLAN-GBP-no-such-v4-tunnel", - NULL, NULL, - &vxm->punt_no_such_tunnel[FIB_PROTOCOL_IP4]); - vlib_punt_reason_alloc (punt_hdl, - "VXLAN-GBP-no-such-v6-tunnel", - NULL, NULL, - &vxm->punt_no_such_tunnel[FIB_PROTOCOL_IP6]); + vlib_punt_reason_alloc (punt_hdl, "VXLAN-GBP-no-such-v4-tunnel", NULL, NULL, + &vxm->punt_no_such_tunnel[FIB_PROTOCOL_IP4], + VNET_PUNT_REASON_F_IP4_PACKET, + format_vnet_punt_reason_flags); + vlib_punt_reason_alloc (punt_hdl, "VXLAN-GBP-no-such-v6-tunnel", NULL, NULL, + &vxm->punt_no_such_tunnel[FIB_PROTOCOL_IP6], + VNET_PUNT_REASON_F_IP6_PACKET, + format_vnet_punt_reason_flags); return (0); } |