Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

C: fix usage information for save_to_pcap when piping

Wireshark _can_ capture from stdin or a pipe, but only
if the incoming format is classic Pcap. Pcap-NG doesn't
work. It might work in a future version of Wireshark,
but it doesn't work now (Wireshark 1.10.5).

So: change the examples to nudge people in the right
direction.
  • Loading branch information...
commit 49e06b9be05c6eef9fe08a3d13a12697e2b15990 1 parent 06dd300
@matthiasl authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 c/save_to_pcap.c
View
6 c/save_to_pcap.c
@@ -190,9 +190,9 @@ usage() {
"./save_to_pcap 172.16.1.10 1A 2A 16 1B 5 6 7 8 capture.pcapng\n"
"./save_to_pcap -m 172.16.1.10 1A 2A 16 isup_capture.pcapng\n"
"./save_to_pcap -m -n 1000 172.16.1.10 1A 2A 16 isup_capture.pcapng\n"
- "./save_to_pcap 172.16.1.10 1A 2A 16 - | tshark -V -i - \n"
- "./save_to_pcap 172.16.1.10 1A 2A 16 - | wireshark -k -i - \n"
- "./save_to_pcap 172.16.1.10 1A 2A 16 \\\\.\\pipe\\isup_capture.1\n");
+ "./save_to_pcap -c 172.16.1.10 1A 2A 16 - | tshark -V -i - \n"
+ "./save_to_pcap -c 172.16.1.10 1A 2A 16 - | wireshark -k -i - \n"
+ "./save_to_pcap -c 172.16.1.10 1A 2A 16 \\\\.\\pipe\\isup_capture.1\n");
fprintf(stderr,
"\nExamples (on SDH/SONET hardware, usually optical):\n"
Please sign in to comment.
Something went wrong with that request. Please try again.