Documentation ¶
Index ¶
Constants ¶
View Source
const ( AllPackets = syscall.ETH_P_ALL OnlyIPPackets = syscall.ETH_P_IP )
Protocols to receive
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RawSocket ¶
type RawSocket struct {
// contains filtered or unexported fields
}
RawSocket describes a raw socket C implemenation
func NewRawSocket ¶
NewRawSocket creates a raw socket for the network interface ifName
func NewRawSocketInNs ¶
NewRawSocketInNs create/open a socket in the namespace nsPath for the network interface ifName
Click to show internal directories.
Click to hide internal directories.