summaryrefslogtreecommitdiff
path: root/datastructs.go
diff options
context:
space:
mode:
authorDaniel Langesten <daniel.langest@gmail.com>2015-03-04 11:54:47 +0100
committerDaniel Langesten <daniel.langest@gmail.com>2015-03-04 11:54:47 +0100
commit88c81cca68b23f02a8a7074093c07d7782373fbf (patch)
tree5b83fcaa174dc4d8cf2dc5fdffae3a830a5b0d20 /datastructs.go
parentcfed33452eae200977ce15559cd9e36a1c486c21 (diff)
compile errors and bugfix
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 &&