Documentation ¶
Index ¶
- func ButcherConnections(packetSource *gopacket.PacketSource, handle *pcap.Handle) (err error)
- func CheckIpLocal(ip string) bool
- func CombineBpfFilters(filters ...string) string
- func FindSystemInterfaceForIP(ip string) (interf *pcap.Interface, err error)
- func ForgeIPv4RstPacket(srcMac net.HardwareAddr, dstMac net.HardwareAddr, srcIp net.IP, dstIp net.IP, ...) (packet gopacket.Packet, err error)
- func ForgeIPv4SynPackage(srcIp net.IP, dstIp net.IP, srcPort layers.TCPPort, dstPort layers.TCPPort, ...) (packet gopacket.Packet, err error)
- func ForgeIPv6RstPacket(srcMac net.HardwareAddr, dstMac net.HardwareAddr, srcIp net.IP, dstIp net.IP, ...) (packet gopacket.Packet, err error)
- func GetBpfFilter(host string, srcHost string, dstHost string, srcPort int, dstPort int) (filter string)
- func GetPcapHandleWithFilter(interf *pcap.Interface, filter string) (handle *pcap.Handle, err error)
- func GetPcapInterfaceForName(name string) (interf *pcap.Interface, err error)
- func GetSystemInterfaces() []pcap.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ButcherConnections ¶
func ButcherConnections(packetSource *gopacket.PacketSource, handle *pcap.Handle) (err error)
func CheckIpLocal ¶
func CombineBpfFilters ¶
func ForgeIPv4RstPacket ¶
func ForgeIPv4SynPackage ¶
func ForgeIPv6RstPacket ¶
func GetBpfFilter ¶
func GetPcapHandleWithFilter ¶
func GetPcapInterfaceForName ¶
func GetSystemInterfaces ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.