I'm wondering if there's a way in Wireshark to use Capture Filters in the Display Filters input box? I need this because I want to check a Capture Filter on a known PCAP before applying it somewhere else. Is this at all possible (even through a plugin) ? asked 30 Jul '13, 06:32 Astraa |
One Answer:
If by "check" you mean "make sure it filters the packets I expect it to filter", try running tcpdump on it; tcpdump uses libpcap filters. You could do There's no way to use capture filters as display filters in Wireshark, and there's no "plugin point" that would make it possible for a plugin to do so. answered 30 Jul '13, 11:43 Guy Harris ♦♦ |
I often go the tcpdump route myself.
However, it would be a nice feature to be able to filter with a capture (BPF) filter in Wireshark, as there are some things a BPF filter can do that a display filter can't do.
Or use WinDump if you're on Windows.
And if anyone ever decides to try to resolve bug 1814, then it might be possible in the future to do something like:
type file.pcap | tshark.exe -i - -f "capture filter"
cat file.pcap | tshark -i - -f "capture filter"