]> CyberLeo.Net >> Repos - CDN/portage-cdn.git/blob - app-emulation/vmware-modules/files/patches/vmnet/025_all_kernel-2.6.25.patch
Initial import
[CDN/portage-cdn.git] / app-emulation / vmware-modules / files / patches / vmnet / 025_all_kernel-2.6.25.patch
1 diff --git a/filter.c b/filter.c
2 index 7527fe4..7483c83 100644
3 --- a/filter.c
4 +++ b/filter.c
5 @@ -12,6 +12,13 @@
6  #include <linux/ip.h>
7  #include "compat_skbuff.h"
8  #include <linux/netdevice.h>
9 +
10 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
11 +#   define NF_IP_LOCAL_OUT NF_INET_LOCAL_OUT
12 +#   define NF_IP_LOCAL_IN NF_INET_LOCAL_IN
13 +#   define NF_IP_POST_ROUTING NF_INET_POST_ROUTING
14 +#endif
15 +
16  /*
17   * All this makes sense only if NETFILTER support is configured in our kernel.
18   */
19 diff --git a/vmnetInt.h b/vmnetInt.h
20 index bf2dff9..483c457 100644
21 --- a/vmnetInt.h
22 +++ b/vmnetInt.h
23 @@ -78,8 +78,10 @@
24   */
25  #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 65)
26  #   define SET_SK_DEAD(_sk, _val) (_sk)->dead = (_val)
27 -#else
28 +#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
29  #   define SET_SK_DEAD(_sk, _val) sock_valbool_flag(_sk, SOCK_DEAD, _val)
30 +#else
31 +#   define SET_SK_DEAD(_sk, _val) sock_set_flag(_sk, SOCK_DEAD)
32  #endif
33  
34