[CUWiN-Dev] dhclient bug
Matthew Isaacs
isaacsm at cuwireless.net
Fri Mar 30 16:13:52 CDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Young wrote:
> On Fri, Mar 30, 2007 at 03:46:48PM -0500, Matthew Isaacs wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Found a bug in dhclient. Seems that adding any enter-hooks makes it
>> crap out, even with a simple hook-script like this:
>>
>> === SCRIPT ===
>> echo `date`: entering dhclient-enter-hooks, dumping variables. \
>> >> /tmp/dhclient-script.debug
>>
>> for i in reason interface medium alias_ip_address new_ip_address \
>> new_subnet_mask new_domain_name new_domain_name_servers \
>> new_routers new_static_routes old_ip_address
>> old_subnet_mask \
>> old_domain_name old_domain_name_servers old_routers \
>> old_static_routes; do
>>
>> echo $i=\'${!i}\' >> /tmp/dhclient-script.debug
>> done
>>
>> echo '--------------------------' >> /tmp/dhclient-script.debug
>> === END SCRIPT ===
>>
>> The error recorded: "dhclient.c(2072): null pointer". It seems to enter
>> into some sort of infinite loop, constantly calling the enter hooks, but
>> never really running. It also causes nasty problems on the dhcp server
>> on my machine...it makes it chew through leases and thrashes the
>> hard-drive changing leases several times a second.
>
> Does it help to put an 'exit 0' at the bottom of your script?
>
> Dave
>
nope. exit 1 (which should cause dhclient to quit without doing
anything) produces the same behavior.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGDX2QFTAfZok65zkRAivnAJ9rOVSSJOmv9ExWVeBR9WIR5a74pQCghPIA
6WBmFXYlJEzFfhJf9+PN6Qc=
=Lu5O
-----END PGP SIGNATURE-----
More information about the CU-Wireless-Dev
mailing list