diff options
author | 2024-11-26 15:58:40 +0100 | |
---|---|---|
committer | 2024-12-11 08:58:32 +0000 | |
commit | fb8f51697c748d28d4b542554a96a83ab74f6678 (patch) | |
tree | 670ea73a70444973658797bfdf4648ccabc9c708 /src/vnet/classify | |
parent | dd02eb893b485a290a47ddca7d76ecedb45a5063 (diff) |
bpf_trace_filter: allow pcap filtering without classifier
Type: improvement
Change-Id: I7ca860dbee0d0a24b7f00943142d8c878ed90e80
Signed-off-by: Hadi Rayan Al-Sandid <halsandi@cisco.com>
Diffstat (limited to 'src/vnet/classify')
-rw-r--r-- | src/vnet/classify/pcap_classify.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/classify/pcap_classify.h b/src/vnet/classify/pcap_classify.h index a4ebcd1241c..c23267fd504 100644 --- a/src/vnet/classify/pcap_classify.h +++ b/src/vnet/classify/pcap_classify.h @@ -46,7 +46,7 @@ vnet_is_packet_pcaped (vnet_pcap_t *pp, vlib_buffer_t *b, u32 sw_if_index) if (pcap_error_index != (vlib_error_t) ~0 && pcap_error_index != b->error) return 0; /* wrong error */ - if (filter_classify_table_index != ~0 && + if (pp->pcap_filter_enable && pp->current_filter_function (b, filter_classify_table_index, 0 /* full classify */) != 1) return 0; /* not matching the filter, skip */ |