base commit

This commit is contained in:
Guillermo Roche
2025-05-26 20:45:07 +02:00
commit 1394b5d76c
30 changed files with 3651 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
[package]
name = "net-logger-common"
version = "0.1.0"
edition = "2021"
[features]
default = []
user = ["aya"]
[dependencies]
aya = { version = "0.12", optional = true }
network-types = "0.0.6"
[lib]
path = "src/lib.rs"

View File

@@ -0,0 +1,18 @@
#![no_std]
use network_types::ip::{in6_addr, IpProto};
use network_types::eth::EtherType;
use core::net::Ipv6Addr;
#[derive(Clone, Copy)]
#[repr(C)]
pub struct Event {
pub ipv: EtherType,
pub source_port: u16,
pub source_ipv4: u32,
pub source_ipv6: Ipv6Addr,
pub dest_port: u16,
pub dest_ipv4: u32,
pub dest_ipv6: Ipv6Addr,
pub len: u16,
pub proto: IpProto,
}