mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
chore(eBPF): remove commented out codeblock (#8588)
This is a leftover from debugging trying to make the verifier happy.
This commit is contained in:
@@ -63,10 +63,6 @@ fn move_headers<const DELTA: i32, const IP_HEADER_LEN: usize>(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) };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user