Re: dhcpcd on raspberry pi doesn't pick up an IPv6 address
Roy Marples
Tue Jan 21 22:51:27 2020
On 20/01/2020 16:22, James Gross wrote:
Hi Roy,
On Thu, 16 Jan 2020 at 17:48, Roy Marples <roy@xxxxxxxxxxxx
<mailto:roy@xxxxxxxxxxxx>> wrote:
Looks like you have disabled privsep at compile time?
I did, based on your comment here:
Be warned that the default build from git enables privsep and asan so memory
usage will be a lot larger. You may want to build with
./configure --without-privsep --without-debug
Can you try this patch to get more debug please?
diff --git a/src/ipv6.c b/src/ipv6.c
index c49300c1..ba9415f6 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -672,6 +672,7 @@ ipv6_addaddr1(struct ipv6_addr *ia, const struct
timespec *now)
}
elapsed = (uint32_t)eloop_timespec_diff(now, &ia->acquired,
NULL);
+ logdebugx("%s: elapsed time %u", ifp->name, elapsed);
if (ia->prefix_pltime != ND6_INFINITE_LIFETIME) {
if (elapsed > ia->prefix_pltime)
ia->prefix_pltime = 0;
If I try to patch with this I get an error:
sudo patch -b < ipv6.patch
patching file ipv6.c
Hunk #1 FAILED at 672.
1 out of 1 hunk FAILED -- saving rejects to file ipv6.c.rej
cat ipv6.c.rej
--- ipv6.c
+++ ipv6.c
@@ -672,6 +672,7 @@ ipv6_addaddr1(struct ipv6_addr *ia, const struct timespec *now)
}
elapsed = (uint32_t)eloop_timespec_diff(now, &ia->acquired,
NULL);
+ logdebugx("%s: elapsed time %u", ifp->name, elapsed);
if (ia->prefix_pltime != ND6_INFINITE_LIFETIME) {
if (elapsed > ia->prefix_pltime)
ia->prefix_pltime = 0;
I'm I doing this correctly?
Well try editing the file by hand then - src/ipv6.c
Goto around line 672 and add the logdebug line exactly as above after elapsed is
set.
Roy
Archive administrator: postmaster@marples.name