Skip to content
Snippets Groups Projects
Forked from KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
  • Andrew Ruder's avatar
    8e52533d
    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
    History
    net: tftpsrv: Get correct client MAC address
    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>