impl

package
v0.0.0-...-d9b08a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyscallGetSocketSendQueueSize

func SyscallGetSocketSendQueueSize(c syscall.RawConn) uint64

SyscallGetSocketSendQueueSize returns the current size of the send queue on the specified socket.

func SyscallReuseAddr

func SyscallReuseAddr(network string, address string, c syscall.RawConn) error

SyscallReuseAddr sets SO_REUSEADDR on Unix-like platforms.

Types

type PcapHandle

type PcapHandle interface {
	gopacket.PacketDataSource
	LinkType() layers.LinkType
	WritePacketData(data []byte) error
	Close()
}

PcapHandle contains a subset of *pcap.Handle methods.

func OpenPcap

func OpenPcap(device, bpfFilter string) (PcapHandle, error)

OpenPcap creates and activates a PCAP handle.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL