aboutsummaryrefslogtreecommitdiffstats
path: root/core/fs/pxe/pxe.h
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2015-09-27 06:47:23 -0400
committerGene Cumm <gene.cumm@gmail.com>2015-09-27 06:47:23 -0400
commit804efa7bb278a032d384c97e8530195b294e71bc (patch)
tree0902227a2181fa6e95bc36949989f3cdca2cf5f6 /core/fs/pxe/pxe.h
parent7d9c9eca562857fed25b4c8ef902e3de968d7631 (diff)
downloadsyslinux-804efa7bb278a032d384c97e8530195b294e71bc.tar.gz
syslinux-804efa7bb278a032d384c97e8530195b294e71bc.tar.xz
syslinux-804efa7bb278a032d384c97e8530195b294e71bc.zip
core: readd gPXE/iPXE support for HTTP on pxelinux.0
When adding lwIP functionality, the gPXE/iPXE callback was broken. This prevented pxelinux.0 from calling gPXE/iPXE for HTTP and FTP URLs. Re-add for pxelinux.0 and add code to find file size. Move to core/legacynet/core.c to access packet_buf and leave a dummy function for lpxelinux.0. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'core/fs/pxe/pxe.h')
-rw-r--r--core/fs/pxe/pxe.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/fs/pxe/pxe.h b/core/fs/pxe/pxe.h
index 271005c7..19664f9b 100644
--- a/core/fs/pxe/pxe.h
+++ b/core/fs/pxe/pxe.h
@@ -244,7 +244,11 @@ void tftp_open(struct url_info *url, int flags, struct inode *inode,
/* gpxeurl.c */
void gpxe_open(struct inode *inode, const char *url);
-#define GPXE 0
+#ifdef __FIRMWARE_BIOS__
+# define GPXE 1
+#else
+# define GPXE 0
+#endif
/* http.c */
void http_open(struct url_info *url, int flags, struct inode *inode,