[server] Bug fix to not include pcap.h in --enable-udp-server mode

This commit is contained in:
Michael Rash 2015-02-17 23:21:05 -08:00
parent 987455b902
commit 1ce800446d
4 changed files with 15 additions and 2 deletions

View File

@ -209,3 +209,7 @@ Grant Pannell
and individual IP addresses can be specified as well. Also, multiple IP's
and/or networks can be defined as a comma separated list (e.g.
"192.168.10.0/24,10.1.1.123").
Alexander Kozhevnikov
- Reported a bug when fwknop is compiled with --enable-udp-server where
the server was including pcap.h

View File

@ -1,3 +1,8 @@
fwknop-2.6.6 (02//2015):
- [server] Bug fix when compiled with --enable-udp-server to not include
pcap.h, which is likely not installed whenever libpcap is also not
installed. This bug was reported by Alexander Kozhevnikov.
fwknop-2.6.5 (12/16/2014):
- [server] (Grant Pannell) Added a new access.conf variable "DESTINATION"
to define the destination address for which an SPA packet will be

View File

@ -29,6 +29,7 @@
*****************************************************************************
*/
#if USE_LIBPCAP
#include <pcap.h>
@ -45,8 +46,6 @@
#include <sys/wait.h>
#endif
#if USE_LIBPCAP
/* The pcap capture routine.
*/
int

View File

@ -31,6 +31,9 @@
*
*****************************************************************************
*/
#if USE_LIBPCAP
#include <pcap.h>
#include "fwknopd_common.h"
@ -228,4 +231,6 @@ process_packet(unsigned char *args, const struct pcap_pkthdr *packet_header,
return;
}
#endif /* USE_LIBPCAP */
/***EOF***/