Re: [PATCH] IPv6: Fix the data length of get destination options with short length
From: YOSHIFUJI Hideaki / 吉藤英明 <hidden>
Date: 2008-05-29 08:41:37
From: YOSHIFUJI Hideaki / 吉藤英明 <hidden>
Date: 2008-05-29 08:41:37
In article [ref] (at Thu, 29 May 2008 10:29:47 +0800), Yang Hongyang [off-list ref] says:
YOSHIFUJI Hideaki / 吉藤英明 wrote:quoted
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