Commit 2fe6b0b
committed
Compile libpcap with --disable-protochain
There is a known issue that cloudfare/cbpfc can't properly handle "jump
back" cBPF: cloudflare/cbpfc#36. Unfortunately,
"protochain" pcap filter often generates such "jump back" instructions,
leading to errors like:
unable to compute blocks: instruction 18: ja 4294967281 flows past last instruction
This patch disables protochain when compiling libpcap, so users receive a
clearer error:
$ pwru ip6 protochain 58
2025/05/23 22:42:53 Failed to inject filter ebpf for kprobe_multi_skb_5: failed to pcap_compile 'ip6 protochain 58': protochain not supported (l3=false)
Signed-off-by: gray <[email protected]>1 parent a7f9086 commit 2fe6b0b
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments