[NETFILTER]: fix ebtable targets return
authorJoonwoo Park <joonwpark81@gmail.com>
Sun, 24 Feb 2008 04:22:27 +0000 (20:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Feb 2008 04:22:27 +0000 (20:22 -0800)
The function ebt_do_table doesn't take NF_DROP as a verdict from the targets.

Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/netfilter/ebt_dnat.c
net/bridge/netfilter/ebt_redirect.c
net/bridge/netfilter/ebt_snat.c

index 1ec671d93ddaf455069ab8a5c90ab1fdcf7a2db6..ca64c1cc1b47a1f29d88e5e31f1e04e686ee9895 100644 (file)
@@ -21,7 +21,7 @@ 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;
+               return EBT_DROP;
 
        memcpy(eth_hdr(skb)->h_dest, info->mac, ETH_ALEN);
        return info->target;
index bfb9f74e21169badc135df30245386f77518eca8..b8afe850cf1ec1ec77dc4773e173ea96608870dc 100644 (file)
@@ -22,7 +22,7 @@ static int ebt_target_redirect(struct sk_buff *skb, unsigned int hooknr,
        const struct ebt_redirect_info *info = data;
 
        if (!skb_make_writable(skb, 0))
-               return NF_DROP;
+               return EBT_DROP;
 
        if (hooknr != NF_BR_BROUTING)
                memcpy(eth_hdr(skb)->h_dest,
index 204f9965fb9ef8b3fcdbcddeae583f66808e4e3f..5425333dda03b82c3307078a0fae3486cf310d75 100644 (file)
@@ -23,7 +23,7 @@ static int ebt_target_snat(struct sk_buff *skb, unsigned int hooknr,
        const struct ebt_nat_info *info = data;
 
        if (!skb_make_writable(skb, 0))
-               return NF_DROP;
+               return EBT_DROP;
 
        memcpy(eth_hdr(skb)->h_source, info->mac, ETH_ALEN);
        if (!(info->target & NAT_ARP_BIT) &&