pxe: mark ipinfo as IPv4
authorH. Peter Anvin <hpa@linux.intel.com>
Sat, 19 Jun 2010 02:05:10 +0000 (19:05 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 19 Jun 2010 02:05:10 +0000 (19:05 -0700)
IP information is IPv4 for now.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/fs/pxe/dhcp_option.c

index 39b5166..ee1a378 100644 (file)
@@ -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;