[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).
This commit is contained in:
Michael Rash 2013-12-10 22:24:39 -06:00
parent aeed8323f7
commit 3b2cd063fe
2 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,11 @@ fwknop-2.5.2 (//2013):
recommended to use HMAC authenticated encryption whenever possible even recommended to use HMAC authenticated encryption whenever possible even
for GPG modes since this also provides a work around even for libfko for GPG modes since this also provides a work around even for libfko
prior to this fix. 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 - [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 custom fwknop chains are re-created if they get deleted out from under
the running fwknopd instance. the running fwknopd instance.

View File

@ -85,7 +85,7 @@
#define DEF_INTERFACE "eth0" #define DEF_INTERFACE "eth0"
#define DEF_ENABLE_PCAP_PROMISC "N" #define DEF_ENABLE_PCAP_PROMISC "N"
#define DEF_PCAP_FILTER "udp port 62201" #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_PCAP_LOOP_SLEEP "100000" /* a tenth of a second (in microseconds) */
#define DEF_ENABLE_PCAP_ANY_DIRECTION "N" #define DEF_ENABLE_PCAP_ANY_DIRECTION "N"
#define DEF_ENABLE_SPA_PACKET_AGING "Y" #define DEF_ENABLE_SPA_PACKET_AGING "Y"