summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorWalter Stoll <walter.stoll@duagon.com>2021-10-12 11:01:59 +0000
committerRamon Fried <rfried.dev@gmail.com>2021-11-23 09:57:56 +0200
commitd4a660aafa12646c64eac2081978fb80cddc0e93 (patch)
tree0a4898d94b5a6132a75465fc408ec359a8e5ba04 /net
parent0997bb46aa8b8256ccec66f26bc7b2d0e2e60199 (diff)
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 <walter.stoll@duagon.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net')
-rw-r--r--net/bootp.c2
1 files changed, 1 insertions, 1 deletions
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 */