Re: [PATCH nf-next] netfilter: nf_tables: support timeouts larger than 23 days

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

 



On Monday 2018-04-16 18:04, Florian Westphal wrote:
>+	u64 max = (u64)(~((u64)0));
>+	max = div_u64(max, NSEC_PER_MSEC);
>+	if (ms >= max)

Why opencode, is there a problem with UINT64_MAX?
Just this:

	u64 max = div_u64(UINT64_MAX, NSEC_PER_MSEC);
--
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