tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dhcpcd and routing of ipv6 prefixes



On Mon 13 Jun 2016 at 12:50:09 +0100, Roy Marples wrote:
> 
> On 12/06/2016 20:37, Rhialto wrote:
> > re0: adding address 2001:984:4b2a:fc::1/62
> > re0: pltime 3600 seconds, vltime 7200 seconds
> > if_addaddress6: Invalid argument
> 
> That's a touch odd and worrying as I was hoping to release a new build.

It kept repeating periodically:

Jun 13 18:23:45 murthe dhcpcd[9146]: re0: adding address 2001:984:4b2a:fc::1/62
Jun 13 18:23:45 murthe dhcpcd[9146]: if_addaddress6: Invalid argument
Jun 13 18:53:45 murthe dhcpcd[9146]: re0: adding address 2001:984:4b2a:fc::1/62
Jun 13 18:53:45 murthe dhcpcd[9146]: if_addaddress6: Invalid argument
Jun 13 19:23:45 murthe dhcpcd[9146]: re0: adding address 2001:984:4b2a:fc::1/62
Jun 13 19:23:45 murthe dhcpcd[9146]: if_addaddress6: Invalid argument

even though (or maybe simply because?) re0 already had that address.

> There is a #if 0 code block in ipv6.c on line 690.
> Can you change that to #if 1, recompile and post back the actual numbers
> it tries to use please?

Yes, here it is (I changed the logging level to LOG_ERR, I thought I
didn't see it in /var/log/messages otherwise):

murthe.9:/tmp/dhcpcd-trunk$ sudo ./dhcpcd --debug --lastlease re1 re0
dhcpcd-6.11.0 starting
re0: executing `/libexec/dhcpcd-run-hooks' PREINIT
re0: executing `/libexec/dhcpcd-run-hooks' CARRIER
re1: executing `/libexec/dhcpcd-run-hooks' PREINIT
re1: executing `/libexec/dhcpcd-run-hooks' CARRIER
DUID 00:01:00:01:1e:44:c7:c1:00:e0:4c:1f:96:8e
re0: IAID 7e:2d:67:98
re1: IAID 4c:1f:96:8e
re1: IAID 00:00:00:01
re1: IAID 00:00:00:02
re1: delaying IPv6 router solicitation for 0.4 seconds
re1: reading lease `/var/db/dhcpcd-re1.lease6'
re1: rebinding prior DHCPv6 lease
re1: delaying REBIND6 (xid 0x4b8dbe), next in 1.0 seconds
re1: delaying IPv4 for 0.4 seconds
re1: soliciting an IPv6 router
re1: sending Router Solicitation
re1: Router Advertisement from fe80::ca0e:14ff:feee:a54b
re1: adding address 2001:984:4b2a:1:1d38:3900:5871:2a5c/64
re1: pltime 3600 seconds, vltime 3855 seconds
re1: acquired 513798.396721478, now 513798.396820863, diff 0.000099385
re1: adj pltime 3600 seconds, vltime 3855 seconds
re1: adding route to 2001:984:4b2a:1::/64
re1: adding default route via fe80::ca0e:14ff:feee:a54b
re1: executing `/libexec/dhcpcd-run-hooks' ROUTERADVERT
forking to background
forked to background, child pid 15124

Jun 13 19:55:55 murthe dhcpcd[14707]: forked to background, child pid 15124
Jun 13 19:55:55 murthe dhcpcd[15124]: re1: rebinding lease of 192.168.178.20
Jun 13 19:55:55 murthe dhcpcd[15124]: re1: leased 192.168.178.20 for 86400 seconds
Jun 13 19:55:55 murthe dhcpcd[15124]: re1: adding host route to 192.168.178.20 via 127.0.0.1
Jun 13 19:55:55 murthe dhcpcd[15124]: re1: changing route to 192.168.178.0/24
Jun 13 19:55:55 murthe dhcpcd[15124]: re1: changing default route via 192.168.178.1
Jun 13 19:55:56 murthe dhcpcd[15124]: re1: REPLY6 received from fe80::ca0e:14ff:feee:a54b
Jun 13 19:55:56 murthe dhcpcd[15124]: re1: adding address 2001:984:4b2a:1:5008:f7e9:73dd:7e21/128
Jun 13 19:55:56 murthe dhcpcd[15124]: re1: acquired 513798.998378047, now 513798.998431592, diff 0.000053545
Jun 13 19:55:56 murthe dhcpcd[15124]: re1: adj pltime 3600 seconds, vltime 7200 seconds
Jun 13 19:55:56 murthe dhcpcd[15124]: re1: renew in 1800, rebind in 2880, expire in 7200 seconds
Jun 13 19:55:56 murthe dhcpcd[15124]: lo0: adding reject route to 2001:984:4b2a:fc::/62 via ::1
Jun 13 19:55:56 murthe dhcpcd[15124]: re1: delegated prefix 2001:984:4b2a:fc::/62
Jun 13 19:55:56 murthe dhcpcd[15124]: re0: adding address 2001:984:4b2a:fc::1/62
Jun 13 19:55:56 murthe dhcpcd[15124]: re0: acquired 513798.998378047, now 513798.999041240, diff 0.000663193
Jun 13 19:55:56 murthe dhcpcd[15124]: re0: adj pltime 3600 seconds, vltime 7200 seconds
Jun 13 19:55:56 murthe dhcpcd[15124]: if_addaddress6: Invalid argument
Jun 13 19:55:56 murthe dhcpcd[15124]: re0: changing route to 2001:984:4b2a:fc::/62

Anything else I can try?

> Roy
-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/xs4all.nl    -- are condemned to reinvent it. Poorly.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index