Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432998 - net-misc/dhcp-4.2.4_p1 dhclient fix "bad format a" bug
Summary: net-misc/dhcp-4.2.4_p1 dhclient fix "bad format a" bug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-27 18:08 UTC by Andreas Steinmetz
Modified: 2012-10-07 06:19 UTC (History)
0 users

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


Attachments
dhclient fix for "bad format a" bug (dhcp-fix-bad-format-a.patch,641 bytes, text/plain)
2012-08-27 18:08 UTC, Andreas Steinmetz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Steinmetz 2012-08-27 18:08:17 UTC
Created attachment 322386 [details]
dhclient fix for "bad format a" bug

Use a vendor extension with dhcp6/dhclient with the following format in the dhcp6 config file:

option dhcp6.local-something code 224 = array of ip6-address;

subnet6 <IPv6-Network> {
    option dhcp6.local-something <IPv6-Address>;
}

Use something like the following in the IPv6 dhclient configuration file:

option dhcp6.local-something code 224 = array of ip6-address;
request dhcp6.local-something;

This works when dhclient is invoked for the first time and "dhcp6.local-something" is not yet in the leases file. On subsequent dhclient invocations, however, dhcliend spills "parse_option_param: Bad format a" and skips "dhcp6.local-something" forever.

The attached patch fixes this. It is based on:
https://build.opensuse.org/package/view_file?file=dhcp-4.2.1-dhclient-parse_option_param-Bad-format-a.patch&package=dhcp.import5685&project=openSUSE%3A11.4%3AUpdate&rev=7730bf3ce2eaca1433b1ef2819704127

Some more explanation is available there, too.
Comment 1 SpanKY gentoo-dev 2012-10-07 06:19:31 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add fix from OpenSUSE for parsing "a" options
http://sources.gentoo.org/net-misc/dhcp/dhcp-4.2.4_p2.ebuild?rev=1.1
http://sources.gentoo.org/net-misc/dhcp/files/dhcp-4.2.1-dhclient-parse_option_param-Bad-format-a.patch?rev=1.1