[PATCH] dhclient active interface detection patch

Alexander Pohoyda alexander.pohoyda at gmx.net
Sun Apr 20 09:38:40 PDT 2003


Hi Martin,

> Thanks, fixed ! I also fixed the initialisation of the polling_interval
> variable if no value was given with -i.

I'm trying to test your patch. It applied OK to my
FreeBSD oak.pohoyda.family 4.7-RELEASE-p7 FreeBSD 4.7-RELEASE-p7 #1: Sun Mar  9 15:24:53 CET 2003     apog at oak.pohoyda.family:/usr/obj/usr/src/sys/OAK  i386

but then:
...
===> client
cc -O -pipe  -DCLIENT_PATH='"PATH=/sbin:/bin:/usr/sbin:/usr/bin"' -Dwarn=dhcp_warn -I/usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/includes -DENABLE_POLLING_MODE    -c /usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/client/clparse.c
cc -O -pipe  -DCLIENT_PATH='"PATH=/sbin:/bin:/usr/sbin:/usr/bin"' -Dwarn=dhcp_warn -I/usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/includes -DENABLE_POLLING_MODE    -c /usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/client/dhclient.c
/usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/client/dhclient.c: In function `main':
/usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/client/dhclient.c:209: `polling_interval' undeclared (first use in this function)
/usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/client/dhclient.c:209: (Each undeclared identifier is reported only once
/usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/client/dhclient.c:209: for each function it appears in.)
/usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/client/dhclient.c: In function `state_link':
/usr/src/sbin/dhclient/client/../../../contrib/isc-dhcp/client/dhclient.c:3204: `doinitcheck' undeclared (first use in this function)
*** Error code 1

Stop in /usr/src/sbin/dhclient/client.
*** Error code 1

Stop in /usr/src/sbin/dhclient.


I'll try to fix this and will report the result.


-- 
Alexander Pohoyda
<alexander.pohoyda at gmx.net>


More information about the freebsd-hackers mailing list