diff options
-rw-r--r-- | doc/dumpcap.pod | 4 | ||||
-rw-r--r-- | dumpcap.c | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/doc/dumpcap.pod b/doc/dumpcap.pod index 0d97d74752..a99efef4e7 100644 --- a/doc/dumpcap.pod +++ b/doc/dumpcap.pod @@ -14,7 +14,7 @@ S<[ B<-d> ]> S<[ B<-D> ]> S<[ B<-f> E<lt>capture filterE<gt> ]> S<[ B<-h> ]> -S<[ B<-i> E<lt>capture interfaceE<gt>|- ]> +S<[ B<-i> E<lt>capture interfaceE<gt>|rpcap://E<lt>hostE<gt>/E<lt>capture interfaceE<gt>|TCP@E<lt>hostE<gt>:E<lt>portE<gt>|- ]> S<[ B<-I> ]> S<[ B<-L> ]> S<[ B<-M> ]> @@ -177,7 +177,7 @@ the default capture filter expression is used if provided. Print the version and options and exits. -=item -i E<lt>capture interfaceE<gt>|- +=item -i E<lt>capture interfaceE<gt>|rpcap://E<lt>hostE<gt>/E<lt>capture interfaceE<gt>|TCP@E<lt>hostE<gt>:E<lt>portE<gt>|- Set the name of the network interface or pipe to use for live packet capture. @@ -427,7 +427,10 @@ print_usage(gboolean print_ver) fprintf(output, "\nUsage: dumpcap [options] ...\n"); fprintf(output, "\n"); fprintf(output, "Capture interface:\n"); - fprintf(output, " -i <interface> name or idx of interface (def: first non-loopback)\n"); + fprintf(output, " -i <interface> name or idx of interface (def: first non-loopback),\n" + " or for remote capturing, use one of these formats:\n" + " rpcap://<host>/<interface>\n" + " TCP@<host>:<port>\n"); fprintf(output, " -f <capture filter> packet filter in libpcap filter syntax\n"); fprintf(output, " -s <snaplen> packet snapshot length (def: 65535)\n"); fprintf(output, " -p don't capture in promiscuous mode\n"); @@ -479,7 +482,7 @@ print_usage(gboolean print_ver) fprintf(output, " -h display this help and exit\n"); fprintf(output, "\n"); fprintf(output, "Example: dumpcap -i eth0 -a duration:60 -w output.pcapng\n"); - fprintf(output, "\"Capture network packets from interface eth0 until 60s passed into output.pcapng\"\n"); + fprintf(output, "\"Capture packets from interface eth0 until 60s passed into output.pcapng\"\n"); fprintf(output, "\n"); fprintf(output, "Use Ctrl-C to stop capturing at any time.\n"); } |