From 45723b8d305c7c6d034e16fcbf1904fd72dd6bb2 Mon Sep 17 00:00:00 2001 From: Mohammed Hawari Date: Fri, 5 Feb 2021 15:40:00 +0100 Subject: ip: extend punt CLI for exception packets Change-Id: I20e48a5ac8068eccb8d998346d35227c4802bb68 Signed-off-by: Mohammed Hawari Type: feature --- src/plugins/unittest/punt_test.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/plugins/unittest/punt_test.c') 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 #include #include +#include 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", -- cgit 1.2.3-korg