aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-08-01 21:09:19 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-08-01 21:09:19 +0000
commit24c88b80072f39d90951dbc8375048b860d81c7a (patch)
tree16c0f39d91a14e932608524c76bf1a621c5dffdf /capture_sync.c
parentbee464590be706a899f116ac000dca2c6a8ce313 (diff)
pass --capture-comment from tshark to dumpcap
handle error cases in tshark svn path=/trunk/; revision=51094
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/capture_sync.c b/capture_sync.c
index 04a61a6500..eef011ff7b 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -403,6 +403,11 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, voi
else
argv = sync_pipe_add_arg(argv, &argc, "-P");
+ if (capture_opts->capture_comment) {
+ argv = sync_pipe_add_arg(argv, &argc, "--capture-comment");
+ argv = sync_pipe_add_arg(argv, &argc, capture_opts->capture_comment);
+ }
+
if (capture_opts->multi_files_on) {
if (capture_opts->has_autostop_filesize) {
argv = sync_pipe_add_arg(argv, &argc, "-b");