pxe, undiif: install the gateway properly
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 26 Apr 2011 22:22:03 +0000 (15:22 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 26 Apr 2011 22:22:03 +0000 (15:22 -0700)
Actually install the gateway, not a random pointer value...

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/lwip/src/netif/undiif.c

index 4e78693..4d75eb3 100644 (file)
@@ -1375,7 +1375,7 @@ int undiif_start(uint32_t ip, uint32_t netmask, uint32_t gw)
         ((uint8_t *)gw)[2],
         ((uint8_t *)gw)[3]);
   err = netifapi_netif_add(&undi_netif,
-    (struct ip_addr *)&ip, (struct ip_addr *)&netmask, (struct ip_addr *)gw,
+    (struct ip_addr *)&ip, (struct ip_addr *)&netmask, (struct ip_addr *)&gw,
     NULL, undiif_init, ip_input);
   if (err)
     return err;