knockd uses too much CPU, especially on systems with slower or low-power
CPUS (such as the Soekris net4501).
The timeout argument to pcap_open_live (1 ms) seems unreasonably small. On a
soekris box it uses 15% of CPU. Setting the timeout to 1 second reduces it to
Fix: Patch attached with submission follows:
How-To-Repeat: Install and configure on a system with ~133 MHz CPU. Check process CPU
usage with 'top'.
Over to maintainer (via the GNATS Auto Assign Tool)
shaun 2008-11-14 16:36:55 UTC
FreeBSD ports repository
Increase pcap read timeout to reduce gratuitous CPU burden.
Submitted by: Duane Wessels <email@example.com>
Revision Changes Path
1.4 +1 -0 ports/security/knock/Makefile
1.1 +11 -0 ports/security/knock/files/patch-src-knockd.c (new)
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "email@example.com"