-
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.
- Loading branch information
1 parent
9f29bbc
commit 2e71f95
Showing
5 changed files
with
64 additions
and
174 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!-- START OF TOC !DO NOT EDIT THIS CONTENT MANUALLY--> | ||
**Table of Contents** *generated with [mtoc](https://github.com/containerscrew/mtoc)* | ||
- [Local development](#local-development) | ||
- [Requirements](#requirements) | ||
- [Debugging](#debugging) | ||
<!-- END OF TOC --> | ||
# Local development | ||
|
||
For more information, please visit [official documentation](https://aya-rs.dev/book/). | ||
|
||
## Requirements | ||
|
||
1. Install rust: | ||
```bash | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
``` | ||
|
||
2. Install nightly toolchain: | ||
``` | ||
rustup install stable && rustup toolchain install nightly --component rust-src | ||
``` | ||
|
||
3. Optional, if using mac or other linux: | ||
```bash | ||
LLVM_SYS_180_PREFIX=$(brew --prefix llvm) cargo install --no-default-features bpf-linker | ||
``` | ||
|
||
3. **MANDATORY:** | ||
```bash | ||
cargo install bpf-linker | ||
``` | ||
|
||
# Debugging | ||
|
||
```bash | ||
sudo bpftool prog list # show ebpf running programs | ||
ip link show dev wlo1 # xdp attached to your interface | ||
``` |
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 was deleted.
Oops, something went wrong.