diff options
author | Maxime Peim <mpeim@cisco.com> | 2023-07-03 17:45:51 +0200 |
---|---|---|
committer | Mohammed HAWARI <momohawari@gmail.com> | 2023-07-25 10:06:16 +0000 |
commit | 3f40755749b07e5a936ad6d15622e371e7e5c25e (patch) | |
tree | cb5082a978b29c3c79c8d6d802b935ff23d727c7 /src/vnet/classify/pcap_classify.h | |
parent | 4ab1aa31451c0db5deb9c726e82de241da126107 (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/classify/pcap_classify.h')
-rw-r--r-- | src/vnet/classify/pcap_classify.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/classify/pcap_classify.h b/src/vnet/classify/pcap_classify.h index e079816f62c..a4ebcd1241c 100644 --- a/src/vnet/classify/pcap_classify.h +++ b/src/vnet/classify/pcap_classify.h @@ -47,11 +47,11 @@ vnet_is_packet_pcaped (vnet_pcap_t *pp, vlib_buffer_t *b, u32 sw_if_index) return 0; /* wrong error */ if (filter_classify_table_index != ~0 && - vnet_is_packet_traced_inline (b, filter_classify_table_index, - 0 /* full classify */) != 1) + pp->current_filter_function (b, filter_classify_table_index, + 0 /* full classify */) != 1) return 0; /* not matching the filter, skip */ - return 1; /* success */ + return 1; } /* |