From 9e16db949041b42cc75b488595ff93ae7ac61bdb Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Mon, 19 Sep 2016 14:15:27 +0200 Subject: [PATCH] make connectionEvent public --- probe/endpoint/ebpf.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/probe/endpoint/ebpf.go b/probe/endpoint/ebpf.go index 5ffabe905..f5604c62f 100644 --- a/probe/endpoint/ebpf.go +++ b/probe/endpoint/ebpf.go @@ -20,7 +20,8 @@ const ( Close ) -type connectionEvent struct { +// A ConnectionEvent represents a network connection +type ConnectionEvent struct { Type event Pid int Command string @@ -125,7 +126,7 @@ func (t *EbpfTracker) run() { evt = Close } - e := connectionEvent{ + e := ConnectionEvent{ Type: evt, Pid: pid, SourceAddress: sAddr,