Displaying 2 results from an estimated 2 matches for "rrq_tail".
2011 Mar 28
0
[ipxe-devel] Manual IP config does no pass 209:string to chain pxelinux.0
...xe.c
index aef2e7e..12bbdad 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -754,9 +754,6 @@ static void __pxe_searchdir(const char *filename, struct
file *file)
break;
}
- if (!ip)
- return; /* No server */
-
buf++; /* Point *past* the final NULL */
memcpy(buf, rrq_tail, sizeof rrq_tail);
buf += sizeof rrq_tail;
@@ -792,6 +789,9 @@ static void __pxe_searchdir(const char *filename, struct
file *file)
}
#endif /* GPXE */
+ if (!ip)
+ goto done; /* No server */
+
timeout_ptr = TimeoutTable; /* Reset timeout */
sendreq:
2013 Dec 01
0
[PATCH] core: Bad read of file size over TFTP
...lksize) },
-};
-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 struct tftp_options *tftp_opt;
- int i = 0;
int err;
int buffersize;
int...