// TrackLANAddresses tracks the IP address assigned to LAN MACs.
TrackLANAddresses tracks the IP address assigned to LAN MACs.
// TrackLANAddresses tracks the IP address assigned to LAN MACs .
func TrackLANAddresses(logItem *LogItem) bool {
	matches := lanAddressEventRE.FindStringSubmatch(logItem.Event)
	if len(matches) == 0 {
		return false
	}
	lanIPAddress := matches[1]
	matches = lanAddressDetailRE.FindStringSubmatch(logItem.Detail)
	if len(matches) != 2 {
		log.Fatal("Expected MAC address in " + logItem.Detail)
	}
	lanMACAddress := matches[1]
	LANAddressToMAC[lanIPAddress] = lanMACAddress
	MACToLANAddress[lanMACAddress] = lanIPAddress
	return true
}
func TrackLANAddresses ( logItem * LogItem ) bool { matches := lanAddressEventRE . FindStringSubmatch ( logItem . Event ) if len ( matches ) == 0 { return false } lanIPAddress := matches [ 1 ] matches = lanAddressDetailRE . FindStringSubmatch ( logItem . Detail ) if len ( matches ) != 2 { log . Fatal ( " " + logItem . Detail ) } lanMACAddress := matches [ 1 ] LANAddressToMAC [ lanIPAddress ] = lanMACAddress MACToLANAddress [ lanMACAddress ] = lanIPAddress return true }
TrackLANAddresses tracks the IP address assigned to LAN MACs.
TrackLANAddresses tracks the IP address assigned to LAN MACs .
// TODO: store and check instants