genetlink

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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.

Jump to

Keyboard shortcuts

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