summarylogtreecommitdiffstats
path: root/vmnet-10.0.1-3.13.patch
blob: 03964ad2055e5a367dfd67e0bb9f31701fdad46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -u vmnet-only.a/filter.c vmnet-only/filter.c
--- vmnet-only.a/filter.c 2014-04-02 21:34:26.935944394 +0300
+++ vmnet-only/filter.c        2013-10-18 22:11:55.000000000 +0300
@@ -203,7 +203,7 @@
 #endif
 
 static unsigned int
-VNetFilterHookFn(unsigned int hooknum,                 // IN:
+VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:
 #ifdef VMW_NFHOOK_USES_SKB
                  struct sk_buff *skb,                  // IN:
 #else
@@ -252,7 +252,7 @@
 
    /* When the host transmits, hooknum is VMW_NF_INET_POST_ROUTING. */
    /* When the host receives, hooknum is VMW_NF_INET_LOCAL_IN. */
-   transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
+   transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
 
    packetHeader = compat_skb_network_header(skb);
    ip = (struct iphdr*)packetHeader;