libpcap icon indicating copy to clipboard operation
libpcap copied to clipboard

Enhancement: parse special offsets in filter expression

Open fenner opened this issue 5 years ago • 1 comments

#861 talks about output, but input is also important. I would much rather say "to look at skb_type you use ether[type]=3" instead of "ether[-4092]=3" and have to figure out if that is the value I really meant.

I'd be fine (it might be better, even) if it was introduced by a different value - special[type]? skf_ad[type]? (I'm bad at naming!)

fenner avatar Oct 15 '19 00:10 fenner

I might vote for skf_ad to remind users that it's for Linux SKF_AD_ values.

The compile would fail unless you're compiling for a live capture on a PF_PACKET socket.

guyharris avatar Oct 15 '19 00:10 guyharris