Package: gopacket / 1.1.14-3

0001-Added-pfring-build-flag.patch Patch series | download
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
29
30
31
32
33
34
35
36
From: Hilko Bengen <bengen@debian.org>
Date: Mon, 8 Dec 2014 15:25:03 +0100
Subject: Added pfring build flag

---
 examples/pfdump/main.go | 3 +++
 pfring/pfring.go        | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/examples/pfdump/main.go b/examples/pfdump/main.go
index cc81ad0..bc67f4b 100644
--- a/examples/pfdump/main.go
+++ b/examples/pfdump/main.go
@@ -6,6 +6,9 @@
 
 // The pfdump binary implements a tcpdump-like command line tool with gopacket
 // using pfring as a backend data collection mechanism.
+
+// +build pfring
+
 package main
 
 import (
diff --git a/pfring/pfring.go b/pfring/pfring.go
index cc94351..a70c6f3 100644
--- a/pfring/pfring.go
+++ b/pfring/pfring.go
@@ -5,6 +5,8 @@
 // that can be found in the LICENSE file in the root of the source
 // tree.
 
+// +build pfring
+
 package pfring
 
 /*