dhcpcd-discuss

Re: static dhcp6_name_servers

Roy Marples

Thu May 14 19:59:43 2015

On 06/05/2015 19:10, Roy Marples wrote:
> Also, there is no mechanism right now to ignore ND6 options, so at least this 
> will need to be added to dhcpcd.

ND options can now be handled in the same way as DHCP and DHCPv6 options
like so:

nooption nd_rdnss, dn_dnssl

Here's some sample shell output of the new variables handed to
dhcpcd-run-hooks(8):

nd1_addr1=2a01:348:31:3:4103:db84:a702:c38/64
nd1_dnssl1_lifetime=900
nd1_dnssl1_reserved=0
nd1_dnssl1_search=marples.name
nd1_mtu=1492
nd1_mtu_reserved=0
nd1_prefix_information1_length=64
nd1_prefix_information1_pltime=604800
nd1_prefix_information1_prefix=2a01:348:31:3::
nd1_prefix_information1_reserved1=192
nd1_prefix_information1_reserved2=0
nd1_prefix_information1_vltime=2592000
nd1_prefix_information2_length=64
nd1_prefix_information2_pltime=604800
nd1_prefix_information2_prefix=2a01:348:31:2::
nd1_prefix_information2_reserved1=128
nd1_prefix_information2_reserved2=0
nd1_prefix_information2_vltime=2592000
nd1_prefix_information3_length=64
nd1_prefix_information3_pltime=604800
nd1_prefix_information3_prefix=2a01:348:31:1::
nd1_prefix_information3_reserved1=128
nd1_prefix_information3_reserved2=0
nd1_prefix_information3_vltime=2592000
nd1_rdnss1_lifetime=900
nd1_rdnss1_reserved=0
nd1_rdnss1_servers=2a01:348:31:1::1
nd1_source_address=80ee730474ce

One immediate problem is that I have no way right now of expressing bits
in shell options, so nd1_prefix_information1_reserved1 holds the L and A
bits of the prefix option.

Another problem is that lifetime options are ignored for individual ND
options (address times are still respected), but that can be addressed
another day.

Patch for the curious:
http://roy.marples.name/projects/dhcpcd/ci/eabc2158b3c29fbe?sbs=0

Roy

Follow-Ups:
Re: static dhcp6_name_serversRoy Marples
Re: static dhcp6_name_serversRoy Marples
References:
static dhcp6_name_serversWalrath, Paul
Re: static dhcp6_name_serversRoy Marples
Archive administrator: postmaster@marples.name