Displaying 3 results from an estimated 3 matches for "tftp_error".
Did you mean:
ft_error
2015 Jan 15
0
PXE Error Reporting
...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: /* Access violation. */
+ errno =...
2013 Dec 01
0
[PATCH] core: Bad read of file size over TFTP
...e, pvt) + \
- offsetof(struct pxe_pvt_inode, x))
-
-static const struct tftp_options tftp_options[] =
-{
- { "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 rr...
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