dhcpcd-discuss

Re: special options in dhcpcd

Stephane Guedon

Mon Apr 30 21:07:28 2018

Le lundi 30 avril 2018, 21:06:37 CEST Stephane Guedon a écrit :
> Le dimanche 29 avril 2018, 23:30:28 CEST Roy Marples a écrit :
> > Hi
> > 
> > On 29/04/2018 21:04, stephane@xxxxxxxxxxxxx wrote:
> > > Hello all.
> > > 
> > > In order to make my dhcp6 requests work, I have to make a specific
> > > request where 80 % of options are useless, but it's what it takes to
> > > get my ISP's routers to let them through.
> > > 
> > > I particularly have to have options sol_max_rt, inf_max_rt, then 94,
> > > 95 and 96 (which are S64 map-e, map-t and 4over6).
> > > 
> > > I wonder how I can make those three last options.
> > > 
> > > Notice also that I am ok, if need be, to be tester. (I just have no
> > > clue about how to program a dhcp client, ipv4 or 6).
> > 
> > I just looked up rfc7598 for option 94 and it went woosh over my head.
> > My understanding is that the DHCP client just requests these options in
> > the ORO. dhcpcd can then decode the contents for option use via a hook
> > script.
> > 
> > Attached is a patch to allow this.
> > You should be able to add this to dhcpcd.conf
> > 
> > # SOL_MAX and INF_MAX should already be requested by default
> > option dhcp6_sol_max_rt, dhcp6_inf_max_rt
> > # Request 94, 95 and 96
> > option dhcp6_s46_cont_mape, dhcp6_s46_cont_mapt, dhcp6_s46_cont_lw
> > 
> > You should then see the options appear as variables for use in
> > dhcpcd-run-hooks(8). However, I have no means of testing this. dhcpcd
> > cannot fully decode option 92 due to the options appearing AFTER a
> > variable length part. I have no interest in even attempting to fix this
> > as you've not noted it as a requirement.
> > 
> > Let me know how it works out for you!
> > 
> > Roy
> 
> stephane@mirror:/usr/local/src/dhcpcd doas /sbin/dhcpcd -D re0
> persistent
> # Request 94, 95 and 96

unknown type: binflags" when launching the command.

Could I get rid of the vendor info in the request ? I don't have it in the reference. And could 
I actually set dhcpcd to send the DUID-LL instead of the DUID-LLT ?

(Yes, I know, I am quite boring but apparently the ISP's routers only let pass exactly the 
dhcp requests that match those they know.)
option dhcp6_sip_servers_names 

It would be a serious improvement to be able to list them (coma separated list for ex...)


Thanks for help.

Attachment: signature.asc
Description: This is a digitally signed message part.


Follow-Ups:
Re: special options in dhcpcdRoy Marples
References:
special options in dhcpcdstephane
Re: special options in dhcpcdRoy Marples
Re: special options in dhcpcdStephane Guedon
Archive administrator: postmaster@marples.name