1 --- a/ifx_udp_redirect.c
2 +++ b/ifx_udp_redirect.c
5 if (redtab.channels[i].in_use == IFX_TRUE)
7 - if (redtab.channels[i].sk->sk_lock.owner != 0)
8 + if (redtab.channels[i].sk->sk_lock.owned != 0)
13 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0))
14 if (sk->num != htons(sport))
16 - if (((struct inet_sock *)sk)->num != htons(sport))
17 + if (((struct inet_sock *)sk)->inet_num != htons(sport))
20 return CALL_MK_SESSION_ERR;
22 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0))
23 if((vsock != NULL)&&(vsk != NULL)&&(vsk->num > 0))
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))
29 /*printk("[KPI2UDP] releasing vsock...%p, ops %p\n", vsock, vsock->ops);*/