projects
/
bpfnofrags
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a89c8e7
)
Allow matching on local and remote IPs
master
author
Matt Corallo
<git@bluematt.me>
Sun, 19 Nov 2023 03:10:19 +0000
(
03:10
+0000)
committer
Matt Corallo
<git@bluematt.me>
Sun, 19 Nov 2023 03:10:19 +0000
(
03:10
+0000)
swapper.h
patch
|
blob
|
history
diff --git
a/swapper.h
b/swapper.h
index 979514921244992c48019ce7b28070f86ffee479..25f4a1ff928f744f81508ac4bb303973ccac4dc1 100644
(file)
--- a/
swapper.h
+++ b/
swapper.h
@@
-59,7
+59,7
@@
struct {
static inline void _maybe_swap_egress(struct iphdr *ip) {
if (unlikely(ip->ihl != 5)) return;
- CHECK_
SRC_DST(
ip->daddr);
+ CHECK_
LOCAL_REMOTE(ip->saddr,
ip->daddr);
if (ip->protocol == IP_PROTO_UDP) {
if (ip->frag_off == BE16(IP_MF)) {