dhcpcd-discuss

Re: Configuration profiles handling by libdhcpcd

Langlois, Maxime

Fri May 31 22:03:24 2019

On Fri, 2019-05-31 at 22:50 +0100, Roy Marples wrote:
> 
> On 31/05/2019 19:47, Langlois, Maxime wrote:
> > 
> > Now I am also searching how, if possible, I can access complete
> > interface status information after the interface has been
> > configured through DHCP.
> > I see in your examples that the status callback uses the
> > dhcpcd_if_message function to display a message containing ip
> > address and mask, but what about the gateway ip? Is there a way to
> > access more complete interface information after DHCP configuration
> > has completed?
> > Thanks,
> > Maxime
> All dhcpcd options are available :)
> dhcpcd -V | grep routers
> 003 routers                                      array ipaddress
> request
> 
> All current DHCP options are prefixed new_
> 
> const char *routers = dhcpcd_get_value(ifp, "new_routers");

Hi Roy,

I know I can access all the configuration options from the config file.

But what I am looking for is the status information :

when the interface is configured to use DHCP, how can I get the
information of the address, netmask, gateway that are effective once a
DHCP lease is obtained?

Thanks,
Maxime

**********************************************************************
DISCLAIMER:
Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company. Thank You.

Follow-Ups:
Re: Configuration profiles handling by libdhcpcdRoy Marples
References:
static routers not exposed in hooksLanglois, Maxime
Re: static routers not exposed in hooksRoy Marples
Configuration profiles handling by libdhcpcdLanglois, Maxime
Re: Configuration profiles handling by libdhcpcdRoy Marples
Re: Configuration profiles handling by libdhcpcdLanglois, Maxime
Re: Configuration profiles handling by libdhcpcdRoy Marples
Archive administrator: postmaster@marples.name