Re: Retrieving information in hook script
Roy Marples
Thu Apr 25 13:20:52 2019
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