Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2009 10:56:50 +1100
From:      Lawrence Stewart <lstewart@room52.net>
To:        alexey@renatasystems.org
Cc:        Rui Paulo <rpaulo@FreeBSD.org>, freebsd-ports@freebsd.org
Subject:   [PATCH] trafshow port broken
Message-ID:  <49CD67C2.7010109@room52.net>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------010107020601060704070508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Alexey,

You're listed as the maintainer for the FreeBSD net/trafshow port. The 
port doesn't compile on 8.0-CURRENT (r190457) amd64 at the moment. The 
recent import of the new pcap into FreeBSD 8 means pcap.h no longer 
includes the system's net/bpf.h, which has a required #define ioctl 
(BIOCIMMEDIATE). Placing the attached patch in the port's files 
directory fixes the issue for me. The patch should only be required for 
${OSVERSION} >= 800074.

Rui, is patching the port the correct fix for this issue?

Cheers,
Lawrence

--------------010107020601060704070508
Content-Type: text/plain;
 name="patch-bpf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-bpf"

--- show_dump.c.orig	2009-03-28 10:33:29.000000000 +1100
+++ show_dump.c	2009-03-28 10:28:44.000000000 +1100
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <errno.h>
+#include <net/bpf.h>
 #include <pcap.h>
 #include <pthread.h>
 #include <time.h>
--- trafshow.c.orig	2009-03-28 10:33:50.000000000 +1100
+++ trafshow.c	2009-03-28 10:27:52.000000000 +1100
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <time.h>
+#include <net/bpf.h>
 #include <pcap.h>
 #include <pthread.h>
 #include <errno.h>

--------------010107020601060704070508--



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