lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] initialisation of lwIP


From: christiaan . simons
Subject: Re: [lwip-users] initialisation of lwIP
Date: Tue, 11 Jan 2005 21:53:49 +0100




address@hidden wrote on 11-01-2005
20:32:33:

>   IP4_ADDR(&gw, 192,168,0,200);
>   IP4_ADDR(&ipaddr, 172,16,2,6);
>   IP4_ADDR(&netmask, 255,255,255,0);
>
>    printf("\nbringing up ethernet interface.\n");
>
>
>   netif_set_ipaddr(ethif, &ipaddr);
>   netif_set_netmask(ethif, &netmask);
>   netif_set_gw(ethif, &gw);

And also call

netif_add()

and

netif_set_default()

before:

>   netif_set_up(ethif);

And uhm, the gateway is not on your network!
(should it be something like 172.16.2.200 ?)

Bye,

Christiaan Simons

Software Engineer
Axon Digital Design

+31 (0)13 511 66 66
+31 (0)13 511 41 51

address@hidden
http://www.axon.tv





reply via email to

[Prev in Thread] Current Thread [Next in Thread]