Re: [NETFILTER][PATCH] Re: Question about the hashlimit network mask patch

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

 



On Wed, Mar 26, 2008 at 08:44:20AM +0100, Jan Engelhardt wrote:
> +		return htonl(ntohl(a) & ~(~(u_int32_t)0 >> l));

BTW, isn't this way faster:

	return a & htonl(~(~(u_int32_t)0 >> l));

 -- Michal Miroslaw
--
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