lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Detect DHCP enabled for netif


From: Noam Weissman
Subject: Re: [lwip-users] Detect DHCP enabled for netif
Date: Thu, 25 Feb 2016 14:04:41 +0000

Hi,

As far as I understand (maybe not) DHCP is not related to netif. DHCP is a 
protocol you choose to use or not to use.

You need to control it from your own software. Meaning you decide if you want 
to assign a static IP or get one via DHCP

Maybe I did not understand your question ?


BR,
Noam.

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Martin Velek
Sent: Thursday, February 25, 2016 3:26 PM
To: Mailing list for lwIP users
Subject: [lwip-users] Detect DHCP enabled for netif

Hello,

can I detect that the DHCP was enabled for a particular netif interface without 
checking netif internals? I would like to know it only from netif, not from 
some global flag or state variable associated with netif.

In case the system cannot change way of getting ip (static/dynamic) during 
runtime, I could test the netif.dhcp for NULL but it means I have to know the 
netif internals.

I could not find any function e.g.
dhcp_enabled_on_this_interface(netif) ... There is u8_t 
dhcp_supplied_address(struct netif *netif) but the reason why the IP was not 
supplied is missing.


I am using the latest master version from git.

Best
Martin

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



reply via email to

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