I'm having a little trouble understanding how to use bpfc. Using: bpfc 0.5.8
I've read the man page, this, and grepp'd through the Documentation
directory for "bpfc":
https://github.com/gnumaniacs/netsniff-ng/blob/master/Documentation/Bpfc

It seems that bpfc only reads from a file. I tried putting a normal
BPF into a file
e.g. echo "arp" > test.bpf ; bpfc -i test.bpf
Syntax error at line 2: ! syntax error, unexpected $end, expecting ':'!

I also tried using tcpdump to create a filter and than pass the file
to bpfc to see what would happen
e.g. tcpdump -dd arp >test.bpf ; bpfc -i test.bpf
Syntax error at line 1: {! lex Unknown character!

If bpfc takes a file, what goes into it? How do I create filters?

Thanks
Jon

-- 


Reply via email to