search for: wait_pkt

Displaying 9 results from an estimated 9 matches for "wait_pkt".

Did you mean: last_pkt
2015 Sep 04
2
[syslinux:master] tftp: Report server IP address on debug message
...et. > > --- > core/fs/pxe/tftp.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/core/fs/pxe/tftp.c b/core/fs/pxe/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....
2013 Dec 01
0
[PATCH] core: Bad read of file size over TFTP
...int rrq_len; @@ -219,7 +202,7 @@ void tftp_open(struct url_info *url, int flags, struct inode *inode, jiffies_t oldtime; uint16_t opcode; uint16_t blk_num; - uint32_t opdata, *opdata_ptr; + uint64_t opdata; uint16_t src_port; uint32_t src_ip; @@ -381,22 +364,6 @@ wait_pkt: if (!buffersize) break; /* No option data */ - /* - * Parse option pointed to by options; guaranteed to be - * null-terminated - */ - tftp_opt = tftp_options; - for (i = 0; i < tftp_nopts; i++) { - if (!str...
2015 Sep 05
1
[syslinux:master] tftp: Report server IP address on debug message
...gt; >> 1 file changed, 10 insertions(+), 1 deletion(-) > >> > >> diff --git a/core/fs/pxe/tftp.c b/core/fs/pxe/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(&qu...
2015 Sep 05
0
[syslinux:master] tftp: Report server IP address on debug message
...re/fs/pxe/tftp.c | 11 ++++++++++- >> 1 file changed, 10 insertions(+), 1 deletion(-) >> >> diff --git a/core/fs/pxe/tftp.c b/core/fs/pxe/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...
2015 Jan 15
0
PXE Error Reporting
....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: inode->size = 0; + error_code = *(uint16_t *)(reply_packet_buf + 2); + switch (ntohs(error_code)) { + case 1: /* File not found. */ + errno = ENOENT; + break; + + case 2: /* A...
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
2015 Jul 09
2
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
...g at line 240: sendreq: timeout = *timeout_ptr++; if (!timeout) return; /* No file available... */ oldtime = jiffies(); core_udp_sendto(socket, rrq_packet_buf, rrq_len, url->ip, url->port); /* If the WRITE call fails, we let the timeout take care of it... */ wait_pkt: for (;;) { buf_len = sizeof(reply_packet_buf); err = core_udp_recv(socket, reply_packet_buf, &buf_len, &src_ip, &src_port); if (err) { jiffies_t now = jiffies(); if (now - oldtime >= timeout) goto sendreq; } else {...
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
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;