- This is what the late interface_link_status() did.
- Allows drivers who cannot tell what the link state is to get
dhcp leases.
Taken-from: OpenBSD
-/* $OpenBSD: src/sbin/dhclient/dispatch.c,v 1.52 2012/07/09 16:21:21 krw Exp $ */
+/* $OpenBSD: src/sbin/dhclient/dispatch.c,v 1.53 2012/07/26 18:42:58 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
else
goto inactive;
}
-inactive:
- close(sock);
- return (0);
+
+ /* Assume 'active' if IFM_AVALID is not set. */
+
active:
close(sock);
return (1);
+inactive:
+ close(sock);
+ return (0);
}
void