mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
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>
This commit is contained in:
parent
0997bb46aa
commit
d4a660aafa
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue