[CUWiN-Dev] dhclient bug

Matthew Isaacs isaacsm at cuwireless.net
Fri Mar 30 15:46:48 CDT 2007


-----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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGDXc4FTAfZok65zkRArNVAKCS+xYba5PbpfdIw9ykiF3LTCzHlACeNSnT
YhAb1j3oK/Vxv5WZbKm7wXw=
=GzHj
-----END PGP SIGNATURE-----


More information about the CU-Wireless-Dev mailing list