• Alexander Graf's avatar
    net: Add option to prefer bootp/dhcp serverip · bdce340c
    Alexander Graf authored
    Currently we can choose between 2 different types of behavior for the
    serverip variable:
    
      1) Always overwrite it with the DHCP server IP address (default)
      2) Ignore what the DHCP server says (CONFIG_BOOTP_SERVERIP)
    
    This patch adds a 3rd option:
    
      3) Use serverip from DHCP if no serverip is given
         (CONFIG_BOOTP_PREFER_SERVERIP)
    
    With this new option, we can have the default case that a boot file gets
    loaded from the DHCP provided TFTP server work while allowing users to
    specify their own serverip variable to explicitly use a different tftp
    server.
    Signed-off-by: Alexander Graf's avatarAlexander Graf <agraf@suse.de>
    Acked-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
    bdce340c
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
arp.c Loading commit data...
arp.h Loading commit data...
bootp.c Loading commit data...
bootp.h Loading commit data...
cdp.c Loading commit data...
cdp.h Loading commit data...
checksum.c Loading commit data...
dns.c Loading commit data...
dns.h Loading commit data...
eth-uclass.c Loading commit data...
eth_common.c Loading commit data...
eth_internal.h Loading commit data...
eth_legacy.c Loading commit data...
fastboot.c Loading commit data...
link_local.c Loading commit data...
link_local.h Loading commit data...
net.c Loading commit data...
net_rand.h Loading commit data...
nfs.c Loading commit data...
nfs.h Loading commit data...
ping.c Loading commit data...
ping.h Loading commit data...
rarp.c Loading commit data...
rarp.h Loading commit data...
sntp.c Loading commit data...
sntp.h Loading commit data...
tftp.c Loading commit data...
wol.c Loading commit data...
wol.h Loading commit data...