diff options
author | Jonas Gorski <jogo@openwrt.org> | 2012-04-17 12:50:54 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2012-04-17 12:50:54 +0000 |
commit | 23578461a92aca344eb5d34d59352da3163281a8 (patch) | |
tree | 7884a0e5485ce8383b2b63163b38e40ea60ffb3c /target/linux/lantiq/patches-3.2/0058-MIPS-lantiq-udp-in-kernel-redirect.patch | |
parent | d52ae4d7d3a8335fb68ebaf53ad52e8586e8e29b (diff) | |
download | master-187ad058-23578461a92aca344eb5d34d59352da3163281a8.tar.gz master-187ad058-23578461a92aca344eb5d34d59352da3163281a8.tar.bz2 master-187ad058-23578461a92aca344eb5d34d59352da3163281a8.zip |
kernel: update linux 3.2 to 3.2.15
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31335 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.2/0058-MIPS-lantiq-udp-in-kernel-redirect.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.2/0058-MIPS-lantiq-udp-in-kernel-redirect.patch | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/target/linux/lantiq/patches-3.2/0058-MIPS-lantiq-udp-in-kernel-redirect.patch b/target/linux/lantiq/patches-3.2/0058-MIPS-lantiq-udp-in-kernel-redirect.patch index 086dc3bbd2..eefe60a547 100644 --- a/target/linux/lantiq/patches-3.2/0058-MIPS-lantiq-udp-in-kernel-redirect.patch +++ b/target/linux/lantiq/patches-3.2/0058-MIPS-lantiq-udp-in-kernel-redirect.patch @@ -13,9 +13,6 @@ Subject: [PATCH 58/73] MIPS: lantiq: udp in-kernel redirect create mode 100644 include/linux/udp_redirect.h create mode 100644 net/ipv4/udp_redirect_symb.c -diff --git a/include/linux/udp_redirect.h b/include/linux/udp_redirect.h -new file mode 100644 -index 0000000..de1e64f --- /dev/null +++ b/include/linux/udp_redirect.h @@ -0,0 +1,57 @@ @@ -76,8 +73,6 @@ index 0000000..de1e64f +extern int udpredirect_getfrag(void *p, char * to, int offset, + int fraglen, int odd, struct sk_buff *skb); +#endif -diff --git a/net/Kconfig b/net/Kconfig -index a073148..d13e3fa 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -72,6 +72,12 @@ config INET @@ -93,11 +88,9 @@ index a073148..d13e3fa 100644 if INET source "net/ipv4/Kconfig" source "net/ipv6/Kconfig" -diff --git a/net/ipv4/Makefile b/net/ipv4/Makefile -index f2dc69c..6badd72 100644 --- a/net/ipv4/Makefile +++ b/net/ipv4/Makefile -@@ -14,6 +14,9 @@ obj-y := route.o inetpeer.o protocol.o \ +@@ -14,6 +14,9 @@ obj-y := route.o inetpeer.o protocol inet_fragment.o ping.o obj-$(CONFIG_SYSCTL) += sysctl_net_ipv4.o @@ -107,8 +100,6 @@ index f2dc69c..6badd72 100644 obj-$(CONFIG_PROC_FS) += proc.o obj-$(CONFIG_IP_MULTIPLE_TABLES) += fib_rules.o obj-$(CONFIG_IP_MROUTE) += ipmr.o -diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c -index 5a65eea..cdfa0d4 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -108,6 +108,10 @@ @@ -122,7 +113,7 @@ index 5a65eea..cdfa0d4 100644 struct udp_table udp_table __read_mostly; EXPORT_SYMBOL(udp_table); -@@ -803,7 +807,7 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, +@@ -803,7 +807,7 @@ int udp_sendmsg(struct kiocb *iocb, stru u8 tos; int err, is_udplite = IS_UDPLITE(sk); int corkreq = up->corkflag || msg->msg_flags&MSG_MORE; @@ -131,7 +122,7 @@ index 5a65eea..cdfa0d4 100644 struct sk_buff *skb; struct ip_options_data opt_copy; -@@ -820,7 +824,13 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, +@@ -820,7 +824,13 @@ int udp_sendmsg(struct kiocb *iocb, stru ipc.opt = NULL; ipc.tx_flags = 0; @@ -146,7 +137,7 @@ index 5a65eea..cdfa0d4 100644 fl4 = &inet->cork.fl.u.ip4; if (up->pending) { -@@ -1623,6 +1633,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, +@@ -1623,6 +1633,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct rtable *rt = skb_rtable(skb); __be32 saddr, daddr; struct net *net = dev_net(skb->dev); @@ -154,7 +145,7 @@ index 5a65eea..cdfa0d4 100644 /* * Validate the packet. -@@ -1655,7 +1666,16 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, +@@ -1655,7 +1666,16 @@ int __udp4_lib_rcv(struct sk_buff *skb, sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable); if (sk != NULL) { @@ -181,9 +172,6 @@ index 5a65eea..cdfa0d4 100644 /* ------------------------------------------------------------------------ */ #ifdef CONFIG_PROC_FS -diff --git a/net/ipv4/udp_redirect_symb.c b/net/ipv4/udp_redirect_symb.c -new file mode 100644 -index 0000000..5617e86 --- /dev/null +++ b/net/ipv4/udp_redirect_symb.c @@ -0,0 +1,186 @@ @@ -373,6 +361,3 @@ index 0000000..5617e86 +EXPORT_SYMBOL(udp_do_redirect_fn); +EXPORT_SYMBOL(udpredirect_getfrag_fn); +#endif /* CONFIG_IFX_UDP_REDIRECT* */ --- -1.7.9.1 - |