Don't try to discover if we didn't find any interfaces we like. When we get PnP, we'll need to do discover when the first interface appears. Modified: trunk/reactos/subsys/system/dhcp/dhclient.c _____
Modified: trunk/reactos/subsys/system/dhcp/dhclient.c --- trunk/reactos/subsys/system/dhcp/dhclient.c 2005-04-23 00:01:37 UTC (rev 14750) +++ trunk/reactos/subsys/system/dhcp/dhclient.c 2005-04-23 00:40:44 UTC (rev 14751) @@ -161,12 +161,16 @@
DH_DbgPrint(MID_TRACE,("Discover Interfaces\n"));
- /* set up the interface */ - discover_interfaces(ifi); + /* If no adapters were found, just idle for now ... If any show up, + * then we'll start it later */ + if( ifi ) { + /* set up the interface */ + discover_interfaces(ifi);
- DH_DbgPrint - (MID_TRACE, - ("Setting init state and restarting interface %p\n",ifi)); + DH_DbgPrint + (MID_TRACE, + ("Setting init state and restarting interface %p\n",ifi)); + }
bootp_packet_handler = do_packet;