• Andrew Ruder's avatar
    net: tftpsrv: Get correct client MAC address · 8e52533d
    Andrew Ruder authored
    NetServerEther was not being cleared in the tftp server code, so the
    destination MAC address would be whatever the last destination MAC
    address was.
    
    Scenario:
    U-Boot:
    	dhcp
    	tftpsrv
    Host:
    	Send device WRQ
    Device:
    	Responds with ACK to dhcp server mac address with
    	host ip address
    
    By clearing NetServerEther, we force a lookup of the host MAC address
    to go with the associated host IP.
    Signed-off-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
    8e52533d
tftp.c 22.6 KB