Re: DHCPv6 and OPTION_USER_CLASS
Mattieu Baptiste
Wed Apr 18 23:43:09 2018
Hi Roy,
On Tue, Apr 17, 2018 at 12:44 PM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
> On 17/04/2018 00:36, Mattieu Baptiste wrote:
>>
>> On Mon, Apr 16, 2018 at 5:46 PM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
>>>
>>> I might have some time coming up where I can look into implementing
>>> option
>>> 15. Can you describe how your ISP requires it to look please?
>>
>>
>> Great news.
>> My ISP requires the string "+FSVDSL_livebox.Internet.softathome.livebox3".
>> With dibbler, I set it with:
>> option 15 hex
>> 00:2b:46:53:56:44:53:4c:5f:6c:69:76:65:62:6f:78:2e:49:6e:74:65:72:6e:65:74:2e:73:6f:66:74:61:74:68:6f:6d:65:2e:6c:69:76:65:62:6f:78:33
>
>
> Well, this turned out much easier than I initially thought :)
>
> Fixed here:
> https://roy.marples.name/git/dhcpcd.git/commit/?id=86214d2958b9fccbf4e99c73c937fc7e1498f29f
>
> Note that your first two bytes are the user class length, so this works
>
> userclass FSVDSL_livebox.Internet.softathome.livebox3
>
> Let me know if that works for you!
Great, it's working fine. Option 15 is correctly formated in the packet.
But it seems I have problems with the two other options required.
- DHCPv6 option 16 OPTION_VENDOR_CLASS: my ISP requires IANA
Enterprise Number 1038, and data set to "sagem".
So I have this in dhcpcd.conf:
vendclass 1038 sagem
But when I tcpdump the request, dhcpcd correctly set the enterprise
number, but the five characters of the data field are zeroed:
00 00 04 0e 00 05 00 00 00 00 00
- DHCPv6 option 11 OPTION_AUTH: my ISP requires a string of the form
"fti/xxxxxxx", where xxxxxxx is my customer id.
I have this in my dhcpcd.conf:
authtoken 0 "" 0 fti/xxxxxxx
But the option isn't added in the packet. Am I missing something?
--
Mattieu Baptiste
"/earth is 102% full ... please delete anyone you can."
Archive administrator: postmaster@marples.name