projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NETFILTER]: fix ebtable targets return
[firefly-linux-kernel-4.4.55.git]
/
net
/
bridge
/
netfilter
/
ebt_dnat.c
diff --git
a/net/bridge/netfilter/ebt_dnat.c
b/net/bridge/netfilter/ebt_dnat.c
index e700cbf634c24826c9b257364b77a969d884af1a..ca64c1cc1b47a1f29d88e5e31f1e04e686ee9895 100644
(file)
--- a/
net/bridge/netfilter/ebt_dnat.c
+++ b/
net/bridge/netfilter/ebt_dnat.c
@@
-20,8
+20,8
@@
static int ebt_target_dnat(struct sk_buff *skb, unsigned int hooknr,
{
const struct ebt_nat_info *info = data;
- if (skb_make_writable(skb, 0))
- return
NF
_DROP;
+ if (
!
skb_make_writable(skb, 0))
+ return
EBT
_DROP;
memcpy(eth_hdr(skb)->h_dest, info->mac, ETH_ALEN);
return info->target;