Skip to content

Commit

Permalink
ubuntu kernel version check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Jul 9, 2016
1 parent 0e4738d commit f5fbb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/pf_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down

0 comments on commit f5fbb56

Please sign in to comment.