- 13 6月, 2020 2 次提交
-
-
由 Ravik Hasija 提交于
RFC2348, RFC2349: - Option string is case in-sensitive. - Client must generate ERR pkt in case option value mismatch in server OACK - Fix debug print for options Signed-off-by: NRavik Hasija <rahasij@linux.microsoft.com> Reviewed-By: NRamon Fried <rfried.dev@gmail.com>
-
由 Ravik Hasija 提交于
During packet sequence number wraparound the show_block_marker() API was not called, as a result the progress marker doesn't stay within column boundary. Use position in file instead of sequence number to align the marker. Signed-off-by: NRavik Hasija <rahasij@linux.microsoft.com> Reviewed-By: NRamon Fried <rfried.dev@gmail.com>
-
- 19 5月, 2020 2 次提交
-
-
由 Simon Glass 提交于
Move this header out of the common header. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Move this uncommon header out of the common header. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 28 4月, 2020 1 次提交
-
-
由 Patrick Delaunay 提交于
Remove the unneeded define TFTP_MTU_BLOCKSIZE. Since the KConfig migration done by commit b618b370 ("net: Convert CONFIG_TFTP_BLOCKSIZE to Kconfig"), CONFIG_TFTP_BLOCKSIZE is always defined and can be used directly to avoid confusion (fallback to 1468 in code is never used). Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
- 10 3月, 2020 1 次提交
-
-
由 Heinrich Schuchardt 提交于
When printing unsigned numbers use %u. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 25 1月, 2020 2 次提交
-
-
由 Simon Glass 提交于
These three globals relate to image handling. Move them to the image header file. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
These global variables are quite short and generic. In fact the same name is more often used locally for struct members and function arguments. Add a image_ prefix to make them easier to distinguish. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 18 1月, 2020 2 次提交
-
-
由 Simon Glass 提交于
These three globals relate to image handling. Move them to the image header file. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
These global variables are quite short and generic. In fact the same name is more often used locally for struct members and function arguments. Add a image_ prefix to make them easier to distinguish. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 09 12月, 2019 1 次提交
-
-
由 Bin Meng 提交于
During testing of qemu-riscv32 with a 2GiB memory configuration, tftp always fails with a error message: Load address: 0x84000000 Loading: # TFTP error: trying to overwrite reserved memory... It turns out the result of 'tftp_load_addr + tftp_load_size' just overflows (0x100000000) and the test logic in store_block() fails. Fix this by adjusting the end address to ULONG_MAX when overflow is detected. Fixes: a156c47e ("tftp: prevent overwriting reserved memory") Signed-off-by: NBin Meng <bmeng.cn@gmail.com> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 12 8月, 2019 1 次提交
-
-
由 Simon Glass 提交于
Move env_get() over to the new header file. Acked-by: NJoe Hershberger <joe.hershberger@ni.com> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 02 2月, 2019 1 次提交
-
-
由 Simon Goldschmidt 提交于
This fixes the automatic lmb initialization and reservation for boards with more than one DRAM bank. This fixes the CVE-2018-18439 and -18440 fixes that only allowed to load files into the firs DRAM bank from fs and via tftp. Found-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: NSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Tested-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 26 1月, 2019 1 次提交
-
-
由 Simon Goldschmidt 提交于
As a follow-up, change the name of the newly introduced function 'lmb_get_unreserved_size' to 'lmb_get_free_size', which is more appropriate. Signed-off-by: NSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com> [trini: Fix test/lib/lmb.c] Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 25 1月, 2019 1 次提交
-
-
由 Chris Packham 提交于
No mainline board enables CONFIG_MCAST_TFTP and there have been compilation issues with the code for some time. Additionally, it has a potential buffer underrun issue (reported as a side note in CVE-2018-18439). Remove the multicast TFTP code but keep the driver API for the future addition of IPv6. Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Signed-off-by: NChris Packham <judge.packham@gmail.com> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 17 1月, 2019 1 次提交
-
-
由 Simon Goldschmidt 提交于
This fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by using lmb to check for a valid range to store received blocks. Signed-off-by: NSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Acked-by: NJoe Hershberger <joe.hershberger@ni.com> [trini: Always build lib/lmb.o on LMB and lib/fdtdec.o on OF_LIBFDT] Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 27 7月, 2018 1 次提交
-
-
由 Joe Hershberger 提交于
The same basic parsing was implemented in tftp and nfs, so add a helper function to do the work once. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 22 9月, 2017 1 次提交
-
-
由 Jörg Krause 提交于
Fixes: net/tftp.c:811: undefined reference to `efi_set_bootdev' Signed-off-by: NJörg Krause <joerg.krause@embedded.rocks> Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
-
- 16 8月, 2017 1 次提交
-
-
由 Simon Glass 提交于
We are now using an env_ prefix for environment functions. Rename these two functions for consistency. Also add function comments in common.h. Quite a few places use getenv() in a condition context, provoking a warning from checkpatch. These are fixed up in this patch also. Suggested-by: NWolfgang Denk <wd@denx.de> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 08 8月, 2017 1 次提交
-
-
由 Vladimir Zapolskiy 提交于
For strncpy() select a minimal string length of destination and source strings, here DEFAULT_NAME_LEN is preferable to MAX_LEN. Due to the NUL-terminated contents of default_string the change is a noop, however it removes a compilation warning if SH2/3/4 platform specific strncpy() function is used: In file included from include/linux/string.h:21:0, from include/common.h:28, from net/tftp.c:9: net/tftp.c: In function 'tftp_start': arch/sh/include/asm/string.h:52:42: warning: array subscript is above array bounds [-Warray-bounds] : "0" (__dest), "1" (__src), "r" (__src+__n) Signed-off-by: NVladimir Zapolskiy <vz@mleia.com> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 27 5月, 2016 1 次提交
-
-
由 Alexander Graf 提交于
We can now successfully boot EFI applications from disk, but users may want to also run them from a PXE setup. This patch implements rudimentary network support, allowing a payload to send and receive network packets. With this patch, I was able to successfully run grub2 with network access inside of QEMU's -M xlnx-ep108. Signed-off-by: NAlexander Graf <agraf@suse.de>
-
- 29 10月, 2015 1 次提交
-
-
由 Albert ARIBAUD \(3ADEV\) 提交于
TFTP source and destination port variable names are 'tftpsrcp' and 'tftpdstp' in the code, but 'tftpsrcport' and 'tftpdstport' in the README file. Fix the README. Add environment variable 'tftptimeoutcountmax'. As per the comments about the global variable tftp_timeout_count_max, make sure tftptimeoutcountmax is nonnegative. Introduce configuration option CONFIG_NET_TFTP_VARS, which controls whether environment variables tftpblocksize, tftptimeout, and tftptimoueoutcountmax are read by the TFTP client code. CONFIG_NET_TFTP_VARS defaults to y but can be set to n by targets with to tight size contraints. Make bf527-ezkit set CONFIG_NET_TFTP_VARS to n to keep the target size below limit.
-
- 09 9月, 2015 1 次提交
-
-
由 Bin Meng 提交于
Commit 620776d7 "tftp: adjust settings to be suitable for 100Mbit ethernet" causes the following error message when trying to load a file using 'tftp' command via a tftp server. TFTP error: 'Unsupported option(s) requested' (8) This is due to with commit 620776d7 changes, the tftp option 'timeout' value is now set to zero which is an invalid value as per RFC2349 [1]. Valid values range between "1" and "255" seconds, inclusive. With some tftp servers that strictly implement the RFC requirement, it reports such an error message. Revert commit 620776d7 for RFC compliance. [1] https://www.ietf.org/rfc/rfc2349.txtSigned-off-by: NBin Meng <bmeng.cn@gmail.com> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 07 9月, 2015 1 次提交
-
-
由 Lukasz Majewski 提交于
This change gives the ability to reuse the <tftp.h> header file by other subsystems (like e.g. dfu). Without this change compilation error emerges for the legacy update.c file. Signed-off-by: NLukasz Majewski <l.majewski@majess.pl> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 22 8月, 2015 1 次提交
-
-
由 Pavel Machek 提交于
Adjust timouts and retry counts to be suitable for loaded ethernet network. With 5 seconds timeout, 10 retries maximum, tftp is impossible even on local network with single full-speed TCP connection. 100msec timeout should be suitable for most networks tftp is used on, that is local ethernets. Timeout count really needs to be way higher, as lost packets are normal when TCP is running over the same network. Enforce 10msec minimum. Signed-off-by: NPavel Machek <pavel@denx.de> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 13 8月, 2015 1 次提交
-
-
由 Max Krummenacher 提交于
CONFIG_TFTP_TSIZE should limit a tftp downloads progress to 50 '#' chars. Make this work also for small files. If the file size is small, i.e. smaller than 2 tftp block sizes the number of '#' can get much larger. i.e. with a 1 byte file 65000 characters are printed, with a 512 byte file around 500. When using CONFIG TFTP BLOCKSIZE together with CONFIG_IP_DEFRAG the issue is more notable. Signed-off-by: NMax Krummenacher <max.krummenacher@toradex.com> Signed-off-by: NMarcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: NMarek Vasut <marex@denx.de> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 19 4月, 2015 7 次提交
-
-
由 Joe Hershberger 提交于
Finish eliminating CamelCase from net.c and other failures Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
Make a thorough pass through all variables and function names contained within tftp and remove CamelCase and improve naming. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
This patch cleans up the names of internal packet buffer names that are used within the network stack and the functions that use them. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Joe Hershberger 提交于
Use "_ethaddr" at the end of variables and drop CamelCase. Make constant values actually 'const'. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
The variables around the bootfile were inconsistent and used CamelCase. Update them to make the code more readable. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
This patch is simply clean-up to make the IPv4 type that is used match what Linux uses. It also attempts to move all variables that are IP addresses use good naming instead of CamelCase. No functional change. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
Previously the net functions would access memory assuming physmem did not need to be mapped. In sandbox, that's not the case. Now we map the physmem specified by the user in loadaddr to the buffer that represents that space. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 23 10月, 2014 1 次提交
-
-
由 Simon Glass 提交于
If we know the file size, display it after loading the file. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 23 11月, 2013 2 次提交
-
-
由 Andrew Ruder 提交于
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: NAndrew Ruder <andrew.ruder@elecsyscorp.com>
-
由 rockly 提交于
When the block 0 store to the memory of client and timeout at this moment. Because of no ACK packet, the server will send block 0 again, if this client reconnect to the server at this time, TftpBlockWrapOffset will become larger than it should be. Signed-off-by: NRockly <rocklygnome@gmail.com> Patch: 264417
-
- 25 6月, 2013 1 次提交
-
-
由 Kim Phillips 提交于
tftp.c:464:17: warning: cast to restricted __be16 tftp.c:552:29: warning: cast to restricted __be16 tftp.c:640:33: warning: cast to restricted __be16 tftp.c:642:25: warning: cast to restricted __be16 Signed-off-by: NKim Phillips <kim.phillips@freescale.com> Cc: Joe Hershberger <joe.hershberger@gmail.com>
-
- 16 12月, 2012 1 次提交
-
-
由 Simon Glass 提交于
This prints a tftp speed indication after the download completes. This is the 3.6 MiB/s indicator below. Tegra2 (SeaBoard) # tftp ... Using asx0 device TFTP from server 172.22.72.144; our IP address is 172.22.73.81 Filename '/tftpboot/uImage-user-seaboard-1'. Load address: 0x408000 Loading: ################################################# 3.6 MiB/s done Signed-off-by: NSimon Glass <sjg@chromium.org> Acked-by: NIgor Grinberg <grinberg@compulab.co.il>
-
- 12 7月, 2012 1 次提交
-
-
The block argument for store_block can be -1 when the tftp sequence number rolls over (i.e TftpBlock == 0), so the first argument to store_block has to be of type 'int' instead of 'unsigned'. In our environment (gcc 4.4.5 mips toolchain), this causes incorrect 'offset' to be generated for storing the block, and the tftp block with number 0 will be written elsewhere, resulting in a bad block in the downloaded file and a memory corruption. Signed-off-by: NJayachandran Chandrasekharan Nair <jayachandranc@netlogicmicro.com>
-
- 24 5月, 2012 1 次提交
-
-
由 Joe Hershberger 提交于
Call a built-in dummy if none is registered... don't require protocols to register a handler (eliminating dummies) NetConsole now uses the ARP handler when waiting on arp (instead of needing a #define hack in arp.c) Clear handlers at the end of net loop Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-