mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
net: Don't write the "serverip" env var if configured not to
Before this patch, bootp would not overwrite the value, but the value was still clobbered in the env Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
e711101581
commit
a3e1a727fe
1 changed files with 6 additions and 2 deletions
|
@ -153,12 +153,16 @@ static void netboot_update_env (void)
|
|||
ip_to_string (NetOurIP, tmp);
|
||||
setenv ("ipaddr", tmp);
|
||||
}
|
||||
|
||||
#if !defined(CONFIG_BOOTP_SERVERIP)
|
||||
/*
|
||||
* Only attempt to change serverip if net/bootp.c:BootpCopyNetParams()
|
||||
* could have set it
|
||||
*/
|
||||
if (NetServerIP) {
|
||||
ip_to_string (NetServerIP, tmp);
|
||||
setenv ("serverip", tmp);
|
||||
}
|
||||
|
||||
#endif
|
||||
if (NetOurDNSIP) {
|
||||
ip_to_string (NetOurDNSIP, tmp);
|
||||
setenv ("dnsip", tmp);
|
||||
|
|
Loading…
Add table
Reference in a new issue