Re: Retrieving information in hook script
Shweta Kalyani
Thu Apr 25 13:50:19 2019
Hi Roy,
Thanks but it is not clear how the options are to be processed in the hook
script.
Is there some link I can read up for the same?
Thanks,
Shweta
On Thu, Apr 25, 2019 at 6:52 PM Roy Marples <roy@xxxxxxxxxxxx> wrote:
> Hi Shweta
>
> On 25/04/2019 09:57, Shweta Kalyani wrote:
> > How do we retrieve vendor information vendor specific information
> > (vivso) received from DHCPv6 server to the hook script. This should
> > include the vendor class and all the options for this vendor.
>
> See dhcpcd-definitions.conf in the source:
>
> define6 17 embed vivso
> embed uint32 enterprise_number
> # Vendor options are shared between DHCP/DHCPv6
> # Their code is matched to the enterprise number defined above
> # See the end of this file for an example
>
> ...
>
> # Vendor-Identifying Vendor Options
> # An example:
> #vendopt 12345 encap frobozzco
> #encap 1 string maze_location
>
> > Also, how to retrieve NTP server information received from DHCPv6 server.
>
> Enable option ntp_servers in /etc/dhcpcd.conf
>
> # dhcpcd -dB6T --noipv6rs --ia_na 2>/dev/null | grep ntp
> new_dhcp6_sntp_servers=fd73:7808:1015::2
>
> Good luck!
>
> Roy
>
Archive administrator: postmaster@marples.name