diff --git a/oryx-ebpf/src/main.rs b/oryx-ebpf/src/main.rs index 5effef1..bbafe9a 100644 --- a/oryx-ebpf/src/main.rs +++ b/oryx-ebpf/src/main.rs @@ -19,7 +19,7 @@ use network_types::{ use oryx_common::{ip::ProtoHdr, RawPacket}; #[map] -static DATA: RingBuf = RingBuf::with_byte_size(4096 * 40, 0); +static DATA: RingBuf = RingBuf::with_byte_size(4096 * RawPacket::LEN as u32, 0); #[classifier] pub fn oryx(ctx: TcContext) -> i32 {