Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BPF filtering? #43

Closed
0b01 opened this issue Aug 11, 2018 · 2 comments
Closed

BPF filtering? #43

0b01 opened this issue Aug 11, 2018 · 2 comments

Comments

@0b01
Copy link

0b01 commented Aug 11, 2018

Does it support bpf filters?

@kpcyrd
Copy link
Owner

kpcyrd commented Aug 11, 2018

Not right now. There is currently no filtering in place besides the various verbose modes that rely on parsing the packets.

Even though the pcap crate supports it, I'm planning to migrate to pnet eventually (#44), which doesn't support bpf filtering yet, but may have it in the future.

Sorry for that, but I hope it answers your question.

To fully understand your usecase, are you interested in applying your own raw bpf filters or would a higher level filtering language that compiles to bpf work for you as well?

@0b01
Copy link
Author

0b01 commented Aug 12, 2018

Bpf compiler is a part of libpcap so it is unreasonable to oxidize that entire code base. Applying raw bpf filter is the bottom if you want pure rust.

@0b01 0b01 closed this as completed Aug 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants