{
const u32 pcap_sw_if_index = pp->pcap_sw_if_index;
const u32 filter_classify_table_index = pp->filter_classify_table_index;
+ const vlib_error_t pcap_error_index = pp->pcap_error_index;
if (pcap_sw_if_index != 0)
{
return 0; /* wrong interface, skip */
}
+ if (pcap_error_index != (vlib_error_t) ~0 && pcap_error_index != b->error)
+ return 0; /* wrong error */
+
if (filter_classify_table_index != ~0 &&
vnet_is_packet_traced_inline (b, filter_classify_table_index,
0 /* full classify */) != 1)