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

Filter based on the value of a specific byte #22

@FrelDX

Description

@FrelDX

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions