dhcpcd-discuss

Re: DHCPv6 and OPTION_USER_CLASS

Mattieu Baptiste

Sun Apr 29 18:28:26 2018

On Sun, Apr 29, 2018 at 8:03 PM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
> On 29/04/2018 17:34, Mattieu Baptiste wrote:
>>
>> Mmm, with the following conf:
>> ipv6only
>> duid
>> authprotocol token 0x123/0x456
>> authtoken 0x123 "" forever fti/xxxxxxx
>> authtoken 0x456 "" forever dhcpliveboxfr250
>> userclass FSVDSL_livebox.Internet.softathome.livebox3
>> vendclass 1038 sagem
>> persistent
>> noipv6rs
>> allowinterfaces vlan832
>> interface vlan832
>>          ia_pd 1
>>
>> I now have this error:
>> # 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 0xd38e24), next in 0.2 seconds
>> vlan832: broadcasting SOLICIT6 (xid 0xd38e24), next in 0.9 seconds
>> vlan832: authentication failed from fe80::ba0:bab: No such process
>> vlan832: broadcasting SOLICIT6 (xid 0xd38e24), next in 1.8 seconds
>> vlan832: authentication failed from fe80::ba0:bab: No such process
>> vlan832: broadcasting SOLICIT6 (xid 0xd38e24), next in 3.8 seconds
>> vlan832: authentication failed from fe80::ba0:bab: No such process
>> ^Creceived SIGINT, stopping
>> vlan832: removing interface
>> vlan832: executing `/usr/local/libexec/dhcpcd-run-hooks' STOPPED
>> dhcpcd exited
>>
>
> Arrrggghhhh!
> I tested on a network bit orientated arch.
> Attached is a corrected patch which should now work.
>
> Let me know!

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

-- 
Mattieu Baptiste
"/earth is 102% full ... please delete anyone you can."

Follow-Ups:
Re: DHCPv6 and OPTION_USER_CLASSRoy Marples
References:
DHCPv6 and OPTION_USER_CLASSMattieu Baptiste
Re: DHCPv6 and OPTION_USER_CLASSMattieu Baptiste
Re: DHCPv6 and OPTION_USER_CLASSRoy Marples
Re: DHCPv6 and OPTION_USER_CLASSMattieu Baptiste
Re: DHCPv6 and OPTION_USER_CLASSRoy Marples
Re: DHCPv6 and OPTION_USER_CLASSMattieu Baptiste
Re: DHCPv6 and OPTION_USER_CLASSRoy Marples
Re: DHCPv6 and OPTION_USER_CLASSMattieu Baptiste
Re: DHCPv6 and OPTION_USER_CLASSRoy Marples
Re: DHCPv6 and OPTION_USER_CLASSMattieu Baptiste
Re: DHCPv6 and OPTION_USER_CLASSRoy Marples
Re: DHCPv6 and OPTION_USER_CLASSMattieu Baptiste
Re: DHCPv6 and OPTION_USER_CLASSRoy Marples
Re: DHCPv6 and OPTION_USER_CLASSMattieu Baptiste
Re: DHCPv6 and OPTION_USER_CLASSRoy Marples
Re: DHCPv6 and OPTION_USER_CLASSMattieu Baptiste
Re: DHCPv6 and OPTION_USER_CLASSRoy Marples
Archive administrator: postmaster@marples.name