diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2010-06-18 18:16:48 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-06-18 18:19:37 -0700 |
commit | 42615d2c7eb2aeaea280891b80f1e76ac670fbf2 (patch) | |
tree | 6b46c98f6c4c30fc8d22e89f088256deae88d8ab /com32/include/syslinux/config.h | |
parent | f23e586f898704626b4db5287a1c70cdfb11af5d (diff) | |
download | syslinux-42615d2c7eb2aeaea280891b80f1e76ac670fbf2.tar.gz |
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/syslinux/config.h')
-rw-r--r-- | com32/include/syslinux/config.h | 9 |
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; |