On Thu, Jan 14, 2010 at 03:04:54AM -0800, David Miller wrote: > From: Andi Kleen <[email protected]> > Date: Thu, 14 Jan 2010 11:58:13 +0100 > > > Stephen Hemminger <[email protected]> writes: > >> > >> Only TCP is supported, but could also be added to UDP, DCCP, SCTP > >> if desired. > > > > Perhaps I'm blind, but where is the default set if the socket > > option is not used? > > Socket allocation memset()'s it to zero.
Yes, but there's no special case for zero in the check path? It's just + if (iph->ttl < inet_sk(sk)->min_ttl) + goto discard_and_relse; I'm probably missing something, but naively I would expect all packets with ttl > 0 to be discarded then when min_ttl is zero. -Andi -- [email protected] -- Speaking for myself only. -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
