summaryrefslogtreecommitdiff
path: root/sysutils/pftop/patches/patch-al
blob: c3ec89f9f981e15762fec113ece436117f62b2c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-al,v 1.1 2011/02/09 22:51:38 rumko Exp $
$OpenBSD: patch-cache_h,v 1.1 2008/06/13 00:38:12 canacar Exp $

Patches to support PF > 4.1 taken from OpenBSD's ports.

--- cache.h.orig	Tue Nov  6 23:34:18 2007
+++ cache.h	Wed Jun 11 19:50:07 2008
@@ -31,14 +31,20 @@
 struct sc_ent {
         RB_ENTRY(sc_ent)    tlink;
 	TAILQ_ENTRY(sc_ent) qlink;
+#ifdef HAVE_PFSYNC_STATE
+	u_int32_t	    id[2];
+#else
 	struct pf_addr      addr[2];
+#endif
 	double		    peak;
 	double		    rate;
 	time_t		    t;
 	u_int32_t	    bytes;
+#ifndef HAVE_PFSYNC_STATE
         u_int16_t           port[2];
         u_int8_t            af;
         u_int8_t            proto;
+#endif
 };
 
 int cache_init(int);