fix: print TCP header length as unsigned

This commit is contained in:
LinuxDev9002
2026-07-14 04:26:08 -07:00
parent 7e9029d49e
commit 4cc8bdf472

View File

@@ -107,7 +107,7 @@ int xdp_pass(struct xdp_md *ctx)
bpf_ringbuf_submit(event, 0);
// Optional: Print a debug message (will appear in kernel logs)
bpf_printk("Captured TCP header (%d bytes)", tcp_header_bytes);
bpf_printk("Captured TCP header (%u bytes)", tcp_header_bytes);
return XDP_PASS;
}