classify: add bpf support to pcap classifier
[vpp.git] / src / vnet / classify / pcap_classify.h
index e079816..a4ebcd1 100644 (file)
@@ -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;
 }
 
 /*