diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-10-29 16:31:19 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-10-29 16:37:58 +0100 |
commit | 6bb2b97b4cc6b0324c4209f9fcd8859bf7582952 (patch) | |
tree | 060e51e6e6f42a76602c5a3aa5270eb1afbe5a55 /tcpdump.c | |
parent | f052d2b3962c791a541f20a012a43ff471438045 (diff) | |
download | tcpdump-6bb2b97b4cc6b0324c4209f9fcd8859bf7582952.tar.gz |
Add an usage message for the -m option
Moreover:
Fix a space.
Diffstat (limited to 'tcpdump.c')
-rw-r--r-- | tcpdump.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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, |