[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080529.174208.119722724.yoshfuji@linux-ipv6.org>
Date: Thu, 29 May 2008 17:42:08 +0900 (JST)
From: YOSHIFUJI Hideaki / 吉藤英明
<yoshfuji@...ux-ipv6.org>
To: yanghy@...fujitsu.com
Cc: davem@...set.davemloft.net, yjwei@...fujitsu.com,
netdev@...r.kernel.org, wangchen@...fujitsu.com,
yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH] IPv6: Fix the data length of get destination options
with short length
In article <483E151B.2000804@...fujitsu.com> (at Thu, 29 May 2008 10:29:47 +0800), Yang Hongyang <yanghy@...fujitsu.com> says:
> YOSHIFUJI Hideaki / 吉藤英明 wrote:
>
> > POSIX says that the object pointed to by the option_len argument shall be
> > modified to indicate the actual length of the value.
> > Do you think this change conforms to the spec?
> >
>
> We use the codes below to get the destination options,the length cnt is half of the option length.
:
Well, actually I reread the spec., and I've found that option_len is
undefined if option_len is not enough for the value.
Current behavior seems okay (according to the spec.), but I'm going to apply
this for consistency with other sockopts if no objections.
--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