From: Walter Stoll Date: Tue, 12 Oct 2021 11:01:59 +0000 (+0000) Subject: net: bootp: Correct VCI string transmission X-Git-Tag: v2025.01-rc5-pxa1908~1591^2~20^2~6 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-favicon.png?a=commitdiff_plain;h=d4a660aafa12646c64eac2081978fb80cddc0e93;p=u-boot.git net: bootp: Correct VCI string transmission The VCI string sent during bootp of U-Boot-SPL is corrupt. This is because the byte counter is not adjusted within the bootp_extended() function when the VCI string is added. We fix this. Signed-off-by: Walter Stoll Reviewed-by: Simon Glass --- diff --git a/net/bootp.c b/net/bootp.c index 655b9cceb6..58e30cd6b0 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -647,7 +647,7 @@ static int bootp_extended(u8 *e) *e++ = (576 - 312 + OPT_FIELD_SIZE) & 0xff; #endif - add_vci(e); + e = add_vci(e); #if defined(CONFIG_BOOTP_SUBNETMASK) *e++ = 1; /* Subnet mask request */