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

Filter based on the value of a specific byte #22

Open
FrelDX opened this issue Mar 22, 2022 · 0 comments
Open

Filter based on the value of a specific byte #22

FrelDX opened this issue Mar 22, 2022 · 0 comments
Assignees

Comments

@FrelDX
Copy link

FrelDX commented Mar 22, 2022

https://github.com/asavie/xdp/blob/56d71236a0294dadc7fbd6d1ecd347df996ed279/examples/dumpframes/ebpf/single_protocol_filter.c

This example is more suitable for my scenario, but I don't want to filter according to the protocol number in the IP protocol. Can I filter more with the version of the IP protocol? For example, I only filter IPv6 packets. I know that it can be realized with a small amount of changes to the above code, but I won't C

@slavc slavc self-assigned this Nov 25, 2022
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