summaryrefslogtreecommitdiff
path: root/datastructs.go
diff options
context:
space:
mode:
Diffstat (limited to 'datastructs.go')
-rw-r--r--datastructs.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/datastructs.go b/datastructs.go
index c885dea..25220c5 100644
--- a/datastructs.go
+++ b/datastructs.go
@@ -1,6 +1,11 @@
package main
+import (
+ "time"
+)
+
type RawData struct {
+ ipSrc string
ipDst string
time time.Time
port int
@@ -21,7 +26,7 @@ type CleanData struct {
}
func (cd *CleanData) equals(other *CleanData) bool {
- return cd.ipdbSrc == other.ipbSrc &&
+ return cd.ipbSrc == other.ipbSrc &&
cd.ipbDst == other.ipbDst &&
cd.time == other.time &&
cd.port == other.port &&