Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseNTPRecord ¶
ParseNTPRecord validates that the incoming UDP packet is an NTP packet based on NTP protocol headers.
func ShouldIgnoreIP ¶
ShouldIgnore IP checks if the IP address is from the router or localhost.
Types ¶
type FileManager ¶
type FileManager struct {
// contains filtered or unexported fields
}
func (*FileManager) LogNTPPacket ¶
func (fm *FileManager) LogNTPPacket(packet gopacket.Packet, ipString string)
func (*FileManager) RotateFileIfNeeded ¶
func (fm *FileManager) RotateFileIfNeeded(identifier string, prefixes *[]*net.IPNet) error
Click to show internal directories.
Click to hide internal directories.