diff options
author | Wolfgang Denk <wd@pollux.(none)> | 2005-09-24 21:25:46 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@pollux.(none)> | 2005-09-24 21:25:46 (GMT) |
commit | 28cb9375846b4f072f80536549713a6bc8fcf298 (patch) | |
tree | 425d1a1ac55715461f3445c117612b972bc25fa5 /net/tftp.c | |
parent | ecb0ccd9c260701183bc8d35966e65e6a2feb2f6 (diff) | |
download | u-boot-fsl-qoriq-28cb9375846b4f072f80536549713a6bc8fcf298.tar.xz |
Update for TFTP using a fixed UDP port
Use the approved environment variable names. Added "tftpdstp" to
allow ports other than 69 per Tolunay Orkun's recommendation.
Patch by Jerry Van Baren, 12 Jan 2005
Diffstat (limited to 'net/tftp.c')
-rw-r--r-- | net/tftp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -371,7 +371,10 @@ TftpStart (void) /* Use a pseudo-random port unless a specific port is set */ TftpOurPort = 1024 + (get_timer(0) % 3072); #ifdef CONFIG_TFTP_PORT - if ((ep = getenv("tftpport")) != NULL) { + if ((ep = getenv("tftpdstp")) != NULL) { + TftpServerPort = simple_strtol(ep, NULL, 10); + } + if ((ep = getenv("tftpsrcp")) != NULL) { TftpOurPort= simple_strtol(ep, NULL, 10); } #endif |