summaryrefslogtreecommitdiffstats
path: root/lib/libstand/tftp.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a machine check abort caused by the EFI loader trying to open amarcel2003-03-031-1/+2
| | | | | | | | | | | | | | | | | | file in the NFS file system when the underlying device is not a network device. A Sparc64 specific hack for this exact problem was already present (nfs.c:1.9, tftp.c:1.10), but the problem is not specific to Sparc64. The hack has been promoted to a non-i386 test because on non-i386 architectures it's either impossible to have non-network devices coexist in the same loader with the NFS FS, or network and non-network device coexist and NFS filesystems can only be used on top of network devices. I believe i386 pxeboot is where this does not hold. The root cause of this problem is in open.c where each file system is tried until no more file systems exist or a file system returns success. There's no notion of a list of valid file systems given the underlying device and the non-existence of a file can cause the invalid combination to be tried.
* Add a hack (kludge?) to avoid trying to access files backed by diskjake2002-07-071-0/+4
| | | | devices as though they were backed by network devices.
* Remove 'register' keyword.obrien2002-03-211-4/+4
|
* Add __FBSDID()s to libstanddillon2001-09-301-2/+3
|
* Reset errno so that subsequent TFTP requests don't fail after themikeh2001-06-301-0/+2
| | | | | | | first failure. PR: misc/25502 MFC after: 2 weeks
* The shortest valid TFTP packet is 4 bytes, not 8.msmith2001-05-281-1/+1
| | | | | | PR: misc/25503 Submitted by: Jim Browne <jbrowne@jbrowne.com> MFC after: 1 week
* When TFTP tries to open a file, it is expecting struct open_fileps2000-12-081-0/+3
| | | | | | | | member f_devdata to be a pointer to a socket number. When currdev is "pxe", that assumption is correct. When currdev is "disk*", that assumption is incorrect. Submitted by: Jim Browne <jbrowne@jbrowne.com>
* Add a readdir function to the loader fsops vector, and implement thejlemon2000-04-291-1/+8
| | | | functionality for some of the filesystesms.
* Break out sendudp and readudp from net.c. This is for PXE, so itps2000-04-081-1/+2
| | | | can use its own UDP interface.
* Path arguments to *_open functions should be const, but we were manglingmsmith1998-09-181-4/+11
| | | | | | them. Submitted by: write-protected text segment in BTX
* This is libstand; a support library for standalone executables (eg. bootstrapmsmith1998-08-201-0/+400
modules). Obtained from: NetBSD, with some architectural changes and many additions.
OpenPOWER on IntegriCloud