search for: tftp_open

Displaying 14 results from an estimated 14 matches for "tftp_open".

2015 Sep 04
2
[syslinux:master] tftp: Report server IP address on debug message
...e/tftp.c > index 446da63..113ede2 100644 > --- a/core/fs/pxe/tftp.c > +++ b/core/fs/pxe/tftp.c > @@ -259,7 +259,16 @@ wait_pkt: > } else { > /* Make sure the packet actually came from the server and > is long enough for a TFTP opcode */ > - dprintf("tftp_open: got packet buflen=%d\n", buf_len); > + dprintf("tftp_open: got packet buflen=%d from server %u.%u.%u.%u(%u.%u.%u.%u)\n", > + buf_len, > + ((uint8_t *)&src_ip)[0], > + ((uint8_t *)&src_ip)[1], > + ((uint8_t *)&src_ip)[2], > + ((uint8_t *)&a...
2015 Sep 05
1
[syslinux:master] tftp: Report server IP address on debug message
...p.c > >> +++ b/core/fs/pxe/tftp.c > >> @@ -259,7 +259,16 @@ wait_pkt: > >> } else { > >> /* Make sure the packet actually came from the server and > >> is long enough for a TFTP opcode */ > >> - dprintf("tftp_open: got packet buflen=%d\n", buf_len); > >> + dprintf("tftp_open: got packet buflen=%d from server > %u.%u.%u.%u(%u.%u.%u.%u)\n", > >> + buf_len, > >> + ((uint8_t *)&src_ip)[0], > >> +...
2015 Jul 09
2
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
...from Patrick's repo, .Syslinux.efi is downloaded, there is an ARP and then nothing hits the wire from the client. The internal failing scenario is core_udp_sendto in syslinux calls Udp4Configure BIOS command, (I will grab the packet.) BIOS returns an EFI_UNSUPPORTED (EFIERR (3)) error but tftp_open still tries to transmit a packet and waits for a reply (core_udp_recv). The loop timeout values are long enough that the watchdog eventually times out and reboots the client. In tftp.c (tftp_open) starting at line 240: sendreq: timeout = *timeout_ptr++; if (!timeout) return;...
2015 Sep 05
0
[syslinux:master] tftp: Report server IP address on debug message
...>> --- a/core/fs/pxe/tftp.c >> +++ b/core/fs/pxe/tftp.c >> @@ -259,7 +259,16 @@ wait_pkt: >> } else { >> /* Make sure the packet actually came from the server and >> is long enough for a TFTP opcode */ >> - dprintf("tftp_open: got packet buflen=%d\n", buf_len); >> + dprintf("tftp_open: got packet buflen=%d from server %u.%u.%u.%u(%u.%u.%u.%u)\n", >> + buf_len, >> + ((uint8_t *)&src_ip)[0], >> + ((uint8_t *)&amp...
2013 Dec 01
0
[PATCH] core: Bad read of file size over TFTP
...{ - { "tsize", IFIELD(size) }, - { "blksize", PFIELD(tftp_blksize) }, -}; -static const int tftp_nopts = sizeof tftp_options / sizeof tftp_options[0]; - static void tftp_error(struct inode *file, uint16_t errnum, const char *errstr); @@ -209,8 +194,6 @@ void tftp_open(struct url_info *url, int flags, struct inode *inode, static const char rrq_tail[] = "octet\0""tsize\0""0\0""blksize\0""1408"; char rrq_packet_buf[2+2*FILENAME_MAX+sizeof rrq_tail]; char reply_packet_buf[PKTBUF_SIZE]; - const struc...
2015 Jul 08
4
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
from: Jeff Sloan <jeff_sloan at selinc.com> Based on commit: 9314e330 Setting UseDefaultAddress to TRUE uses invalid StationAddress and SubnetMask values. This is in a network with a local TFTP/MTFTP server. If the server is local, on the same subnet, UseDefaultAddress is set to false and the client ip and subnetmask are loaded, otherwise set UseDefaultAddress to TRUE. This is added to
2013 Jun 25
2
syslinux6 EFI fail to boot via pxe
> > Have you tried 5.10 in your environment on a BIOS machine to see whether > that works and which port numbers it uses? > > -- > Matt Fleming, Intel Open Source Technology Center > Hi Matt, I think I've found the problem. In /core/fs/pxe/tftp.c in function tftp_open: First you do a core_udp_connect to port 69 (TFTP) at line 264. -> source port = x After that you sent the filerequest at line 265 You receive the fileinfo and also the used port (y) for the transfer in line 273 Than you perform a core_udp_disconnect at line 286 Now you perform a new core_udp_co...
2013 Mar 28
1
Makefile race condition with parallel make
When attempting to build syslinux in parallel (make -j5), I encountered the following error at the end: rm -f liblpxelinux.a ar cq liblpxelinux.a rawcon.o ./fs/pxe/dhcp_option.o ./fs/pxe/pxe.o ./fs/pxe/tftp.o ./fs/pxe/urlparse.o ./lwip/src/netif/ethernetif.o ./lwip/src/netif/etharp.o ./lwip/src/netif/slipif.o ./lwip/src/netif/ppp/md5.o ./lwip/src/netif/ppp/randm.o ./lwip/src/netif/ppp/chpms.o
2013 Jun 25
0
syslinux6 EFI fail to boot via pxe
On Tue, 25 Jun, at 01:51:52PM, Michael Szerencsits wrote: > Hi Matt, > > I think I've found the problem. Thanks for doing this analysis. > In /core/fs/pxe/tftp.c in function tftp_open: > First you do a core_udp_connect to port 69 (TFTP) at line 264. -> source port = x > After that you sent the filerequest at line 265 > You receive the fileinfo and also the used port (y) for the transfer in line 273 > Than you perform a core_udp_disconnect at line 286 > Now you...
2015 Jan 15
0
PXE Error Reporting
...flags, &fp->i.fd); if (handle < 0) { close(fd); - errno = ENOENT; + if (!errno) + errno = ENOENT; return -1; } diff --git a/core/fs/pxe/tftp.c b/core/fs/pxe/tftp.c index 446da63..c89d3bf 100644 --- a/core/fs/pxe/tftp.c +++ b/core/fs/pxe/tftp.c @@ -205,6 +205,7 @@ void tftp_open(struct url_info *url, int flags, struct inode *inode, uint64_t opdata; uint16_t src_port; uint32_t src_ip; + uint16_t error_code; (void)redir; /* TFTP does not redirect */ (void)flags; @@ -280,6 +281,16 @@ wait_pkt: switch (opcode) { case TFTP_ERROR:...
2013 Jun 24
2
syslinux6 EFI fail to boot via pxe
Hello, I tried to boot the new syslinux.efi (32bit) from the released syslinux 6 via PXE. In a wireshark trace I can see that the syslinux.efi was loaded successfully via TFTP. Then the client try to load ldlinux.e32. I see the request and also the acknoledgement in the trace. After that the client try to load the file, but the source port is changed to tftp request port + 1. For example:
2015 Jan 15
3
PXE Error Reporting
Sebastian, On 01/15/2015 12:49 AM, Sebastian Herbszt wrote: > which version of pxelinux were you trying? Looks like < 5.x. the one from Fedora 20, syslinux-4.05. It turns out that pxelinux.0 from Fedora 21, syslinux-6.03, reports "Failed to load ldlinux.c32" when ldlinux.c32 can't be read, and "Loading <FILE>... failed: No such file or directory" when the
2017 May 31
6
[PATCH 1/4] efi/udp: core_udp_connect should use SubnetMask not StationAddress for netmask
Signed-off-by: Julien Viard de Galbert <jviarddegalbert at online.net> --- efi/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/efi/udp.c b/efi/udp.c index 1088f47..b0f13ad 100644 --- a/efi/udp.c +++ b/efi/udp.c @@ -163,7 +163,7 @@ void core_udp_connect(struct pxe_pvt_inode *socket, uint32_t ip, } else { udata.UseDefaultAddress = FALSE;
2015 Jun 03
5
[PATCH 0/1] EFI PXE DHCP/proxyDHCP issues fix
...approach: In efi/pxe.c: #include <syslinux/firmware.h> #include <syslinux/pxe_api.h> #include "efi.h" #include "net.h" #include "fs/pxe/pxe.h" ++ extern struct syslinux_ipinfo IPInfo; const struct url_scheme url_schemes[] = { { "tftp", tftp_open, 0 }, { "http", http_open, O_DIRECTORY }, { "ftp", ftp_open, O_DIRECTORY }, { NULL, NULL, 0 }, }; ? void net_parse_dhcp(void) { EFI_PXE_BASE_CODE_MODE *mode; EFI_PXE_BASE_CODE *bc; EFI_PXE_BASE_CODE_DHCPV4_PACKET* pkt_v4; unsigned int pkt_len =...