X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvlib%2Fmain.h;h=2b50b4e4712d0b5767317fe756c720da9794f7ca;hb=33909777c63712ca397165cd92e7cc62208eb5c8;hp=88ce98bb405e7ee439ff31217209c4d3591320cb;hpb=9137e5400699bed9f7c0095187839a8b38273100;p=vpp.git diff --git a/src/vlib/main.h b/src/vlib/main.h index 88ce98bb405..2b50b4e4712 100644 --- a/src/vlib/main.h +++ b/src/vlib/main.h @@ -60,7 +60,14 @@ typedef struct { - int pcap_enable; + /* Trace RX pkts */ + u8 pcap_rx_enable; + /* Trace TX pkts */ + u8 pcap_tx_enable; + /* Trace drop pkts */ + u8 pcap_drop_enable; + u8 pad1; + u32 max_bytes_per_pkt; u32 pcap_sw_if_index; pcap_main_t pcap_main; u32 filter_classify_table_index; @@ -153,7 +160,7 @@ typedef struct vlib_main_t u8 *pcap_buffer; /* pcap rx / tx tracing */ - vnet_pcap_t pcap[VLIB_N_RX_TX]; + vnet_pcap_t pcap; /* Error handling. */ vlib_error_main_t error_main;