forked from aya-rs/aya
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ebpf: Add TcContext for classifier programs
This change separates the previous `SkBuffContext` into three structs: * `SkBuff` which is a wrapper around `__sk_buff` which contains all possible methods operating on it. * `SkBuffContext` which is a program context for programs which **cannot** access `__sk_buff` directly and instead can only use `load_bytes`. * `TcContext` which is a classifier context which can access `__sk_buff` directly, hence exposes `data` and `data_end`. Signed-off-by: Michal Rostecki <[email protected]>
- Loading branch information
1 parent
9451699
commit 895f96e
Showing
4 changed files
with
359 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.