Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2012 17:59:24 +0100
From:      Kurt Jaeger <pi@opsec.eu>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/166224: [patch update] net-mgmt/p0f 2.0.8 -> 3.03b
Message-ID:  <20120318165924.GE42288@home.opsec.eu>
In-Reply-To: <201203181600.q2IG0PFe037099@freefall.freebsd.org>
References:  <E1S9IO3-0003by-RK@zfs.opsec.eu> <201203181600.q2IG0PFe037099@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

There are two little issues:

One:

pkg_delete returns those errors and I do not understand, why. Any ideas,
what's wrong with pkg-plist ?

------------
pkg_delete: file '/usr/local/share/doc/p0f/COPYING' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f/ChangeLog' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f/README' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f/TODO' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f/existential-notes.txt' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f/extra-sigs.txt' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/share/doc/p0f'
pkg_delete: couldn't entirely delete package `p0f-3.03b_1'
(perhaps the packing list is incorrectly specified?)

------------

Two:
This is the fixed patch-process.c:

------------
--- process.c.orig	2012-01-17 04:43:57.000000000 +0100
+++ process.c	2012-03-18 17:56:45.300811017 +0100
@@ -22,6 +22,9 @@
 #include <arpa/inet.h>
 #include <sys/time.h>
 #include <sys/stat.h>
+#include <net/if.h>
+#include <net/pfvar.h>
+#include <net/if_pflog.h>
 
 #include "types.h"
 #include "config.h"
@@ -106,7 +109,7 @@
     case DLT_LINUX_SLL:  link_off = 16; return;
 #endif /* DLT_LINUX_SLL */
 
-    case DLT_PFLOG:      link_off = 28; return;
+    case DLT_PFLOG:      link_off = sizeof(struct pfloghdr); return;
 
     case DLT_IEEE802_11: link_off = 32; return;
   }
------------

-- 
pi@opsec.eu            +49 171 3101372                         8 years to go !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120318165924.GE42288>