Re: Retrieving information in hook script
Roy Marples
Thu Apr 25 14:44:29 2019
On 25/04/2019 14:46, Joakim Tjernlund wrote:
On Thu, 2019-04-25 at 14:22 +0100, Roy Marples wrote:
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
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
I recall messing around with vivso a few moths ago and never got the hang of it.
I could really use an complete example, both dhcp client and server(ISC)
Dunno about ISC.
Here is dnsmasq:
http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2013q4/007865.html
Here's the thread which started this:
https://roy.marples.name/archives/dhcpcd-discuss/0002177.html
Roy
Archive administrator: postmaster@marples.name