aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-20 14:31:47 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-20 21:32:21 +0000
commit5537c53f379b5404f05d01541aa9386f87805072 (patch)
tree25fee7a8b93e7d0f77381ed090268eef583dfb7f /dumpcap.c
parent13b5d9b145a62db1f852008dfb6d42f79c52202f (diff)
"-d" isn't common to all capturing programs, it's dumpcap-specific.
Change-Id: I827615d45051c9d66407516b311d3de448de6d07 Reviewed-on: https://code.wireshark.org/review/2495 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 4b6ced0ad3..93a7f9e50d 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -4240,6 +4240,12 @@ main(int argc, char *argv[])
ws_init_dll_search_path();
#endif
+#ifdef HAVE_BPF_IMAGE
+#define OPTSTRING_d "d"
+#else
+#define OPTSTRING_d ""
+#endif
+
#ifdef HAVE_PCAP_REMOTE
#define OPTSTRING_r "r"
#define OPTSTRING_u "u"