diff options
author | John Crispin <john@openwrt.org> | 2011-02-07 21:48:55 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2011-02-07 21:48:55 +0000 |
commit | b549fce06bb8d59610836d14e2416637739fc488 (patch) | |
tree | dd49019a88dee016311e227af8f27b4fcb1e942c /package/ltq-kpi2udp/patches/110-ifx_udp_redirect.patch | |
parent | e651a9341a241ef5cefc1711d42e3f638aaba9b8 (diff) | |
download | mtk-20170518-b549fce06bb8d59610836d14e2416637739fc488.zip mtk-20170518-b549fce06bb8d59610836d14e2416637739fc488.tar.gz mtk-20170518-b549fce06bb8d59610836d14e2416637739fc488.tar.bz2 |
* adss in-kernel udp redirect plugin for lantiq voice optimisation
SVN-Revision: 25413
Diffstat (limited to 'package/ltq-kpi2udp/patches/110-ifx_udp_redirect.patch')
-rw-r--r-- | package/ltq-kpi2udp/patches/110-ifx_udp_redirect.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/ltq-kpi2udp/patches/110-ifx_udp_redirect.patch b/package/ltq-kpi2udp/patches/110-ifx_udp_redirect.patch new file mode 100644 index 0000000..abb3d35 --- /dev/null +++ b/package/ltq-kpi2udp/patches/110-ifx_udp_redirect.patch @@ -0,0 +1,29 @@ +--- a/ifx_udp_redirect.c ++++ b/ifx_udp_redirect.c +@@ -256,7 +256,7 @@ + { + if (redtab.channels[i].in_use == IFX_TRUE) + { +- if (redtab.channels[i].sk->sk_lock.owner != 0) ++ if (redtab.channels[i].sk->sk_lock.owned != 0) + return IFX_TRUE; + } + } +@@ -545,7 +545,7 @@ + #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)) + if (sk->num != htons(sport)) + #else +- if (((struct inet_sock *)sk)->num != htons(sport)) ++ if (((struct inet_sock *)sk)->inet_num != htons(sport)) + #endif + { + return CALL_MK_SESSION_ERR; +@@ -628,7 +628,7 @@ + #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)) + if((vsock != NULL)&&(vsk != NULL)&&(vsk->num > 0)) + #else +- if((vsock != NULL)&&(vsk != NULL)&&(((struct inet_sock *)vsk)->num > 0)) ++ if((vsock != NULL)&&(vsk != NULL)&&(((struct inet_sock *)vsk)->inet_num > 0)) + #endif + { + /*printk("[KPI2UDP] releasing vsock...%p, ops %p\n", vsock, vsock->ops);*/ |