summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorMohammed Hawari <mohammed@hawari.fr>2021-02-05 15:40:00 +0100
committerNeale Ranns <neale@graphiant.com>2021-03-14 14:37:01 +0000
commit45723b8d305c7c6d034e16fcbf1904fd72dd6bb2 (patch)
treebb010ccd464efcfb90ccfabddded7b63b8223e6a /src/plugins
parent4e3f7b2869925b0812a58d04c4bf6371e6773630 (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/plugins')
-rw-r--r--src/plugins/unittest/punt_test.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/plugins/unittest/punt_test.c b/src/plugins/unittest/punt_test.c
index 431624fbea0..0c4622283e0 100644
--- a/src/plugins/unittest/punt_test.c
+++ b/src/plugins/unittest/punt_test.c
@@ -18,6 +18,7 @@
#include <vnet/ethernet/ethernet.h>
#include <vnet/adj/adj.h>
#include <vnet/ip/ip.h>
+#include <vnet/ip/punt.h>
typedef enum punt_next_t_
{
@@ -316,12 +317,12 @@ punt_test (vlib_main_t * vm,
*/
punt_hdl = vlib_punt_client_register ("test");
- rc =
- vlib_punt_reason_alloc (punt_hdl, "reason-v4",
- NULL, NULL, &punt_reason_v4);
- rc |=
- vlib_punt_reason_alloc (punt_hdl, "reason-v6",
- NULL, NULL, &punt_reason_v6);
+ rc = vlib_punt_reason_alloc (
+ punt_hdl, "reason-v4", NULL, NULL, &punt_reason_v4,
+ VNET_PUNT_REASON_F_IP4_PACKET, format_vnet_punt_reason_flags);
+ rc |= vlib_punt_reason_alloc (
+ punt_hdl, "reason-v6", NULL, NULL, &punt_reason_v6,
+ VNET_PUNT_REASON_F_IP6_PACKET, format_vnet_punt_reason_flags);
ASSERT (!rc);
vnet_feature_enable_disable ("ip4-unicast",