lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] get dynamic ip on lwip-1.4.0.rc1


From: PHAM ANH THIEN
Subject: Re: [lwip-users] get dynamic ip on lwip-1.4.0.rc1
Date: Tue, 26 Oct 2010 23:24:58 +0700

so you mean:

  netif_set_default(netif_add(&netif, &ipaddr, &netmask, &gw, NULL,pcapif_init, tcpip_input));
  dhcp_set_struct(&netif, &netif_dhcp);
  dhcp_start(&netif);

is enough?

thanks,
Thien
On Tue, Oct 26, 2010 at 10:47 PM, Kieran Mansley <address@hidden> wrote:
On Tue, 2010-10-26 at 22:22 +0700, PHAM ANH THIEN wrote:
>
> netif_set_default(netif_add(&netif, &ipaddr, &netmask, &gw, NULL,
> pcapif_init, tcpip_input));
> dhcp_set_struct(&netif, &netif_dhcp);
> dhcp_start(&netif);
> netif_set_up(&netif);
>
> is it correct way to get dynamic ip address as you mention?

It doesn't do netif_set_up() if using DHCP.  The DHCP code is
responsible for that.

Kieran


_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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