*/
fd_set activefds;
int maxactivefd;
+/*
+ * bit alternating value to detect verified interfaces during an update cycle
+ */
+static u_char sys_interphase = 0;
+
+static struct interface *new_interface P((struct interface *));
+static void add_interface P((struct interface *));
+static void update_interfaces P((u_short, interface_receiver_t, void *));
+static void remove_interface P((struct interface *));
+static struct interface *create_interface P((u_short, struct interface *));
- #ifdef F_DUPFD
- static int dup_fd P((int));
-static int create_sockets P((u_short));
-static SOCKET open_socket P((struct sockaddr_storage *, int, int, struct interface *, int));
-static void close_socket P((SOCKET));
-#ifdef REFCLOCK
-static void close_file P((SOCKET));
-#endif
+ #if !defined(SYS_WINNT) && defined(F_DUPFD)
+ static int move_fd P((int));
+ #ifndef FOPEN_MAX
+ #define FOPEN_MAX 20
+ #endif
#endif
-static char * fdbits P((int, fd_set *));
-static void set_reuseaddr P((int));
-static isc_boolean_t socket_broadcast_enable P((struct interface *, SOCKET, struct sockaddr_storage *));
-static isc_boolean_t socket_broadcast_disable P((struct interface *, int, struct sockaddr_storage *));
/*
* Multicast functions
*/