From a2b51bf5f11e4008dc2091033df3eef3f8b7e940 Mon Sep 17 00:00:00 2001 From: kieranm Date: Tue, 10 Aug 2004 14:08:17 +0000 Subject: [PATCH] Kieran Mansley, kieranm@gtemail.net, 10th Aug 2004 - Pass a "struct netif" to netif_add - API has changed at some point and this file not updated. --- ports/unix/proj/unixsim/simnode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ports/unix/proj/unixsim/simnode.c b/ports/unix/proj/unixsim/simnode.c index c6d9e67..933d755 100644 --- a/ports/unix/proj/unixsim/simnode.c +++ b/ports/unix/proj/unixsim/simnode.c @@ -79,6 +79,8 @@ tcpip_init_done(void *arg) sys_sem_signal(*sem); } /*-----------------------------------------------------------------------------------*/ +struct netif netif_unix; + static void main_thread(void *arg) { @@ -90,7 +92,7 @@ main_thread(void *arg) IP4_ADDR(&ipaddr, 192,168,1,2); IP4_ADDR(&netmask, 255,255,255,0); - netif_set_default(netif_add(&ipaddr, &netmask, &gw, NULL, unixif_init_client, + netif_set_default(netif_add(&netif_unix, &ipaddr, &netmask, &gw, NULL, unixif_init_client, tcpip_input)); /* netif_set_default(netif_add(&ipaddr, &netmask, &gw, NULL, sioslipif_init1, tcpip_input)); */