summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2011-04-26 15:22:03 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2011-04-26 15:22:03 -0700
commit0490e0b2d21fc76267d963115dae474a90b77de5 (patch)
tree4d10b9a27a5ff94647ca233dd5c5d8a4732b3541
parent5d856fe191ddf7449518d0c0e802fac738b40b3f (diff)
downloadsyslinux-0490e0b2d21fc76267d963115dae474a90b77de5.tar.gz
pxe, undiif: install the gateway properly
Actually install the gateway, not a random pointer value... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--core/lwip/src/netif/undiif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lwip/src/netif/undiif.c b/core/lwip/src/netif/undiif.c
index 4e786935..4d75eb3a 100644
--- a/core/lwip/src/netif/undiif.c
+++ b/core/lwip/src/netif/undiif.c
@@ -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;