Argl, of course the patch was wrong. Ok, this should work now ... --- contrib/isc-dhcp/client/dhclient.c.orig Thu Aug 7 16:58:46 2003 +++ contrib/isc-dhcp/client/dhclient.c Sat Aug 9 21:47:14 2003 _at__at_ -3288,19 +3288,24 _at__at_ return (HAVELINK); } } + /* + * If dhclient.conf contains media settings, we cannot + * abort if the interface is not set to active mode. + */ + if (ip -> havemedia && ip -> client -> state != S_BOUND) + return (HAVELINK); + } else { + /* + * IFM_AVALID is not set. We cannot check + * the link state. Assume HAVELINK. + */ + return (HAVELINK); } - - /* - * If dhclient.conf contains media settings, we cannot - * abort if the interface is not set to active mode. - */ - if (ip -> havemedia && ip -> client -> state != S_BOUND) - return (HAVELINK); - /* * We really have no link. */ return (NOLINK); + #else /* ifdef __FreeBSD__ */ /*Received on Sat Aug 09 2003 - 11:29:38 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:18 UTC