diff options
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/netfilter/ebt_arpreply.c | 2 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_dnat.c | 2 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_log.c | 3 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_mark.c | 2 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_nflog.c | 11 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_redirect.c | 3 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_snat.c | 2 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_ulog.c | 3 |
8 files changed, 16 insertions, 12 deletions
diff --git a/net/bridge/netfilter/ebt_arpreply.c b/net/bridge/netfilter/ebt_arpreply.c index c298d3deffa4..b444cf835f1e 100644 --- a/net/bridge/netfilter/ebt_arpreply.c +++ b/net/bridge/netfilter/ebt_arpreply.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/netfilter_bridge/ebtables.h> | 15 | #include <linux/netfilter_bridge/ebtables.h> |
16 | #include <linux/netfilter_bridge/ebt_arpreply.h> | 16 | #include <linux/netfilter_bridge/ebt_arpreply.h> |
17 | 17 | ||
18 | static int ebt_target_reply(struct sk_buff *skb, unsigned int hooknr, | 18 | static unsigned int ebt_target_reply(struct sk_buff *skb, unsigned int hooknr, |
19 | const struct net_device *in, const struct net_device *out, | 19 | const struct net_device *in, const struct net_device *out, |
20 | const void *data, unsigned int datalen) | 20 | const void *data, unsigned int datalen) |
21 | { | 21 | { |
diff --git a/net/bridge/netfilter/ebt_dnat.c b/net/bridge/netfilter/ebt_dnat.c index 6ddea2184e95..d58b9e32338e 100644 --- a/net/bridge/netfilter/ebt_dnat.c +++ b/net/bridge/netfilter/ebt_dnat.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/netfilter_bridge/ebtables.h> | 14 | #include <linux/netfilter_bridge/ebtables.h> |
15 | #include <linux/netfilter_bridge/ebt_nat.h> | 15 | #include <linux/netfilter_bridge/ebt_nat.h> |
16 | 16 | ||
17 | static int ebt_target_dnat(struct sk_buff *skb, unsigned int hooknr, | 17 | static unsigned int ebt_target_dnat(struct sk_buff *skb, unsigned int hooknr, |
18 | const struct net_device *in, const struct net_device *out, | 18 | const struct net_device *in, const struct net_device *out, |
19 | const void *data, unsigned int datalen) | 19 | const void *data, unsigned int datalen) |
20 | { | 20 | { |
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c index f3d6d5ec2dc6..2705d7a2a9b5 100644 --- a/net/bridge/netfilter/ebt_log.c +++ b/net/bridge/netfilter/ebt_log.c | |||
@@ -192,7 +192,7 @@ out: | |||
192 | 192 | ||
193 | } | 193 | } |
194 | 194 | ||
195 | static void ebt_log(const struct sk_buff *skb, unsigned int hooknr, | 195 | static unsigned int ebt_log(const struct sk_buff *skb, unsigned int hooknr, |
196 | const struct net_device *in, const struct net_device *out, | 196 | const struct net_device *in, const struct net_device *out, |
197 | const void *data, unsigned int datalen) | 197 | const void *data, unsigned int datalen) |
198 | { | 198 | { |
@@ -209,6 +209,7 @@ static void ebt_log(const struct sk_buff *skb, unsigned int hooknr, | |||
209 | else | 209 | else |
210 | ebt_log_packet(NFPROTO_BRIDGE, hooknr, skb, in, out, &li, | 210 | ebt_log_packet(NFPROTO_BRIDGE, hooknr, skb, in, out, &li, |
211 | info->prefix); | 211 | info->prefix); |
212 | return EBT_CONTINUE; | ||
212 | } | 213 | } |
213 | 214 | ||
214 | static struct ebt_watcher log = | 215 | static struct ebt_watcher log = |
diff --git a/net/bridge/netfilter/ebt_mark.c b/net/bridge/netfilter/ebt_mark.c index b85c73895aeb..e4b91d8e2c6c 100644 --- a/net/bridge/netfilter/ebt_mark.c +++ b/net/bridge/netfilter/ebt_mark.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/netfilter_bridge/ebtables.h> | 18 | #include <linux/netfilter_bridge/ebtables.h> |
19 | #include <linux/netfilter_bridge/ebt_mark_t.h> | 19 | #include <linux/netfilter_bridge/ebt_mark_t.h> |
20 | 20 | ||
21 | static int ebt_target_mark(struct sk_buff *skb, unsigned int hooknr, | 21 | static unsigned int ebt_target_mark(struct sk_buff *skb, unsigned int hooknr, |
22 | const struct net_device *in, const struct net_device *out, | 22 | const struct net_device *in, const struct net_device *out, |
23 | const void *data, unsigned int datalen) | 23 | const void *data, unsigned int datalen) |
24 | { | 24 | { |
diff --git a/net/bridge/netfilter/ebt_nflog.c b/net/bridge/netfilter/ebt_nflog.c index a6954eb3f58a..2c75023b3260 100644 --- a/net/bridge/netfilter/ebt_nflog.c +++ b/net/bridge/netfilter/ebt_nflog.c | |||
@@ -19,11 +19,11 @@ | |||
19 | #include <linux/netfilter_bridge/ebt_nflog.h> | 19 | #include <linux/netfilter_bridge/ebt_nflog.h> |
20 | #include <net/netfilter/nf_log.h> | 20 | #include <net/netfilter/nf_log.h> |
21 | 21 | ||
22 | static void ebt_nflog(const struct sk_buff *skb, | 22 | static unsigned int ebt_nflog(const struct sk_buff *skb, |
23 | unsigned int hooknr, | 23 | unsigned int hooknr, |
24 | const struct net_device *in, | 24 | const struct net_device *in, |
25 | const struct net_device *out, | 25 | const struct net_device *out, |
26 | const void *data, unsigned int datalen) | 26 | const void *data, unsigned int datalen) |
27 | { | 27 | { |
28 | struct ebt_nflog_info *info = (struct ebt_nflog_info *)data; | 28 | struct ebt_nflog_info *info = (struct ebt_nflog_info *)data; |
29 | struct nf_loginfo li; | 29 | struct nf_loginfo li; |
@@ -34,6 +34,7 @@ static void ebt_nflog(const struct sk_buff *skb, | |||
34 | li.u.ulog.qthreshold = info->threshold; | 34 | li.u.ulog.qthreshold = info->threshold; |
35 | 35 | ||
36 | nf_log_packet(PF_BRIDGE, hooknr, skb, in, out, &li, "%s", info->prefix); | 36 | nf_log_packet(PF_BRIDGE, hooknr, skb, in, out, &li, "%s", info->prefix); |
37 | return EBT_CONTINUE; | ||
37 | } | 38 | } |
38 | 39 | ||
39 | static bool ebt_nflog_check(const char *tablename, | 40 | static bool ebt_nflog_check(const char *tablename, |
diff --git a/net/bridge/netfilter/ebt_redirect.c b/net/bridge/netfilter/ebt_redirect.c index d2076f4227cd..7bf1390ad97b 100644 --- a/net/bridge/netfilter/ebt_redirect.c +++ b/net/bridge/netfilter/ebt_redirect.c | |||
@@ -15,7 +15,8 @@ | |||
15 | #include <linux/netfilter_bridge/ebtables.h> | 15 | #include <linux/netfilter_bridge/ebtables.h> |
16 | #include <linux/netfilter_bridge/ebt_redirect.h> | 16 | #include <linux/netfilter_bridge/ebt_redirect.h> |
17 | 17 | ||
18 | static int ebt_target_redirect(struct sk_buff *skb, unsigned int hooknr, | 18 | static unsigned int ebt_target_redirect(struct sk_buff *skb, |
19 | unsigned int hooknr, | ||
19 | const struct net_device *in, const struct net_device *out, | 20 | const struct net_device *in, const struct net_device *out, |
20 | const void *data, unsigned int datalen) | 21 | const void *data, unsigned int datalen) |
21 | { | 22 | { |
diff --git a/net/bridge/netfilter/ebt_snat.c b/net/bridge/netfilter/ebt_snat.c index 5a5a16acca00..d13f05d2620e 100644 --- a/net/bridge/netfilter/ebt_snat.c +++ b/net/bridge/netfilter/ebt_snat.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/netfilter_bridge/ebtables.h> | 16 | #include <linux/netfilter_bridge/ebtables.h> |
17 | #include <linux/netfilter_bridge/ebt_nat.h> | 17 | #include <linux/netfilter_bridge/ebt_nat.h> |
18 | 18 | ||
19 | static int ebt_target_snat(struct sk_buff *skb, unsigned int hooknr, | 19 | static unsigned int ebt_target_snat(struct sk_buff *skb, unsigned int hooknr, |
20 | const struct net_device *in, const struct net_device *out, | 20 | const struct net_device *in, const struct net_device *out, |
21 | const void *data, unsigned int datalen) | 21 | const void *data, unsigned int datalen) |
22 | { | 22 | { |
diff --git a/net/bridge/netfilter/ebt_ulog.c b/net/bridge/netfilter/ebt_ulog.c index e13a005f58ad..5f86f555f6d1 100644 --- a/net/bridge/netfilter/ebt_ulog.c +++ b/net/bridge/netfilter/ebt_ulog.c | |||
@@ -246,13 +246,14 @@ static void ebt_log_packet(u_int8_t pf, unsigned int hooknum, | |||
246 | ebt_ulog_packet(hooknum, skb, in, out, &loginfo, prefix); | 246 | ebt_ulog_packet(hooknum, skb, in, out, &loginfo, prefix); |
247 | } | 247 | } |
248 | 248 | ||
249 | static void ebt_ulog(const struct sk_buff *skb, unsigned int hooknr, | 249 | static unsigned int ebt_ulog(const struct sk_buff *skb, unsigned int hooknr, |
250 | const struct net_device *in, const struct net_device *out, | 250 | const struct net_device *in, const struct net_device *out, |
251 | const void *data, unsigned int datalen) | 251 | const void *data, unsigned int datalen) |
252 | { | 252 | { |
253 | const struct ebt_ulog_info *uloginfo = data; | 253 | const struct ebt_ulog_info *uloginfo = data; |
254 | 254 | ||
255 | ebt_ulog_packet(hooknr, skb, in, out, uloginfo, NULL); | 255 | ebt_ulog_packet(hooknr, skb, in, out, uloginfo, NULL); |
256 | return EBT_CONTINUE; | ||
256 | } | 257 | } |
257 | 258 | ||
258 | static bool ebt_ulog_check(const char *tablename, unsigned int hookmask, | 259 | static bool ebt_ulog_check(const char *tablename, unsigned int hookmask, |