Patchwork netfilter 23/29: ip{,6}t_policy.h should include xp_policy.h

login
register
mail settings
Submitter Patrick McHardy
Date Nov. 27, 2008, 4:15 p.m.
Message ID <20081127161534.13891.33306.sendpatchset@x2.localnet>
Download mbox | patch
Permalink /patch/11223/
State Accepted
Delegated to: David Miller
Headers show

Comments

Patrick McHardy - Nov. 27, 2008, 4:15 p.m.
commit 018a7bf1e55000dd792194238c9043918d24d3dd
Author: Andy Whitcroft <apw@canonical.com>
Date:   Thu Nov 20 15:59:56 2008 +0100

    netfilter: ip{,6}t_policy.h should include xp_policy.h
    
    It seems that all of the include/netfilter_{ipv4,ipv6}/{ipt,ip6t}_*.h which
    share constants include the corresponding include/netfilter/xp_*.h files.
    Neither ipt_policy.h not ip6t_policy.h do.  Make these consistant with
    the norm.
    
    Signed-off-by: Andy Whitcroft <apw@canonical.com>
    Signed-off-by: Patrick McHardy <kaber@trash.net>

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/include/linux/netfilter_ipv4/ipt_policy.h b/include/linux/netfilter_ipv4/ipt_policy.h
index b9478a2..1037fb2 100644
--- a/include/linux/netfilter_ipv4/ipt_policy.h
+++ b/include/linux/netfilter_ipv4/ipt_policy.h
@@ -1,6 +1,8 @@ 
 #ifndef _IPT_POLICY_H
 #define _IPT_POLICY_H
 
+#include <linux/netfilter/xt_policy.h>
+
 #define IPT_POLICY_MAX_ELEM		XT_POLICY_MAX_ELEM
 
 /* ipt_policy_flags */
diff --git a/include/linux/netfilter_ipv6/ip6t_policy.h b/include/linux/netfilter_ipv6/ip6t_policy.h
index 6bab316..b1c449d 100644
--- a/include/linux/netfilter_ipv6/ip6t_policy.h
+++ b/include/linux/netfilter_ipv6/ip6t_policy.h
@@ -1,6 +1,8 @@ 
 #ifndef _IP6T_POLICY_H
 #define _IP6T_POLICY_H
 
+#include <linux/netfilter/xt_policy.h>
+
 #define IP6T_POLICY_MAX_ELEM		XT_POLICY_MAX_ELEM
 
 /* ip6t_policy_flags */