This commit is contained in:
crusader
2017-11-23 18:34:07 +09:00
parent 2f67baeb46
commit 3037d18a5f
8 changed files with 78 additions and 8 deletions

View File

@@ -16,5 +16,5 @@ type Port struct {
PortType string `json:"portType,omitempty"`
PortNumber int `json:"portNumber,omitempty"`
UDPLayer gopacket.Layer
UDPLayer gopacket.Layer `json:"-"`
}

View File

@@ -9,8 +9,8 @@ type Zone struct {
Iface string `json:"iface"`
Mac string `json:"mac"`
hosts map[string]*Host
mtx sync.RWMutex
hosts map[string]*Host `json:"-"`
mtx sync.RWMutex `json:"-"`
}
func (z *Zone) AddHost(h *Host) {