[Top][All Lists]

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

[lwip-users] DHCP on multiple interfaces

From: Toby Duckworth
Subject: [lwip-users] DHCP on multiple interfaces
Date: Mon, 11 Mar 2019 03:29:03 -0700 (MST)


I am updating our code to support multiple simultaneous network interfaces,
and have a question relating to DHCP.

Before calling dhcp_start(...) we call netif_set_default(...) - Is this
strictly necessary?

If I remove the call to netif_set_default, then DHCP doesn't appear to work

With the net_set_default(..) call in place, DHCP works correctly, but
(perhaps obviously) only on one interface at a time. Furthermore, having
obtained an IP address, we then go on to call netconn_new(...) to create a
Netconn on it, and find that unless netconn_bind_if(...) is called on the
created netconn, then subsequent attempts to DHCP on a different interface
cause problems for that netconn.

I would like to understand better the expected behaviour of LWIP with
respect to multiple network interfaces. and in particular how the DHCP
process is meant to work:

1) Is a call to netif_set_default(..) required before calling
2) Is it possible for multiple network interfaces to DHCP simultaneously?
3) Is a call to netconn_bind_if(...) necessary if we want to guarantee that
packets are sent and received using a particular network interface?


Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

reply via email to

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