aya-rs / book

The Aya Book is an introductory book about using the Rust Programming Language and Aya library to build extended Berkley Packet Filter (eBPF) programs.
https://aya-rs.dev/book/
Apache License 2.0
81 stars 60 forks source link

add "Modifying Packets" example #45

Open dmitris opened 2 years ago

dmitris commented 2 years ago

It would be great to add a "Modifying Packets" example after "Logging Packets" and "Dropping Packets" - to show the write access and packet signature regeneration.

If you know of existing opensource programs that do it with Aya (and could be used for reference and as model for the "Modifying Packets" example), please add a comment.

hnidoaht-101 commented 2 years ago

@alessandrod should this PR close this issue?

alessandrod commented 2 years ago

Hm don't think so. That post is great but I think we should add something to the book itself