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.
aya-log: Allow logging
core::net::Ipv4Addr
and core::net::Ipv6Addr
IP address types are available in `core`, so they can be used also in eBPF programs. This change adds support of these types in aya-log. * Add implementation of `WriteTuBuf` to these types. * Support these types in `Ipv4Formatter` and `Ipv6Formatter`. * Support them with `DisplayHint::Ip`. * Add support for formatting `[u8; 4]`, to be able to handle `Ipv4Addr::octets`.
- Loading branch information
1 parent
2cd9858
commit a75fc2f
Showing
4 changed files
with
284 additions
and
8 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
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