From bb36156ea82522e57b88b24382163ea289822b3d Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 1 Apr 2025 11:10:36 +1100 Subject: [PATCH] chore(eBPF): remove commented out codeblock (#8588) This is a leftover from debugging trying to make the verifier happy. --- rust/relay/ebpf-turn-router/src/move_headers.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rust/relay/ebpf-turn-router/src/move_headers.rs b/rust/relay/ebpf-turn-router/src/move_headers.rs index 722a5c43a..924e71755 100644 --- a/rust/relay/ebpf-turn-router/src/move_headers.rs +++ b/rust/relay/ebpf-turn-router/src/move_headers.rs @@ -63,10 +63,6 @@ fn move_headers(ctx: &XdpContext) // Move the head for the packet by `DELTA`. unsafe { bpf_xdp_adjust_head(ctx.ctx, DELTA) }; - // if ctx.data() + EthHdr::LEN + IP_HEADER_LEN + UdpHdr::LEN + 6 > ctx.data_end() { - // return Err(Error::PacketTooShort); - // } - // Copy the headers back. unsafe { bpf_xdp_store_bytes(ctx.ctx, 0, headers_ptr, headers_len) }; }