Re: [PATCH] ipt_addrtype: Fix matching of inverted destination address type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 2008-08-01 17:36, Anders Grafström wrote:
> +++ b/net/ipv4/netfilter/ipt_addrtype.c
> @@ -70,7 +70,7 @@ addrtype_mt_v1(const struct sk_buff *skb, const struct
> net_device *in,
> 		       (info->flags & IPT_ADDRTYPE_INVERT_SOURCE);
> 	if (ret && info->dest)
> 		ret &= match_type(dev, iph->daddr, info->dest) ^
> -		       (info->flags & IPT_ADDRTYPE_INVERT_DEST);
> +		       (info->flags & IPT_ADDRTYPE_INVERT_DEST) >> 1;

I'd just use !!(info->flags & IPT_ADDRTYPE_INVERT_DEST);
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux