Files
ports/security/openvas-libraries/files/patch-libopenvas-pcap.c
T
Edwin Groothuis 2b7aa4172c [NEW PORT] security/openvas-libraries: Libraries for OpenVAS
OpenVAS stands for Open Vulnerability Assessment System and
	is a network security scanner with associated tools like a
	graphical user fontend. The core is a server component with
	a set of network vulnerability tests (NVTs) to detect
	security problems in remote systems and applications.

	WWW: http://www.openvas.org/

PR:		ports/123127
Submitted by:	Tomoyuki Sakurai <cherry@trombik.org>
2008-06-04 13:15:44 +00:00

24 lines
576 B
C

--- libopenvas/pcap.c.orig 2008-03-21 06:25:01.000000000 +0900
+++ libopenvas/pcap.c 2008-04-26 23:47:15.000000000 +0900
@@ -16,9 +16,7 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <resolv.h>
#include <pcap.h>
-#include <net/if.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <netdb.h>
@@ -28,6 +26,10 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <sys/param.h>
+#include <net/if.h>
#include "bpf_share.h"
#include "pcap_openvas.h"