projects
/
bpfnofrags
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow matching on local and remote IPs
[bpfnofrags]
/
swapper.h
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)) {