Skip to content

Instantly share code, notes, and snippets.

@Soufien
Created March 8, 2014 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Soufien/9430937 to your computer and use it in GitHub Desktop.
Save Soufien/9430937 to your computer and use it in GitHub Desktop.
Patch for vmware kernel module updater : Linux kernel 3.13
205a206
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
206a208,210
> #else
> VNetFilterHookFn(const struct nf_hook_ops *ops, // IN:
> #endif
255c259,263
< transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
---
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
> transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
> #else
> transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
> #endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment