Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
linux 4.18 uses a new struct for nf_nat_setup_info
Browse files Browse the repository at this point in the history
linux 4.18 uses a new struct nf_nat_range2 for nf_nat_setup_info.
This patch was provided by Thadeu Lima de Souza Cascardo.
  • Loading branch information
maru-sama committed Sep 14, 2018
1 parent b4af4f6 commit 8319766
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nf_nat_rtsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8319766

Please sign in to comment.