]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - net/tftp.c
arc: merge common start-up code between ARC and ARCv2
[people/ms/u-boot.git] / net / tftp.c
index 2e06808d16db42cf8c1fd42bce5109d10e39ec8d..0a2c53302cab1edacacd88f439b888f4837e7d4a 100644 (file)
@@ -299,6 +299,8 @@ static void tftp_complete(void)
                putc('#');
                TftpNumchars++;
        }
+       puts("  ");
+       print_size(TftpTsize, "");
 #endif
        time_start = get_timer(time_start);
        if (time_start > 0) {
@@ -849,6 +851,9 @@ TftpStartServer(void)
 
        TftpState = STATE_RECV_WRQ;
        net_set_udp_handler(TftpHandler);
+
+       /* zero out server ether in case the server ip has changed */
+       memset(NetServerEther, 0, 6);
 }
 #endif /* CONFIG_CMD_TFTPSRV */