From 45d1ea8a29d087286736ada7dd48f497683667ed Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 19 Nov 2023 03:10:19 +0000 Subject: [PATCH] Allow matching on local and remote IPs --- swapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swapper.h b/swapper.h index 9795149..25f4a1f 100644 --- 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)) { -- 2.39.5