Skip to content

Commit

Permalink
Compatible with kernel 4.9
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Apr 2, 2018
1 parent 9681dcf commit 199eb4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kmod/utils.h
Expand Up @@ -23,10 +23,10 @@ static inline int wd_ip_set_test(const char *name, const struct sk_buff *skb,
if (!set)
return 0;

#if LINUX_VERSION_CODE > KERNEL_VERSION(4, 9, 89)
par.state = state;
#else
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
par.net = state->net;
#else
par.state = state;
#endif

ret = ip_set_test(index, skb, &par, opt);
Expand Down

0 comments on commit 199eb4e

Please sign in to comment.