[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 05 May 2010 11:36:31 -0400
From: Brian Haley <brian.haley@...com>
To: David Miller <davem@...emloft.net>
CC: dlstevens@...ibm.com, enh@...gle.com, netdev@...r.kernel.org,
netdev-owner@...r.kernel.org
Subject: Re: linux kernel's IPV6_MULTICAST_HOPS default is 64; should be 1?
David Miller wrote:
> From: Brian Haley <brian.haley@...com>
> Date: Tue, 04 May 2010 10:40:58 -0400
>
>> Specifying -1 for setsockopt(IPV6_MULTICAST_HOPS) should set the socket
>> value back to the system default value of IPV6_DEFAULT_MCASTHOPS (1).
>>
>> Signed-off-by: Brian Haley <brian.haley@...com>
>
> In cast it wasn't clear from my other reply, I'm not applying this
> patch because I intentionally left this behavior there based upon
> some comments from Elliot in that this lets developers get the
> old default by asking for "-1" explicitly with a setsockopt.
I now see that in Elliot's email, but I think it's incorrect. The RFC
says that setting it to -1 should get you the kernel default, which is
now 1. Without this change, setting it to -1 will get you 64, the
old behavior. If the user wants to, they can always just set it to
64 themselves, that's better than assuming when you set it to -1
you're going to get 64.
I'm just trying to make this follow the RFC and behave like other OSes
for consistency.
-Brian
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists