abb3d353a1675855a76f6761afa98f8fb2316483
[openwrt/openwrt.git] / package / ltq-kpi2udp / patches / 110-ifx_udp_redirect.patch
1 --- a/ifx_udp_redirect.c
2 +++ b/ifx_udp_redirect.c
3 @@ -256,7 +256,7 @@
4 {
5 if (redtab.channels[i].in_use == IFX_TRUE)
6 {
7 - if (redtab.channels[i].sk->sk_lock.owner != 0)
8 + if (redtab.channels[i].sk->sk_lock.owned != 0)
9 return IFX_TRUE;
10 }
11 }
12 @@ -545,7 +545,7 @@
13 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0))
14 if (sk->num != htons(sport))
15 #else
16 - if (((struct inet_sock *)sk)->num != htons(sport))
17 + if (((struct inet_sock *)sk)->inet_num != htons(sport))
18 #endif
19 {
20 return CALL_MK_SESSION_ERR;
21 @@ -628,7 +628,7 @@
22 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0))
23 if((vsock != NULL)&&(vsk != NULL)&&(vsk->num > 0))
24 #else
25 - if((vsock != NULL)&&(vsk != NULL)&&(((struct inet_sock *)vsk)->num > 0))
26 + if((vsock != NULL)&&(vsk != NULL)&&(((struct inet_sock *)vsk)->inet_num > 0))
27 #endif
28 {
29 /*printk("[KPI2UDP] releasing vsock...%p, ops %p\n", vsock, vsock->ops);*/