$OpenBSD: patch-interface_c,v 1.1 2004/07/11 07:12:19 sturm Exp $ --- interface.c.orig Sun Jul 11 09:02:56 2004 +++ interface.c Sun Jul 11 09:04:02 2004 @@ -224,8 +224,8 @@ interface_init(char *dev, int naddresses struct timeval tv = SS_POLL_INTERVAL; syslog(LOG_INFO, "switching to polling mode"); - timeout_set(&inter->if_recvev, interface_poll_recv, inter); - timeout_add(&inter->if_recvev, &tv); + event_set(&inter->if_recvev, -1, 0, interface_poll_recv, inter); + event_add(&inter->if_recvev, &tv); } } @@ -354,7 +354,7 @@ interface_poll_recv(int fd, short type, struct interface *inter = arg; struct timeval tv = SS_POLL_INTERVAL; - timeout_add(&inter->if_recvev, &tv); + event_add(&inter->if_recvev, &tv); interface_recv(fd, type, arg); }