chore(relay): use existing ebpf module import (#10202)

This commit is contained in:
Thomas Eizinger
2025-08-18 09:45:36 +10:00
committed by GitHub
parent b07fa341cf
commit 70a930e45d

View File

@@ -18,8 +18,7 @@ async fn ping_pong() {
let (_meter_provider, exporter) = init_meter_provider();
let mut program =
firezone_relay::ebpf::Program::try_load("lo", ebpf::AttachMode::Generic).unwrap();
let mut program = ebpf::Program::try_load("lo", ebpf::AttachMode::Generic).unwrap();
// Linux does not set the correct UDP checksum when sending the packet, so our updated checksum in the eBPF code will be wrong and later dropped.
// To make the test work, we therefore need to tell the eBPF program to disable UDP checksumming by just setting it to 0.