[syslinux:pathbased] pxe: mark ipinfo as IPv4
syslinux-bot for H. Peter Anvin
hpa at linux.intel.com
Fri Jun 18 19:06:09 PDT 2010
Commit-ID: 59ccd7ae8aa1fbecf7719297e118406187219bc6
Gitweb: http://syslinux.zytor.com/commit/59ccd7ae8aa1fbecf7719297e118406187219bc6
Author: H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Fri, 18 Jun 2010 19:05:10 -0700
Committer: H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Fri, 18 Jun 2010 19:05:10 -0700
pxe: mark ipinfo as IPv4
IP information is IPv4 for now.
Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>
---
core/fs/pxe/dhcp_option.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/core/fs/pxe/dhcp_option.c b/core/fs/pxe/dhcp_option.c
index 39b5166..ee1a378 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;
More information about the Syslinux-commits
mailing list