Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(msg *pktiopb.HostPortControlMessage) (pktiohandler.PortIO, error)
NewGenetlinkPort creates netlink socket for the given family and multicast group.
Types ¶
type GenetlinkPort ¶
type GenetlinkPort struct {
// contains filtered or unexported fields
}
GenetlinkPort is connect to a netlink socket that be written to.
func (GenetlinkPort) Delete ¶
func (p GenetlinkPort) Delete() error
Delete closes the netlink connection.
func (GenetlinkPort) Read ¶
func (p GenetlinkPort) Read([]byte) (int, error)
Read is not implemented.
func (GenetlinkPort) Write ¶
func (p GenetlinkPort) Write(frame []byte, md *kernel.PacketMetadata) (int, error)
Writes writes a layer2 frame to the port.
Click to show internal directories.
Click to hide internal directories.