Re: DHCPv6 and OPTION_USER_CLASS
Mattieu Baptiste
Sun Apr 29 19:03:31 2018
On Sun, Apr 29, 2018 at 8:40 PM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
> On 29/04/2018 19:28, Mattieu Baptiste wrote:
>>
>> Great, it works! It just seem to have a little trouble when
>> relaunching (see below).
>>
>> # dhcpcd -Bd
>> dhcpcd-7.0.3 starting
>> vlan832: executing `/usr/local/libexec/dhcpcd-run-hooks' PREINIT
>> vlan832: executing `/usr/local/libexec/dhcpcd-run-hooks' CARRIER
>> DUID 00:01:00:06:20:f6:4d:7a:00:0d:b9:33:8e:8c
>> vlan832: IAID ff:00:03:40
>> vlan832: IAID 00:00:00:01
>> vlan832: reading lease `/var/db/dhcpcd/vlan832.lease6'
>> vlan832: soliciting a DHCPv6 lease
>> vlan832: delaying SOLICIT6 (xid 0x790333), next in 0.5 seconds
>> vlan832: broadcasting SOLICIT6 (xid 0x790333), next in 1.1 seconds
>> vlan832: validated using 0x00001110
>> vlan832: ADV 2a01:cb00:7c8:7f00::/56 from fe80::ba0:bab
>> vlan832: broadcasting REQUEST6 (xid 0x422f0f), next in 1.0 seconds
>> vlan832: validated using 0x00001110
>> vlan832: REPLY6 received from fe80::ba0:bab
>> vlan832: renew in 36957, rebind in 207360, expire in 259200 seconds
>> lo0: adding reject route to 2a01:cb00:7c8:7f00::/56 via ::1
>> vlan832: writing lease `/var/db/dhcpcd/vlan832.lease6'
>> vlan832: delegated prefix 2a01:cb00:7c8:7f00::/56
>> vlan832: executing `/usr/local/libexec/dhcpcd-run-hooks' BOUND6
>>
>> One out of two times, when I launch dhcpcd in debug mode, it fails again
>> with:
>> vlan832: broadcasting SOLICIT6 (xid 0x567cb9), next in 1.0 seconds
>> vlan832: broadcasting SOLICIT6 (xid 0x567cb9), next in 2.1 seconds
>> vlan832: broadcasting SOLICIT6 (xid 0x567cb9), next in 4.1 seconds
>>
>> Dumping the trafic, when sending Rebind and then Solicit, it tries to
>> use the server token, and not the client one:
>> Authentication
>> Option: Authentication (11)
>> Length: 27
>> Value: 000000de908bb0960efd44646863706c697665626f786672...
>> Protocol: 0
>> Algorithm: 0
>> RDM: 0
>> Replay Detection: de908bb0960efd44
>> Authentication Information: 646863706c697665626f786672323530
>>
>
> Yes.
> I've adjusted the patch to solve this. I need to test more fully as a result
> of the change, but I don't see any reason why it would break other
> protocols.
Wonderful! It works perfectly with this.
Thank you very much Roy for your patience and your help.
--
Mattieu Baptiste
"/earth is 102% full ... please delete anyone you can."
Archive administrator: postmaster@marples.name