aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjerryian <gu.jian1@zte.com.cn>2017-04-10 18:48:07 +0800
committerDamjan Marion <dmarion.lists@gmail.com>2017-04-11 15:51:02 +0000
commit361abefcf86abeafc02a16d2a73e00409af5e66a (patch)
tree4759bf68df6a9752df395bf06bad5af63c7a898c
parente4dcba801ae7abeea7d8a9f5d0784a540a3c2bd8 (diff)
Fix bug in configure 'pcap drop trace on file xx.cap' command (VPP-691)
Change-Id: Id9cc1fbe18099fae483a823dc7c2b16d6bc46a8c Signed-off-by: jerryian <gu.jian1@zte.com.cn>
-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 663dc309a22..3f45cb9f0ef 100644
--- a/src/vnet/interface_output.c
+++ b/src/vnet/interface_output.c
@@ -1392,8 +1392,8 @@ pcap_drop_trace_command_fn (vlib_main_t * vm,
if (im->pcap_filename)
vec_free (im->pcap_filename);
- vec_add1 (filename, 0);
im->pcap_filename = chroot_filename;
+ im->pcap_main.file_name = (char *) im->pcap_filename;
matched = 1;
}
else if (unformat (input, "status"))