From 0490e0b2d21fc76267d963115dae474a90b77de5 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 26 Apr 2011 15:22:03 -0700 Subject: [PATCH] pxe, undiif: install the gateway properly Actually install the gateway, not a random pointer value... Signed-off-by: H. Peter Anvin --- core/lwip/src/netif/undiif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lwip/src/netif/undiif.c b/core/lwip/src/netif/undiif.c index 4e78693..4d75eb3 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; -- 2.7.4