summaryrefslogtreecommitdiff
path: root/core/fs/pxe/tftp.h
Commit message (Collapse)AuthorAgeFilesLines
* libupload: don't error out because the tftp functions are unavailableH. Peter Anvin2016-04-061-1/+3
| | | | | | | | Provide weak stubs for the case where the tftp functions aren't available. This prevents link failures for the case of running on top of non-network cores. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* libupload: Reworking tftp support to use core functionsErwan Velu2015-09-041-0/+11
| | | | | | | | | | | | | | | The libupload was using the pxe_call() directly for doing the tftp uploading stuff. This was only working with pxelinux. Since we do have lpxelinux, the libupload should use the core functions to get rid of thoses direct PXE calls. This patch does - add a tftp_put() function which supports core functions. - implement the call from libupload making the code much more simplier As a result {l}pxelinux can upload data to a tftp server is a similar way. HDT is getting the benefit of such code.
* pxe: make tftp_pktbuf a dynamic bufferH. Peter Anvin2011-04-231-0/+6
| | | | | | | We don't need tftp_pktbuf for the TCP-based protocols, so allocate it on demand. It should be possible to get rid of it for TFTP as well. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pxe: use the unified URL parsing frameworksyslinux-4.10-pre2H. Peter Anvin2011-04-231-0/+48
Use the unified URL parsing framework for TFTP and HTTP. This should also make it easier to add new protocols (e.g. FTP) in the near future. Note that HTTP redirects are still handled wrong: they really should be sent all the way back to the top of URL parsing; there are sites in the field which redirect to FTP URLs, for example. Signed-off-by: H. Peter Anvin <hpa@zytor.com>