[PATCH 2/2] udhcpc6: ignore invalid OPTION_IAADDR
Brad Kemp
brad at beechwoods.com
Thu May 24 16:28:35 UTC 2018
https://tools.ietf.org/html/rfc3315#section-22.6 <https://tools.ietf.org/html/rfc3315#section-22.6>
> On May 24, 2018, at 11:58 AM, Baruch Siach <baruch at tkos.co.il> wrote:
>
> Hi David,
>
> On Thu, May 24, 2018 at 08:30:16AM -0700, David Decotigny wrote:
>> Ref: http://go/rfc/3315#section-22.6 <http://go/rfc/3315#section-22.6>
>
> This URL doesn't work here. Is is kind of Google internal thing?
>
> baruch
>
>> Signed-off-by: David Decotigny <ddecotig at gmail.com>
>> ---
>> networking/udhcp/d6_dhcpc.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
>> index 39b0501ad..c6276f97b 100644
>> --- a/networking/udhcp/d6_dhcpc.c
>> +++ b/networking/udhcp/d6_dhcpc.c
>> @@ -288,6 +288,10 @@ static void option_to_env(const uint8_t *option, const uint8_t *option_end)
>> * | valid-lifetime |
>> * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>> */
>> + /* Make sure payload contains an address */
>> + if (option[3] < 24)
>> + break;
>> +
>> sprint_nip6(ipv6str, option + 4);
>> *new_env() = xasprintf("ipv6=%s", ipv6str);
>
> --
> http://baruch.siach.name/blog/ <http://baruch.siach.name/blog/> ~. .~ Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
> - baruch at tkos.co.il <mailto:baruch at tkos.co.il> - tel: +972.52.368.4656, http://www.tkos.co.il <http://www.tkos.co.il/> -
> _______________________________________________
> busybox mailing list
> busybox at busybox.net <mailto:busybox at busybox.net>
> http://lists.busybox.net/mailman/listinfo/busybox <http://lists.busybox.net/mailman/listinfo/busybox>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20180524/900a68cc/attachment.html>
More information about the busybox
mailing list