make connectionEvent public

This commit is contained in:
Lorenzo Manacorda
2016-09-19 14:15:27 +02:00
parent 2c6019efdc
commit 9e16db9490

View File

@@ -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,