From 3b2cd063fe45232d1ac346a80257570435a0eed2 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Tue, 10 Dec 2013 22:24:39 -0600 Subject: [PATCH] [server] pcap_dispatch() packet count default to 100 Updated pcap_dispatch() default packet count from zero to 100. This change was made to ensure backwards compatibility with older versions of libpcap per the pcap_dispatch() man page, and also because some of a report from Les Aker of an unexpected crash on Arch Linux with libpcap-1.5.1 that is fixed by this change (closes #110). --- ChangeLog | 5 +++++ server/fwknopd_common.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 39154239..e42214b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,11 @@ fwknop-2.5.2 (//2013): recommended to use HMAC authenticated encryption whenever possible even for GPG modes since this also provides a work around even for libfko prior to this fix. + - [server] Updated pcap_dispatch() default packet count from zero to 100. + This change was made to ensure backwards compatibility with older + versions of libpcap per the pcap_dispatch() man page, and also because + some of a report from Les Aker of an unexpected crash on Arch Linux with + libpcap-1.5.1 that is fixed by this change (closes #110). - [server] Bug fix for SPA NAT modes on iptables firewalls to ensure that custom fwknop chains are re-created if they get deleted out from under the running fwknopd instance. diff --git a/server/fwknopd_common.h b/server/fwknopd_common.h index fffb89e4..1083bd72 100644 --- a/server/fwknopd_common.h +++ b/server/fwknopd_common.h @@ -85,7 +85,7 @@ #define DEF_INTERFACE "eth0" #define DEF_ENABLE_PCAP_PROMISC "N" #define DEF_PCAP_FILTER "udp port 62201" -#define DEF_PCAP_DISPATCH_COUNT "0" +#define DEF_PCAP_DISPATCH_COUNT "100" #define DEF_PCAP_LOOP_SLEEP "100000" /* a tenth of a second (in microseconds) */ #define DEF_ENABLE_PCAP_ANY_DIRECTION "N" #define DEF_ENABLE_SPA_PACKET_AGING "Y"