Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants