Adding upstream version 6.00+dfgs.
[syslinux-debian/hramrach.git] / core / pxelinux-c.c
blob69c9aac3b1518f4d4033ebc9776fef362c4cd955
1 #include <syslinux/config.h>
2 #include <com32.h>
4 extern far_ptr_t StrucPtr;
5 extern far_ptr_t InitStack;
7 /*
8 * IP information. Note that the field are in the same order as the
9 * Linux kernel expects in the ip= option.
11 struct syslinux_ipinfo IPInfo;
12 uint16_t APIVer; /* PXE API version found */
14 __export void get_derivative_info(union syslinux_derivative_info *di)
16 di->pxe.filesystem = SYSLINUX_FS_PXELINUX;
17 di->pxe.apiver = APIVer;
18 di->pxe.pxenvptr = GET_PTR(StrucPtr);
19 di->pxe.stack = GET_PTR(InitStack);
20 di->pxe.ipinfo = &IPInfo;
21 di->pxe.myip = IPInfo.myip;