X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f52d66ff00b24111f87c274d3d7085ef2e1d27b1..30932c53d353db00425fe1e61d5456bff4a6ed05:/target/linux/generic-2.4/patches/109-ipsec_nat_traversal.patch diff --git a/target/linux/generic-2.4/patches/109-ipsec_nat_traversal.patch b/target/linux/generic-2.4/patches/109-ipsec_nat_traversal.patch index fc4c29d27..51981b8af 100644 --- a/target/linux/generic-2.4/patches/109-ipsec_nat_traversal.patch +++ b/target/linux/generic-2.4/patches/109-ipsec_nat_traversal.patch @@ -1,7 +1,7 @@ packaging/utils/nattpatch 2.4 ---- linux/include/net/sock.h 2002/02/06 15:25:10 1.1 -+++ linux/include/net/sock.h 2002/05/22 12:14:56 -@@ -488,7 +488,13 @@ +--- a/include/net/sock.h ++++ b/include/net/sock.h +@@ -488,7 +488,13 @@ struct tcp_opt { } bictcp; }; @@ -16,7 +16,7 @@ packaging/utils/nattpatch 2.4 /* * This structure really needs to be cleaned up. * Most of it is for TCP, and not used by any of -@@ -655,6 +661,9 @@ +@@ -655,6 +661,9 @@ struct sock { #if defined(CONFIG_SPX) || defined (CONFIG_SPX_MODULE) struct spx_opt af_spx; #endif /* CONFIG_SPX */ @@ -26,17 +26,18 @@ packaging/utils/nattpatch 2.4 } tp_pinfo; ---- linux/net/Config.in.orig Fri Feb 9 14:34:13 2001 -+++ linux/net/Config.in Thu Feb 22 19:40:08 2001 -@@ -88,3 +88,5 @@ +--- a/net/Config.in ++++ b/net/Config.in +@@ -104,4 +104,6 @@ comment 'Network testing' + dep_tristate 'Packet Generator (USE WITH CAUTION)' CONFIG_NET_PKTGEN $CONFIG_PROC_FS endmenu +bool 'IPSEC NAT-Traversal' CONFIG_IPSEC_NAT_TRAVERSAL + endmenu ---- linux/net/ipv4/udp.c.1 Wed Jan 28 15:57:05 2004 -+++ linux/net/ipv4/udp.c Wed Jan 28 15:58:56 2004 -@@ -787,6 +787,9 @@ +--- a/net/ipv4/udp.c ++++ b/net/ipv4/udp.c +@@ -860,6 +860,9 @@ static void udp_close(struct sock *sk, l static int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb) { @@ -46,7 +47,7 @@ packaging/utils/nattpatch 2.4 /* * Charge it to the socket, dropping if the queue is full. */ -@@ -804,6 +807,40 @@ +@@ -877,6 +880,40 @@ static int udp_queue_rcv_skb(struct sock } #endif @@ -87,7 +88,7 @@ packaging/utils/nattpatch 2.4 if (sock_queue_rcv_skb(sk,skb)<0) { UDP_INC_STATS_BH(UdpInErrors); IP_INC_STATS_BH(IpInDiscards); -@@ -1027,13 +1064,49 @@ +@@ -1100,13 +1137,49 @@ out: return len; }