We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef1a7b7 commit a702e62Copy full SHA for a702e62
ffmuc-ebpf-clat/src/clat.bpf.c
@@ -26,8 +26,12 @@ char _license[] SEC("license") = "GPL";
26
#define IP_OFFSET_MASK (0x1FFF)
27
#define IP_MF (0x2000)
28
29
-#define DEBUG_PRINT(x)
30
-// #define DEBUG_PRINT(x) bpf_printk(x)
+/* Prob. requires CONFIG_BPF_EVENTS and CONFIG_TRACING kernel options to be enabled */
+#ifdef ENABLE_DEBUG_PRINT
31
+ #define DEBUG_PRINT(x) bpf_printk(x)
32
+#else
33
+ #define DEBUG_PRINT(x)
34
+#endif
35
36
/* To make the eBPF validator happy, we need to check that the header is
37
* entirely within the valid data region.
0 commit comments