Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2007 20:56:08 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-pf@freebsd.org
Subject:   Re: pflog problem
Message-ID:  <200709122056.17441.max@love2party.net>
In-Reply-To: <200709121804.l8CI4wVY071879@lava.sentex.ca>
References:  <200709121804.l8CI4wVY071879@lava.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2035184.j8oNzgNkta
Content-Type: multipart/mixed;
  boundary="Boundary-01=_KZD6GBuypcZDTGj"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_KZD6GBuypcZDTGj
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Wednesday 12 September 2007, Mike Tancsa wrote:
> On a box that got recently upgraded to current, I am having a problem
> reading from the pflog file.
>
> Not sure what are the "unknown" bits are, but I cant match hosts.

You are missing the attached patch - which I am trying to get through=20
tcpdump.org.  The pflog header changed (once again) and changes are=20
required.  Sorry for the mess.

=2D-=20
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--Boundary-01=_KZD6GBuypcZDTGj
Content-Type: text/x-diff; charset="iso-8859-1";
	name="pf.41.tcpdump_local.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="pf.41.tcpdump_local.diff"

Index: contrib/libpcap/gencode.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/store/mlaier/fcvs/src/contrib/libpcap/gencode.c,v
retrieving revision 1.16
diff -u -r1.16 gencode.c
=2D-- contrib/libpcap/gencode.c	4 Sep 2006 19:54:21 -0000	1.16
+++ contrib/libpcap/gencode.c	30 Jun 2007 17:01:13 -0000
@@ -75,7 +75,14 @@
 #include "ppp.h"
 #include "sll.h"
 #include "arcnet.h"
+#ifdef HAVE_NET_PFVAR_H
+#include <sys/socket.h>
+#include <net/if.h>
+#include <net/pfvar.h>
+#include <net/if_pflog.h>
+#else
 #include "pf.h"
+#endif
 #ifndef offsetof
 #define offsetof(s, e) ((size_t)&((s *)0)->e)
 #endif
Index: contrib/libpcap/grammar.y
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/store/mlaier/fcvs/src/contrib/libpcap/grammar.y,v
retrieving revision 1.11
diff -u -r1.11 grammar.y
=2D-- contrib/libpcap/grammar.y	4 Sep 2006 19:54:21 -0000	1.11
+++ contrib/libpcap/grammar.y	30 Jun 2007 17:02:55 -0000
@@ -53,7 +53,13 @@
 #include "pcap-int.h"
=20
 #include "gencode.h"
+#ifdef HAVE_NET_PFVAR_H
+#include <net/if.h>
+#include <net/pfvar.h>
+#include <net/if_pflog.h>
+#else
 #include "pf.h"
+#endif
 #include <pcap-namedb.h>
=20
 #ifdef HAVE_OS_PROTO_H
Index: contrib/tcpdump/print-pflog.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/store/mlaier/fcvs/src/contrib/tcpdump/print-pflog.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 print-pflog.c
=2D-- contrib/tcpdump/print-pflog.c	4 Sep 2006 20:04:14 -0000	1.1.1.3
+++ contrib/tcpdump/print-pflog.c	30 Jun 2007 17:03:26 -0000
@@ -28,6 +28,16 @@
 #include "config.h"
 #endif
=20
+#ifdef HAVE_NET_PFVAR_H
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <net/if.h>
+#include <net/pfvar.h>
+#include <net/if_pflog.h>
+#else
+#include "pf.h"
+#endif
+
 #include <tcpdump-stdinc.h>
=20
 #include <stdio.h>
@@ -35,7 +45,6 @@
=20
 #include "interface.h"
 #include "addrtoname.h"
=2D#include "pf.h"
=20
 static struct tok pf_reasons[] =3D {
 	{ 0,	"0(match)" },
Index: lib/libpcap/config.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/store/mlaier/fcvs/src/lib/libpcap/config.h,v
retrieving revision 1.5
diff -u -r1.5 config.h
=2D-- lib/libpcap/config.h	29 May 2005 18:12:46 -0000	1.5
+++ lib/libpcap/config.h	30 Jun 2007 17:05:20 -0000
@@ -45,6 +45,9 @@
 /* Define to 1 if you have the <memory.h> header file. */
 #define HAVE_MEMORY_H 1
=20
+/* Define to 1 if you have the <net/pfvar.h> header file. */
+#define HAVE_NET_PFVAR_H 1
+
 /* Define to 1 if you have the <netinet/ether.h> header file. */
 /* #undef HAVE_NETINET_ETHER_H */
=20
Index: usr.sbin/tcpdump/tcpdump/config.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/store/mlaier/fcvs/src/usr.sbin/tcpdump/tcpdump/config.h,v
retrieving revision 1.7
diff -u -r1.7 config.h
=2D-- usr.sbin/tcpdump/tcpdump/config.h	11 Jul 2005 04:14:42 -0000	1.7
+++ usr.sbin/tcpdump/tcpdump/config.h	30 Jun 2007 17:06:34 -0000
@@ -193,6 +193,9 @@
 /* Define to 1 if you have the <netdnet/dnetdb.h> header file. */
 /* #undef HAVE_NETDNET_DNETDB_H */
=20
+/* Define to 1 if you have the <net/pfvar.h> header file. */
+#define HAVE_NET_PFVAR_H 1
+
 /* Define to 1 if you have the <netinet/ether.h> header file. */
 /* #undef HAVE_NETINET_ETHER_H */
=20

--Boundary-01=_KZD6GBuypcZDTGj--

--nextPart2035184.j8oNzgNkta
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQBG6DZRXyyEoT62BG0RApUmAJ93ofPpuPwAjZPIw08sm2PHQ2XOPwCfUrNc
YmjYmx84A/uheHPcpq5+aG0=
=36tY
-----END PGP SIGNATURE-----

--nextPart2035184.j8oNzgNkta--



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