how to use wireshark to capture packets from stand input
In our program (written in Java, run on Windows), we have packets captured
on our own device, and send to the Java program via a inner callback.
Formerly, we decode these packet by ourselves, but there's some
performance problem. Now we want to use Wireshark instead. I've found that
wireshark can capture packets from stand input, by using the following
command line: "wireshark -k -i -". But I have no idea how to use it in the
cmd prompt in Windows 7. Suppose I have a cap file named test.cap, should
I use "more test.cap | wireshark -k -i -" (just a example, I tried but
failed) or something else? Of course, I also want to ask about the usage
in Java. Does anyone know about it?
No comments:
Post a Comment