3

I've tried a number of things, but none of them seem to do the trick. I want to run this command:

tshark -r data.pcap -T fields -e frame.time_epoch -e frame.len

but to have it ignore any packets from/to one or more devices that have a specific MAC address. I've tried variants of not eth.addr==, mac !=, etc with the -Y flag.

If this is not possible with tshark, a separate command (e.g. tcpdump) to preprocess the pcap and filter packets out into a new file would work too. Any tips would be much appreciated!

1
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer.
    – Ron Maupin
    Commented Apr 1, 2018 at 20:07

1 Answer 1

4

You can use not ether host 01:23:45:67:89:ab. To filter only source or destination address use not ether src or not ether dst.

Check http://www.tcpdump.org/manpages/pcap-filter.7.html

2
  • Thanks, that's only tcpdump, right? Commented Jan 21, 2018 at 17:32
  • It's for pcap, works in Wireshark, so it should work in tshark, too.
    – Zac67
    Commented Jan 21, 2018 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.