Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
@@ -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;