summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-03-18 15:38:23 +0300
committerTom Rini <trini@konsulko.com>2022-03-25 15:01:15 +0300
commit5842c8107d9a13b958fa894b22485b32e078f75b (patch)
tree82685b53c87cd4a2483181e573de6503f1f129fc /net
parent03d14ccdf6c4ae56e3351ca828d9b1ac6467aea5 (diff)
downloadu-boot-5842c8107d9a13b958fa894b22485b32e078f75b.tar.xz
Convert CONFIG_TFTP_PORT to Kconfig
This converts the following to Kconfig: CONFIG_TFTP_PORT Cc: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'net')
-rw-r--r--net/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/Kconfig b/net/Kconfig
index 650551606d..af6856f7fc 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -83,6 +83,24 @@ config TFTP_BLOCKSIZE
almost-MTU block sizes.
You can also activate CONFIG_IP_DEFRAG to set a larger block.
+config TFTP_PORT
+ bool "Set TFTP UDP source/destination ports via the environment"
+ help
+ If this is defined, the environment variable tftpsrcp is used to
+ supply the TFTP UDP source port value. If tftpsrcp isn't defined,
+ the normal pseudo-random port number generator is used.
+
+ Also, the environment variable tftpdstp is used to supply the TFTP
+ UDP destination port value. If tftpdstp isn't defined, the normal
+ port 69 is used.
+
+ The purpose for tftpsrcp is to allow a TFTP server to blindly start
+ the TFTP transfer using the pre-configured target IP address and UDP
+ port. This has the effect of "punching through" the (Windows XP)
+ firewall, allowing the remainder of the TFTP transfer to proceed
+ normally. A better solution is to properly configure the firewall,
+ but sometimes that is not allowed.
+
config TFTP_WINDOWSIZE
int "TFTP window size"
default 1