aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-06-18 18:16:48 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-06-18 18:19:37 -0700
commit42615d2c7eb2aeaea280891b80f1e76ac670fbf2 (patch)
tree6b46c98f6c4c30fc8d22e89f088256deae88d8ab /com32/include
parentf23e586f898704626b4db5287a1c70cdfb11af5d (diff)
downloadsyslinux-42615d2c7eb2aeaea280891b80f1e76ac670fbf2.tar.gz
syslinux-42615d2c7eb2aeaea280891b80f1e76ac670fbf2.tar.xz
syslinux-42615d2c7eb2aeaea280891b80f1e76ac670fbf2.zip
pxe: centralize all the IP information and export it to modules
It appears that there still are PXE stacks in the field which needs the crutch of being pointed to the default gateway. As such, put all the IP information into a single memory structure and allow modules to see it. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/syslinux/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/com32/include/syslinux/config.h b/com32/include/syslinux/config.h
index 868b0f10..60d8d231 100644
--- a/com32/include/syslinux/config.h
+++ b/com32/include/syslinux/config.h
@@ -54,6 +54,14 @@ struct syslinux_version {
const char *copyright_string;
};
+struct syslinux_ipinfo {
+ uint32_t ipver;
+ uint32_t myip;
+ uint32_t netmask;
+ uint32_t gateway;
+ uint32_t serverip;
+};
+
extern __nocommon struct syslinux_version __syslinux_version;
static inline const struct syslinux_version *syslinux_version(void)
{
@@ -116,6 +124,7 @@ union syslinux_derivative_info {
uint32_t _eflags;
const void *pxenvptr;
const void *stack;
+ const struct syslinux_ipinfo *ipinfo;
} pxe; /* pxelinux */
struct {
uint16_t _gs, _fs, _es, _ds;