dhcpcd-discuss

Re: truncated lease

Roy Marples

Tue Jun 07 04:40:46 2016

On 2016-06-06 23:57, Andrew Somerville wrote:
I am using wi-fi via netctl to automatically connect to my wireless
network.

In my journal -b I see the line:

dhcpcd[1637]: read_lease: truncated lease

Looking at dhcp.c [1], I see that it says:

 /* Ensure the packet is at lease BOOTP sized
 * with a vendor area of 4 octets
 * (it should be more, and our read packet enforces this so this
 * code should not be needed, but of course people could
 * scribble whatever in the stored lease file. */

But I have not scribbled anything into a lease file; it is only what
was automatically generated.

Is this normal behaviour?

No, it's not normal.
If you're running 6.11.0 and not trunk you need these patches.
http://roy.marples.name/projects/dhcpcd/info/3fd740f3ed17e902
http://roy.marples.name/projects/dhcpcd/info/02a6de136d9afe1b

I am trying to resolve intermittent wi-fi disconnects (carrier loss).

I don't have any patches to resolve that, carrier loss is a kernel side thing handled by dhcpcd.

Roy

References:
truncated leaseAndrew Somerville
Archive administrator: postmaster@marples.name