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 standard input, by using the following command line: asked 28 Sep '13, 01:47 tonybuaa edited 28 Sep '13, 11:00 grahamb ♦ |
One Answer:
more is not a good option, as it seems to modify the binary data.
Then
As you can see, the output of more is significantly larger than the original. As type does not modify the binary data, you can pipe the capture file like this
This requires wireshark.exe to be in the search PATH of your environment.
Spawn a Wireshark process with the parameters Regarding Java, process start and writing to STDIN, please ask google: java start process write STDIN Regards answered 29 Sep '13, 09:06 Kurt Knochner ♦ |