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) }; }