dhcpcd-discuss

Re: Configuration profiles handling by libdhcpcd

Langlois, Maxime

Mon Jun 03 13:22:41 2019

Understood, many thanks!

Maxime
On Sat, 2019-06-01 at 00:42 +0100, Roy Marples wrote:
>
>
> On 31/05/2019 23:04, Langlois, Maxime wrote:
> >
> > >
> > > 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?
> That *is* the status information.
> The whole DHCP message / static config and misc data is available
> via
> that function.
>
> If you wanted to query dhcpcd.conf you would use dhcpcd_config_get
> or
> dhcpcd_config_get_static.
>
> Roy

**********************************************************************
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.

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
Re: Configuration profiles handling by libdhcpcdLanglois, Maxime
Re: Configuration profiles handling by libdhcpcdRoy Marples
Archive administrator: postmaster@marples.name