aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-06-18 19:05:10 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-06-18 19:05:10 -0700
commit59ccd7ae8aa1fbecf7719297e118406187219bc6 (patch)
treec66ca13b5003e9c8cdb7f4b6287a0445dec5dd28
parentc81d67125d108a5e76039ac6ebaf5b24bca7c107 (diff)
downloadsyslinux-59ccd7ae8aa1fbecf7719297e118406187219bc6.tar.gz
syslinux-59ccd7ae8aa1fbecf7719297e118406187219bc6.tar.xz
syslinux-59ccd7ae8aa1fbecf7719297e118406187219bc6.zip
pxe: mark ipinfo as IPv4
IP information is IPv4 for now. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--core/fs/pxe/dhcp_option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fs/pxe/dhcp_option.c b/core/fs/pxe/dhcp_option.c
index 39b51666..ee1a3785 100644
--- a/core/fs/pxe/dhcp_option.c
+++ b/core/fs/pxe/dhcp_option.c
@@ -244,6 +244,8 @@ void parse_dhcp(int pkt_len)
struct bootp_t *dhcp = (struct bootp_t *)trackbuf;
int opt_len;
+ IPInfo.ipv4 = 4; /* This is IPv4 only for now... */
+
over_load = 0;
if (ip_ok(dhcp->yip))
IPInfo.myip = dhcp->yip;