]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: dhcp6: Fix OPT_BOOTFILE_PARAM parsing
authorSean Edmond <seanedmond@microsoft.com>
Tue, 25 Jul 2023 23:13:29 +0000 (16:13 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 5 Nov 2023 18:28:40 +0000 (13:28 -0500)
commitb2369a19b8249ae45e501dc453a099f2a20a320f
tree452334a24895d2eddcbf984a2f73f7b616d14486
parent5d260d08009e9bf4b4aec0e414e68ab30e784602
net: dhcp6: Fix OPT_BOOTFILE_PARAM parsing

RFC 5970 states that OPT_BOOTFILE_PARAM (option 60) can be
multiple parameters that start with a 16-bit length field followed
by the parameter. For example:
[ param-len 1 (16-bits) ] [ parameter 1 (variable length) ]

This fix ensure we're considering "param-len 1" in the parsing.

Signed-off-by: Sean Edmond <seanedmond@microsoft.com>
net/dhcpv6.c