Re: [PATCH nf 1/2] netfilter: conntrack: place 'new' timeout in first location too

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

 



On Fri, Aug 24, 2018 at 08:43:35AM +0200, Florian Westphal wrote:
> tcp, sctp and dccp trackers re-use the userspace ctnetlink states
> to index their timeout arrays, which means timeout[0] is never
> used.  Copy the 'new' state (syn-sent, dccp-request, ..) to 0 as well
> so external users can simply read it off timeouts[0] without need to
> differentiate dccp/sctp/tcp and udp/icmp/gre/generic.
> 
> The alternative is to map all array accesses to 'i - 1', but that
> is a much more intrusive change.

Applied, thanks Florian.



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

  Powered by Linux