1
1
Files
zyxel-vmg8825_b50b-cfw/target/linux/brcm963xx/bcmsdk-502L07P1-patches-4.1/125-ENHANCE_IPSec_passthrough.patch
T
2026-04-17 18:33:03 +02:00

16 lines
563 B
Diff

Index: linux-4.1.52/net/ipv4/netfilter/nf_nat_ipsec.c
===================================================================
--- linux-4.1.52.orig/net/ipv4/netfilter/nf_nat_ipsec.c 2018-01-22 14:21:12.665630788 +0800
+++ linux-4.1.52/net/ipv4/netfilter/nf_nat_ipsec.c 2018-01-24 13:53:14.032768520 +0800
@@ -46,8 +46,10 @@
struct iphdr *iph = ip_hdr(skb);
struct udphdr *udph = (void *)iph + iph->ihl * 4;
+#if 0 //PeterSu
/* make sure source port is 500 */
udph->source = htons(IPSEC_PORT);
+#endif
udph->check = 0;
return NF_ACCEPT;