summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-10-29 16:31:19 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-10-29 16:37:58 +0100
commit6bb2b97b4cc6b0324c4209f9fcd8859bf7582952 (patch)
tree060e51e6e6f42a76602c5a3aa5270eb1afbe5a55 /tcpdump.c
parentf052d2b3962c791a541f20a012a43ff471438045 (diff)
downloadtcpdump-6bb2b97b4cc6b0324c4209f9fcd8859bf7582952.tar.gz
Add an usage message for the -m option
Moreover: Fix a space.
Diffstat (limited to 'tcpdump.c')
-rw-r--r--tcpdump.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tcpdump.c b/tcpdump.c
index 3b4d84f9..d17a572b 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -624,6 +624,10 @@ show_remote_devices_and_exit(void)
#define J_FLAG
#endif /* PCAP_ERROR_TSTAMP_TYPE_NOTSUP */
+#ifdef USE_LIBSMI
+#define m_FLAG_USAGE "[ -m module ] ..."
+#endif
+
#ifdef HAVE_PCAP_SETDIRECTION
#define Q_FLAG "Q:"
#define Q_FLAG_USAGE " [ -Q in|out|inout ]"
@@ -713,7 +717,7 @@ static const struct option longopts[] = {
};
#ifdef HAVE_PCAP_FINDALLDEVS_EX
-#define LIST_REMOTE_INTERFACES_USAGE "[ --list-remote-interfaces remote-source ]"
+#define LIST_REMOTE_INTERFACES_USAGE "[ --list-remote-interfaces remote-source ]"
#else
#define LIST_REMOTE_INTERFACES_USAGE
#endif
@@ -3060,6 +3064,10 @@ print_usage(void)
(void)fprintf(stderr,
"\t\t" LIST_REMOTE_INTERFACES_USAGE "\n");
#endif
+#ifdef USE_LIBSMI
+ (void)fprintf(stderr,
+"\t\t" m_FLAG_USAGE "\n");
+#endif
(void)fprintf(stderr,
"\t\t[ -M secret ] [ --number ] [ --print ]" Q_FLAG_USAGE "\n");
(void)fprintf(stderr,