Increase pcap read timeout to reduce gratuitous CPU burden.
PR: ports/127313 Submitted by: Duane Wessels <wessels@life-gone-hazy.com>
This commit is contained in:
parent
4e3ff8a4f6
commit
95aad006b5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=222847
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= knock
|
||||
PORTVERSION= 0.5.20051124
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
|
||||
|
||||
|
11
security/knock/files/patch-src-knockd.c
Normal file
11
security/knock/files/patch-src-knockd.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/knockd.c.orig 2008-11-14 16:32:31.000000000 +0000
|
||||
+++ src/knockd.c 2008-11-14 16:33:22.000000000 +0000
|
||||
@@ -200,7 +200,7 @@
|
||||
}
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__APPLE__)
|
||||
- cap = pcap_open_live(o_int, 65535, 0, 1, pcapErr);
|
||||
+ cap = pcap_open_live(o_int, 65535, 0, 1000, pcapErr);
|
||||
#else
|
||||
cap = pcap_open_live(o_int, 65535, 0, 0, pcapErr);
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user