Permalink
Browse files

ubuntu kernel version check fix

  • Loading branch information...
cardigliano committed Jul 7, 2016
1 parent 0e4738d commit f5fbb56f70a737399f62300bbbfae3bc5adbcbe9
Showing with 2 additions and 2 deletions.
  1. +2 −2 kernel/pf_ring.c
View
@@ -6962,7 +6962,7 @@ static int ring_setsockopt(struct socket *sock,
printk("[PF_RING] BPF filter (len = %u)\n", fprog.len);
#if (defined(UTS_UBUNTU_RELEASE_ABI) && (\
UBUNTU_VERSION_CODE == KERNEL_VERSION(4,2,0) || \
(UBUNTU_VERSION_CODE == KERNEL_VERSION(4,2,0) && UTS_UBUNTU_RELEASE_ABI > 26) || \
(UBUNTU_VERSION_CODE == KERNEL_VERSION(4,4,0) && UTS_UBUNTU_RELEASE_ABI > 21) || \
UBUNTU_VERSION_CODE > KERNEL_VERSION(4,4,0))) || \
(!defined(UTS_UBUNTU_RELEASE_ABI) && LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0))
@@ -6980,7 +6980,7 @@ static int ring_setsockopt(struct socket *sock,
if (unlikely(enable_debug))
printk("[PF_RING] Removing BPF filter\n");
#if (defined(UTS_UBUNTU_RELEASE_ABI) && (\
UBUNTU_VERSION_CODE == KERNEL_VERSION(4,2,0) || \
(UBUNTU_VERSION_CODE == KERNEL_VERSION(4,2,0) && UTS_UBUNTU_RELEASE_ABI > 26) || \
(UBUNTU_VERSION_CODE == KERNEL_VERSION(4,4,0) && UTS_UBUNTU_RELEASE_ABI > 21) || \
UBUNTU_VERSION_CODE > KERNEL_VERSION(4,4,0))) || \
(!defined(UTS_UBUNTU_RELEASE_ABI) && LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0))

0 comments on commit f5fbb56

Please sign in to comment.