Versions in this module Expand all Collapse all v1 v1.0.1 Jan 16, 2021 v1.0.0 Apr 25, 2020 Changes in this version + func BlockTCPStats(ifName string, network *net.IPNet) + func DNSLookupByIP(ip net.IP) string + func HasTrafficSince(ip net.IP, deadline time.Time) bool + func ICMPListenAndServe(ifName string) + func ListenAndServe(nic string, localNetwork net.IPNet, hostMAC net.HardwareAddr) error + func PrintPacketInfo(packet gopacket.Packet) + func PrintTable() + type DNSStats struct + DNSAnswer []net.IP + DNSAnswerTTL []string + DNSOpsCode string + DNSQuery string + DNSResponseCode string + DestinationIP string + NumberOfAnswers string + SourceIP string + Timestamp string + type HostStats struct + Blocked bool + IP net.IP + LastPacketTime time.Time + MAC net.HardwareAddr + Traffic []*TCPStats + func FindHostByIP(ip net.IP) *HostStats + type ICMPStats struct + DestinationIP string + SourceIP string + Timestamp string + type TCPStats struct + IP net.IP + InPacketBytes uint + InPacketCount uint + LastPacketTime time.Time + OutConnCount uint + OutPacketBytes uint + OutPacketCount uint