summaryrefslogtreecommitdiffstats
path: root/src/vnet/misc.c
diff options
context:
space:
mode:
authorMaxime Peim <mpeim@cisco.com>2023-07-03 17:45:51 +0200
committerMohammed HAWARI <momohawari@gmail.com>2023-07-25 10:06:16 +0000
commit3f40755749b07e5a936ad6d15622e371e7e5c25e (patch)
treecb5082a978b29c3c79c8d6d802b935ff23d727c7 /src/vnet/misc.c
parent4ab1aa31451c0db5deb9c726e82de241da126107 (diff)
classify: add bpf support to pcap classifier
Type: feature Change-Id: I28fb38e49c89f4c4d4cc58c1a5c0aa8502678472 Signed-off-by: Maxime Peim <mpeim@cisco.com>
Diffstat (limited to 'src/vnet/misc.c')
-rw-r--r--src/vnet/misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/misc.c b/src/vnet/misc.c
index 18d4651cff3..d1dcd6ecb23 100644
--- a/src/vnet/misc.c
+++ b/src/vnet/misc.c
@@ -86,6 +86,9 @@ vnet_main_init (vlib_main_t * vm)
vnm->local_interface_hw_if_index = hw_if_index;
vnm->local_interface_sw_if_index = hw->sw_if_index;
+ vnm->pcap.current_filter_function =
+ vlib_is_packet_traced_default_function ();
+
return 0;
}