Re: Get address of dhcp server in hook
Roy Marples
Thu May 17 08:24:53 2018
Hi Stephan
On 17/05/2018 08:34, Stephan Höme wrote:
is it possible to get the IP address of the DHCPv6 server in the hook
script? I could not find an environment variable with the IP(v6) address?
No, it's currently not possible and I'm not sure it's entirely desirable
either.
We *could* export the LL address of the node that sent us the reply, but
this might be a relay and not a server.
There might be more than one server in use and the server that sends us
the reply goes down and the other server takes over.
Saying that, there is the UNICAST option (12) which holds an IPv6
address the client *should* unicast replies to.
If the server sets that, dhcpcd will export it.
Is that acceptable? If not, what is your use case for wanting the server
IP address?
Roy
Archive administrator: postmaster@marples.name