You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
657 B

  1. diff --git a/datapath/linux/compat/stt.c b/datapath/linux/compat/stt.c
  2. index b44f470..f95416e 100644
  3. --- a/datapath/linux/compat/stt.c
  4. +++ b/datapath/linux/compat/stt.c
  5. @@ -1326,9 +1326,14 @@ static void clean_percpu(struct work_struct *work)
  6. static unsigned int nf_ip_hook(FIRST_PARAM
  7. struct sk_buff *skb,
  8. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)
  9. + const struct nf_hook_state *state
  10. +#else
  11. const struct net_device *in,
  12. const struct net_device *out,
  13. - int (*okfn)(struct sk_buff *))
  14. + int (*okfn)(struct sk_buff *)
  15. +#endif
  16. + )
  17. {
  18. struct stt_sock *stt_sock;
  19. int ip_hdr_len;