summaryrefslogtreecommitdiffstats
path: root/src/vnet/interface_output.c
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2019-08-01 15:15:36 -0400
committerDave Barach <openvpp@barachs.net>2019-08-01 22:53:14 +0000
commit778ce573180618d4f694f91bd662d92b3eada725 (patch)
tree08363730d419f9f35e0307337647272b9ad301b3 /src/vnet/interface_output.c
parent49568afd2096600f5d6745385d81d873c8893e29 (diff)
interface: fix pcap tx/rx trace cli handling
Provide default packet_to_capture value. Display interface name correctly for "pcap tx/rx trace status". Type: fix Signed-off-by: John Lo <loj@cisco.com> Change-Id: I7064d0dbea236a9aff68bba7fbaf2c4a73b16c6f Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'src/vnet/interface_output.c')
-rw-r--r--src/vnet/interface_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/interface_output.c b/src/vnet/interface_output.c
index 884c00d93cf..b4832bf2bba 100644
--- a/src/vnet/interface_output.c
+++ b/src/vnet/interface_output.c
@@ -1407,7 +1407,7 @@ pcap_drop_trace_command_fn (vlib_main_t * vm,
clib_memset (&im->pcap_main, 0, sizeof (im->pcap_main));
im->pcap_main.file_name = (char *) im->pcap_filename;
- im->pcap_main.n_packets_to_capture = 100;
+ im->pcap_main.n_packets_to_capture = PCAP_DEF_PKT_TO_CAPTURE;
if (im->pcap_pkts_to_capture)
im->pcap_main.n_packets_to_capture = im->pcap_pkts_to_capture;