Commit 5024203
committed
bpf: Fix handling of encrypted packets in bpf_host
This commit fixes an issue for encrypted packets arriving in bpf_host.
When checking that they are encrypted using the packet mark, we
shouldn't expect the mark to be equal to MARK_MAGIC_DECRYPT. Instead, we
should check that the MARK_MAGIC_DECRYPT bit is set.
This issue isn't affecting anything today, but will once we support
IPsec + BPF Host Routing.
Fixes: 1dadae3 ("bpf: Don't skip local delivery for plain-text packets")
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>1 parent 1795ab5 commit 5024203
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1272 | 1272 | | |
1273 | 1273 | | |
1274 | 1274 | | |
1275 | | - | |
| 1275 | + | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
| |||
0 commit comments