summaryrefslogtreecommitdiff
path: root/security/pf/files/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'security/pf/files/patch-ad')
-rw-r--r--security/pf/files/patch-ad23
1 files changed, 23 insertions, 0 deletions
diff --git a/security/pf/files/patch-ad b/security/pf/files/patch-ad
new file mode 100644
index 000000000000..8473380dac8e
--- /dev/null
+++ b/security/pf/files/patch-ad
@@ -0,0 +1,23 @@
+--- freebsd_libpcap/savefile.c.orig Fri Nov 21 14:35:34 2003
++++ freebsd_libpcap/savefile.c Fri Nov 21 14:35:46 2003
+@@ -178,6 +178,9 @@
+ #define LINKTYPE_HDLC 112 /* NetBSD HDLC framing */
+ #define LINKTYPE_IPFILTER 116 /* IP Filter capture files */
+ #define LINKTYPE_PFLOG 117 /* OpenBSD DLT_PFLOG */
++#if defined(DLT_PFSYNC)
++#define LINKTYPE_PFSYNC DLT_PFSYNC
++#endif
+
+ static struct linktype_map {
+ int dlt;
+@@ -271,6 +274,10 @@
+ * defining DLT_* values that collide with those
+ * LINKTYPE_* values, either).
+ */
++ { DLT_PFLOG, LINKTYPE_PFLOG },
++#if defined(DLT_PFSYNC)
++ { DLT_PFSYNC, LINKTYPE_PFSYNC },
++#endif
+ { -1, -1 }
+ };
+