]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix --help option to print some usage strings
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 14 Mar 2024 18:52:53 +0000 (19:52 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 14 Mar 2024 19:09:27 +0000 (20:09 +0100)
LIST_REMOTE_INTERFACES_USAGE is defined or empty depending on
HAVE_PCAP_FINDALLDEVS_EX. Don't test HAVE_PCAP_FINDALLDEVS_EX in
print_usage(). This also print correctly "[ --lengths ]".

tcpdump.c

index 08086fee9a3378dee99b60be5bdd2bc79c2a7eaf..2defca332913ce34dc1e03bc4d675554cb0e144e 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -3354,10 +3354,8 @@ print_usage(FILE *f)
 "\t\t[ -C file_size ] [ -E algo:secret ] [ -F file ] [ -G seconds ]\n");
        (void)fprintf(f,
 "\t\t[ -i interface ]" IMMEDIATE_MODE_USAGE j_FLAG_USAGE "\n");
-#ifdef HAVE_PCAP_FINDALLDEVS_EX
        (void)fprintf(f,
 "\t\t[ --lengths ]" LIST_REMOTE_INTERFACES_USAGE "\n");
-#endif
 #ifdef USE_LIBSMI
        (void)fprintf(f,
 "\t\t" m_FLAG_USAGE "\n");