search for: reply_packet_buf

Displaying 6 results from an estimated 6 matches for "reply_packet_buf".

2015 Jul 09
2
[PATCH] Updated udp.c to use real client ip and subnetmask values if on local subnet
...t_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 { /* Make sure the packet actually came from the serve...
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;
2015 Jan 15
0
PXE Error Reporting
...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: /* Access violation. */ + errno = EACCES; + break; + } goto done; /* ERROR reply; don&...
2013 Dec 01
0
[PATCH] core: Bad read of file size over TFTP
...*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 struct tftp_options *tftp_opt; - int i = 0; int err; int buffersize; 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 op...
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