summaryrefslogtreecommitdiff
path: root/core/fs/pxe/pxe.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-15 23:21:24 -0700
committerEric W. Biederman <ebiederm@xmission.com>2011-04-12 14:40:52 -0700
commita7831eb9ab81cf1bb5a7d0247eb9d682578a0335 (patch)
treec66b4a4f491b5dfc40db069dea212f29b3bdafbd /core/fs/pxe/pxe.c
parent3adb3b89844db390a81fda2f8b8a4bf7253e0315 (diff)
downloadsyslinux-a7831eb9ab81cf1bb5a7d0247eb9d682578a0335.tar.gz
core: pxe: additional work on the lwip port
Additional work on the lwip port. With this code, we can get pretty far before having problems. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/fs/pxe/pxe.c')
-rw-r--r--core/fs/pxe/pxe.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index d655526e..b886ed35 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -6,6 +6,9 @@
#include <minmax.h>
#include <sys/cpu.h>
#include "pxe.h"
+#if 1
+#include "lwip/api.h"
+#endif
static uint16_t real_base_mem; /* Amount of DOS memory after freeing */
@@ -1057,7 +1060,16 @@ static void network_init(void)
if ((DHCPMagic & 1) == 0)
DHCPMagic = 0;
+#if 1
+ extern err_t undi_tcpip_start(struct ip_addr *ipaddr,
+ struct ip_addr *netmask,
+ struct ip_addr *gw);
+ undi_tcpip_start((struct ip_addr *)&IPInfo.myip,
+ (struct ip_addr *)&IPInfo.netmask,
+ (struct ip_addr *)&IPInfo.gateway);
+#else
udp_init();
+#endif
}
/*