Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582878 - =net-misc/dhcpcd-6.11.0 unable to solicit IPv4 address
Summary: =net-misc/dhcpcd-6.11.0 unable to solicit IPv4 address
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-13 06:50 UTC by James Chew
Modified: 2016-06-18 17:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Chew 2016-05-13 06:50:58 UTC
When using net-misc/dhcpcd-6.10.3 I can solicit an IPv4 address from my ISP:
# dhcpcd wan0
wan0: soliciting a DHCP lease
wan0: offered 132.147.80.xx from 172.16.3.36
wan0: leased 132.147.80.xx for 259200 seconds
wan0: adding route to 132.147.80.0/24
wan0: adding default route via 132.147.80.1
forked to background, child pid 7657

When using net-misc/dhcpcd-6.11.0 I get truncated packet errors:
# dhcpcd wan0
wan0: soliciting a DHCP lease
wan0: truncated packet (295) from 132.147.80.1
wan0: truncated packet (295) from 132.147.80.1
wan0: probing for an IPv4LL address
wan0: using IPv4LL address 169.254.79.81
wan0: adding route to 169.254.0.0/16
forked to background, child pid 6071
Comment 1 Roy Marples 2016-05-13 19:19:24 UTC
DHCP is a BOOTP extension
BOOTP minimum size is 300 bytes, so your ISP isn't RFC compliant.

Patch here fixes it:
http://roy.marples.name/projects/dhcpcd/vpatch?from=ac4e95dcbdeba0ea&to=3fd740f3ed17e902
Comment 2 Sam Jorna (wraeth) gentoo-dev 2016-05-14 13:55:50 UTC
I've also observed this behaviour - using dhcpcd-6.11.0 results in a truncated packet and IPv4LL address being assigned, and downgrading to dhcpcd-6.10.3 assigns addresses correctly. I don't use IPv6 internally so don't know if that's affected.
Comment 3 Roy Marples 2016-05-15 09:52:44 UTC
If someone can get more information on #582808 then I'll make a new release.

(In reply to Sam Jorna (wraeth) from comment #2)
> I don't use IPv6 internally so don't know if that's affected.

It isn't.
Comment 4 Juho-Mikko Pellinen 2016-05-15 12:28:53 UTC
My network connections dhcp server is included in OpenWRT router with DD-WRT v3.0-r29621 giga (05/10/16) and I get the exactly same results as James Chew with dhcpcd 6.11.0 .
Downgrading to 6.10.1 fixed my problem.

Checking the dhcp transactions (bootp protocol) with wireshark show only packages larger than 300 bytes.
Comment 5 Roy Marples 2016-05-15 13:48:22 UTC
(In reply to Juho-Mikko Pellinen from comment #4)
> Checking the dhcp transactions (bootp protocol) with wireshark show only
> packages larger than 300 bytes.

If you're suffering from this issue, then the BOOTP part of the message is less than 300 bytes.

If you're seeing more then that is probably the IP (20 bytes) and UDP (8 bytes) headers. Depending on the software you're using to see the whole trace, you could also see the Ethernet header (14 bytes).
Comment 6 Juho-Mikko Pellinen 2016-05-15 20:16:01 UTC
(In reply to Roy Marples from comment #5)
> (In reply to Juho-Mikko Pellinen from comment #4)
> > Checking the dhcp transactions (bootp protocol) with wireshark show only
> > packages larger than 300 bytes.
> 
> If you're suffering from this issue, then the BOOTP part of the message is
> less than 300 bytes.
> 
> If you're seeing more then that is probably the IP (20 bytes) and UDP (8
> bytes) headers. Depending on the software you're using to see the whole
> trace, you could also see the Ethernet header (14 bytes).

True. The Bootp -part of DHCP Offer is just 292 bytes.

I just tested the 9999 -version of the application which contains the patch mentioned earlier and it is now working well.
Comment 7 James Chew 2016-05-16 02:52:03 UTC
(In reply to Roy Marples from comment #1)
> Patch here fixes it:
> http://roy.marples.name/projects/dhcpcd/
> vpatch?from=ac4e95dcbdeba0ea&to=3fd740f3ed17e902

Applying said patch fixes the issue.
Comment 8 Pryka 2016-05-31 08:07:35 UTC
I can confirm that, upstream bug.

http://roy.marples.name/projects/dhcpcd/tktview?name=3f10c9b871
Comment 9 William Hubbs gentoo-dev 2016-06-18 17:01:16 UTC
dhcpcd-6.11.1 is now in the tree; this should be fixed in that release.