Could I get a recommendation for run-time configurable DHCP/Static IP
address. Sorry if this has been asked 100 times before. Just wondering what
the people who actually use lwip do.

 

>From monitoring the mailing list, I understand no graceful shutdown. So I am
ok with a startup variable and reset the hardware to make the setting take
effect. #define is not really what I am looking for.

 

Is this the right way?

1.      Start the stack
2.      Check my config for desired static IP, or DHCP requested (dip
switch, config bit, etc)

netif_set_default()

if (dhcp)

        dhcp_start();

else

        netif_set_up();

 

A pointer to an example that does this, or 5 lines of pseudo code would be
great!

(SAME54, lwip 2.0.3, free RTOS 10.0.0)

 

Thanks Simon, Sylvain,  Steve, Patrick, and others who are providing such
great help to this list! Most of my questions are answered by just watching
the emails on this list.

 

Bob

 

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to