aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/bridge/br_netfilter.c1
-rw-r--r--net/ipv4/netfilter/nf_log_arp.c12
-rw-r--r--net/ipv4/netfilter/nf_reject_ipv4.c1
-rw-r--r--net/ipv4/netfilter/nft_reject_ipv4.c7
-rw-r--r--net/ipv6/netfilter/nf_reject_ipv6.c1
-rw-r--r--net/ipv6/netfilter/nft_reject_ipv6.c7
-rw-r--r--net/netfilter/core.c1
-rw-r--r--net/netfilter/xt_DSCP.c6
8 files changed, 20 insertions, 16 deletions
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index 1bada53bb195..f81dc33bf8a1 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -35,6 +35,7 @@
35#include <net/ip.h> 35#include <net/ip.h>
36#include <net/ipv6.h> 36#include <net/ipv6.h>
37#include <net/route.h> 37#include <net/route.h>
38#include <net/netfilter/br_netfilter.h>
38 39
39#include <asm/uaccess.h> 40#include <asm/uaccess.h>
40#include "br_private.h" 41#include "br_private.h"
diff --git a/net/ipv4/netfilter/nf_log_arp.c b/net/ipv4/netfilter/nf_log_arp.c
index 0c8799a0c9e4..d059182c1466 100644
--- a/net/ipv4/netfilter/nf_log_arp.c
+++ b/net/ipv4/netfilter/nf_log_arp.c
@@ -75,12 +75,12 @@ static void dump_arp_packet(struct nf_log_buf *m,
75 ap->mac_src, ap->ip_src, ap->mac_dst, ap->ip_dst); 75 ap->mac_src, ap->ip_src, ap->mac_dst, ap->ip_dst);
76} 76}
77 77
78void nf_log_arp_packet(struct net *net, u_int8_t pf, 78static void nf_log_arp_packet(struct net *net, u_int8_t pf,
79 unsigned int hooknum, const struct sk_buff *skb, 79 unsigned int hooknum, const struct sk_buff *skb,
80 const struct net_device *in, 80 const struct net_device *in,
81 const struct net_device *out, 81 const struct net_device *out,
82 const struct nf_loginfo *loginfo, 82 const struct nf_loginfo *loginfo,
83 const char *prefix) 83 const char *prefix)
84{ 84{
85 struct nf_log_buf *m; 85 struct nf_log_buf *m;
86 86
diff --git a/net/ipv4/netfilter/nf_reject_ipv4.c b/net/ipv4/netfilter/nf_reject_ipv4.c
index 92b303dbd5fc..cdcb9a5d6786 100644
--- a/net/ipv4/netfilter/nf_reject_ipv4.c
+++ b/net/ipv4/netfilter/nf_reject_ipv4.c
@@ -11,6 +11,7 @@
11#include <net/tcp.h> 11#include <net/tcp.h>
12#include <net/route.h> 12#include <net/route.h>
13#include <net/dst.h> 13#include <net/dst.h>
14#include <net/netfilter/ipv4/nf_reject.h>
14#include <linux/netfilter_ipv4.h> 15#include <linux/netfilter_ipv4.h>
15 16
16/* Send RST reply */ 17/* Send RST reply */
diff --git a/net/ipv4/netfilter/nft_reject_ipv4.c b/net/ipv4/netfilter/nft_reject_ipv4.c
index ed33299c56d1..d729542bd1b7 100644
--- a/net/ipv4/netfilter/nft_reject_ipv4.c
+++ b/net/ipv4/netfilter/nft_reject_ipv4.c
@@ -19,9 +19,9 @@
19#include <net/netfilter/ipv4/nf_reject.h> 19#include <net/netfilter/ipv4/nf_reject.h>
20#include <net/netfilter/nft_reject.h> 20#include <net/netfilter/nft_reject.h>
21 21
22void nft_reject_ipv4_eval(const struct nft_expr *expr, 22static void nft_reject_ipv4_eval(const struct nft_expr *expr,
23 struct nft_data data[NFT_REG_MAX + 1], 23 struct nft_data data[NFT_REG_MAX + 1],
24 const struct nft_pktinfo *pkt) 24 const struct nft_pktinfo *pkt)
25{ 25{
26 struct nft_reject *priv = nft_expr_priv(expr); 26 struct nft_reject *priv = nft_expr_priv(expr);
27 27
@@ -36,7 +36,6 @@ void nft_reject_ipv4_eval(const struct nft_expr *expr,
36 36
37 data[NFT_REG_VERDICT].verdict = NF_DROP; 37 data[NFT_REG_VERDICT].verdict = NF_DROP;
38} 38}
39EXPORT_SYMBOL_GPL(nft_reject_ipv4_eval);
40 39
41static struct nft_expr_type nft_reject_ipv4_type; 40static struct nft_expr_type nft_reject_ipv4_type;
42static const struct nft_expr_ops nft_reject_ipv4_ops = { 41static const struct nft_expr_ops nft_reject_ipv4_ops = {
diff --git a/net/ipv6/netfilter/nf_reject_ipv6.c b/net/ipv6/netfilter/nf_reject_ipv6.c
index 20d9defc6c59..87576ff15e1b 100644
--- a/net/ipv6/netfilter/nf_reject_ipv6.c
+++ b/net/ipv6/netfilter/nf_reject_ipv6.c
@@ -11,6 +11,7 @@
11#include <net/ip6_route.h> 11#include <net/ip6_route.h>
12#include <net/ip6_fib.h> 12#include <net/ip6_fib.h>
13#include <net/ip6_checksum.h> 13#include <net/ip6_checksum.h>
14#include <net/netfilter/ipv6/nf_reject.h>
14#include <linux/netfilter_ipv6.h> 15#include <linux/netfilter_ipv6.h>
15 16
16void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook) 17void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook)
diff --git a/net/ipv6/netfilter/nft_reject_ipv6.c b/net/ipv6/netfilter/nft_reject_ipv6.c
index 0bc19fa87821..f73285924144 100644
--- a/net/ipv6/netfilter/nft_reject_ipv6.c
+++ b/net/ipv6/netfilter/nft_reject_ipv6.c
@@ -19,9 +19,9 @@
19#include <net/netfilter/nft_reject.h> 19#include <net/netfilter/nft_reject.h>
20#include <net/netfilter/ipv6/nf_reject.h> 20#include <net/netfilter/ipv6/nf_reject.h>
21 21
22void nft_reject_ipv6_eval(const struct nft_expr *expr, 22static void nft_reject_ipv6_eval(const struct nft_expr *expr,
23 struct nft_data data[NFT_REG_MAX + 1], 23 struct nft_data data[NFT_REG_MAX + 1],
24 const struct nft_pktinfo *pkt) 24 const struct nft_pktinfo *pkt)
25{ 25{
26 struct nft_reject *priv = nft_expr_priv(expr); 26 struct nft_reject *priv = nft_expr_priv(expr);
27 struct net *net = dev_net((pkt->in != NULL) ? pkt->in : pkt->out); 27 struct net *net = dev_net((pkt->in != NULL) ? pkt->in : pkt->out);
@@ -38,7 +38,6 @@ void nft_reject_ipv6_eval(const struct nft_expr *expr,
38 38
39 data[NFT_REG_VERDICT].verdict = NF_DROP; 39 data[NFT_REG_VERDICT].verdict = NF_DROP;
40} 40}
41EXPORT_SYMBOL_GPL(nft_reject_ipv6_eval);
42 41
43static struct nft_expr_type nft_reject_ipv6_type; 42static struct nft_expr_type nft_reject_ipv6_type;
44static const struct nft_expr_ops nft_reject_ipv6_ops = { 43static const struct nft_expr_ops nft_reject_ipv6_ops = {
diff --git a/net/netfilter/core.c b/net/netfilter/core.c
index 024a2e25c8a4..fea9ef566427 100644
--- a/net/netfilter/core.c
+++ b/net/netfilter/core.c
@@ -17,6 +17,7 @@
17#include <linux/interrupt.h> 17#include <linux/interrupt.h>
18#include <linux/if.h> 18#include <linux/if.h>
19#include <linux/netdevice.h> 19#include <linux/netdevice.h>
20#include <linux/netfilter_ipv6.h>
20#include <linux/inetdevice.h> 21#include <linux/inetdevice.h>
21#include <linux/proc_fs.h> 22#include <linux/proc_fs.h>
22#include <linux/mutex.h> 23#include <linux/mutex.h>
diff --git a/net/netfilter/xt_DSCP.c b/net/netfilter/xt_DSCP.c
index ae8271652efa..3f83d38c4e5b 100644
--- a/net/netfilter/xt_DSCP.c
+++ b/net/netfilter/xt_DSCP.c
@@ -37,7 +37,8 @@ dscp_tg(struct sk_buff *skb, const struct xt_action_param *par)
37 if (!skb_make_writable(skb, sizeof(struct iphdr))) 37 if (!skb_make_writable(skb, sizeof(struct iphdr)))
38 return NF_DROP; 38 return NF_DROP;
39 39
40 ipv4_change_dsfield(ip_hdr(skb), (__u8)(~XT_DSCP_MASK), 40 ipv4_change_dsfield(ip_hdr(skb),
41 (__force __u8)(~XT_DSCP_MASK),
41 dinfo->dscp << XT_DSCP_SHIFT); 42 dinfo->dscp << XT_DSCP_SHIFT);
42 43
43 } 44 }
@@ -54,7 +55,8 @@ dscp_tg6(struct sk_buff *skb, const struct xt_action_param *par)
54 if (!skb_make_writable(skb, sizeof(struct ipv6hdr))) 55 if (!skb_make_writable(skb, sizeof(struct ipv6hdr)))
55 return NF_DROP; 56 return NF_DROP;
56 57
57 ipv6_change_dsfield(ipv6_hdr(skb), (__u8)(~XT_DSCP_MASK), 58 ipv6_change_dsfield(ipv6_hdr(skb),
59 (__force __u8)(~XT_DSCP_MASK),
58 dinfo->dscp << XT_DSCP_SHIFT); 60 dinfo->dscp << XT_DSCP_SHIFT);
59 } 61 }
60 return XT_CONTINUE; 62 return XT_CONTINUE;