Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-src_DivertInterface.cpp,v 1.1 2016/07/01 04:51:15 adam Exp $
Fix for undefined IPPROTO_DIVERT.
--- src/DivertInterface.cpp.orig 2016-06-29 10:56:38.000000000 +0000
+++ src/DivertInterface.cpp
@@ -82,6 +82,9 @@ DivertInterface::DivertInterface(const c
port = atoi(&name[7]);
+#ifndef IPPROTO_DIVERT
+#define IPPROTO_DIVERT 254
+#endif
if((sock = socket(PF_INET, SOCK_RAW, IPPROTO_DIVERT)) == -1) {
ntop->getTrace()->traceEvent(TRACE_ERROR, "Unable to created divert socket");
throw 1;