mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-27 05:50:56 -04:00
34 lines
805 B
Plaintext
34 lines
805 B
Plaintext
$NetBSD: patch-al,v 1.2 2015/01/14 20:39:42 rumko Exp $
|
|
$OpenBSD: patch-cache_h,v 1.1 2008/06/13 00:38:12 canacar Exp $
|
|
|
|
FreeBSD compatibility.
|
|
Patches to support PF > 4.1 taken from OpenBSD's ports.
|
|
|
|
--- cache.h.orig 2007-11-07 06:34:18.000000000 +0000
|
|
+++ cache.h
|
|
@@ -31,14 +31,24 @@
|
|
struct sc_ent {
|
|
RB_ENTRY(sc_ent) tlink;
|
|
TAILQ_ENTRY(sc_ent) qlink;
|
|
+#ifdef HAVE_PFSYNC_STATE
|
|
+#if defined(__FreeBSD__) && __FreeBSD_version > 1000017
|
|
+ u_int64_t id;
|
|
+#else
|
|
+ u_int32_t id[2];
|
|
+#endif
|
|
+#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);
|