SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
23
security/scanssh/patches/patch-interface_c
Normal file
23
security/scanssh/patches/patch-interface_c
Normal file
|
@ -0,0 +1,23 @@
|
|||
Index: interface.c
|
||||
--- interface.c.orig
|
||||
+++ interface.c
|
||||
@@ -225,8 +225,8 @@ interface_init(char *dev, int naddresses, char **addre
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,7 +355,7 @@ interface_poll_recv(int fd, short type, void *arg)
|
||||
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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue