Permalink
Browse files

Add support to linux 4.18

linux 4.18 uses a new struct nf_nat_range2 for nf_nat_setup_info.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
  • Loading branch information...
Thadeu Lima de Souza Cascardo
Thadeu Lima de Souza Cascardo committed Aug 22, 2018
1 parent b4af4f6 commit 3a4a4866890e7daee96010291feb72396a99d9ed
Showing with 3 additions and 1 deletion.
  1. +3 −1 nf_nat_rtsp.c
@@ -534,7 +534,9 @@ nf_nat_rtsp(struct sk_buff *skb, enum ip_conntrack_info ctinfo,
static void nf_nat_rtsp_expected(struct nf_conn* ct, struct nf_conntrack_expect *exp)
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) || LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,18,0)
struct nf_nat_range2 range;
#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) || LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
struct nf_nat_range range;
#else
struct nf_nat_ipv4_range range;

0 comments on commit 3a4a486

Please sign in to comment.