[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1255338199.2878.16.camel@cirrhata.linux-ipv6.org>
Date: Mon, 12 Oct 2009 18:03:19 +0900
From: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
To: David Miller <davem@...emloft.net>
Cc: eric.dumazet@...il.com, netdev@...r.kernel.org
Subject: Re: [RESEND PATCH net-next-2.6 3/3] ipv6 sit: Set relay to 0.0.0.0
directly if relay_prefixlen == 0.
David Miller wrote:
> From: Eric Dumazet <eric.dumazet@...il.com>
> Date: Mon, 12 Oct 2009 09:32:41 +0200
>
> > Sorry I dont get it
> >
> > u32 val = any_value ;
> > u32 relay_prefix = val & htonl(0xffffffffUL << 32) should give 0
> >
> > If not, something is broken and should be fixed.
>
> Indeed, it's "x >> 32" which is undefined and has to be done as
> something like "(x >> 31) >> 1" when performed on a u32 object.
>
> Yoshfuji is this patch really necessary?
Well, yes.
6rd allows 32 bit suffix (0 bit prefix).
--yoshfuji
--
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