// CheckLogItem checks that it understands the LogItem.
CheckLogItem checks that it understands the LogItem.
// CheckLogItem checks that it understands the LogItem .
func CheckLogItem(logItem *LogItem) bool {
	event := logItem.Event
	if event == "LAN access from remote" {
		return true
	}
	if event == "Internet connected" {
		return true
	}
	if event == "DoS Attack: ACK Scan" {
		return true
	}
	if event == "DoS Attack: ARP Attack" {
		return true
	}
	if event == "DoS Attack: Ascend Kill" {
		return true
	}
	if event == "DoS Attack: RST Scan" {
		return true
	}
	if event == "DoS Attack: SYN/ACK Scan" {
		return true
	}
	if event == "DoS Attack: TCP/UDP Chargen" {
		return true
	}
	if event == "DoS Attack: TCP/UDP Echo" {
		return true
	}
	if event == "DoS Attack: UDP Port Scan" {
		return true
	}
	if strings.HasPrefix(event, "DHCP IP: ") {
		return true
	}
	if event == "Time synchronized with NTP server" {
		return true
	}
	if strings.HasPrefix(event, "email sent to: ") {
		return true
	}
	log.Fatal("Do not know event " + event)
	return true
}
func CheckLogItem ( logItem * LogItem ) bool { event := logItem . Event if event == " " { return true } if event == " " { return true } if event == " " { return true } if event == " " { return true } if event == " " { return true } if event == " " { return true } if event == " " { return true } if event == " " { return true } if event == " " { return true } if event == " " { return true } if strings . HasPrefix ( event , " " ) { return true } if event == " " { return true } if strings . HasPrefix ( event , " " ) { return true } log . Fatal ( " " + event ) return true }
CheckLogItem checks that it understands the LogItem.
CheckLogItem checks that it understands the LogItem .
// details includes remote and local addresses // details includes WAN IP address // details includes remote address and event has attach type // details includes remote address and event has attach type // details includes remote address and event has attach type // details includes remote address and event has attach type // details includes remote address and event has attach type // details includes remote address and event has attach type // details includes remote address and event has attach type // details includes remote address and event has attach type // details includes MAC address and event has LAN IP address // are there details? // no details and event has e-mail address - this is really of no interest