package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev

# Packages

Package port provides port ID allocation for netlink sockets.
Package route provides a NETLINK_ROUTE socket protocol.
Package uevent provides a NETLINK_KOBJECT_UEVENT socket protocol.

# Functions

ExtractSockAddr extracts the SockAddrNetlink from b.
New creates a new Socket.
NewMessage creates a new Message containing the passed header.
NewMessageSet creates a new MessageSet.
ParseMessage parses the first message seen at buf, returning the rest of the buffer.
RegisterProvider registers the provider of a given address protocol so that netlink sockets of that type can be created via socket(2).

# Structs

Message contains a complete serialized netlink message.
MessageSet contains a series of netlink messages.
Socket is the base socket type for netlink sockets.

# Interfaces

Protocol is the implementation of a netlink socket protocol.

# Type aliases

AttrsView is a view into the attributes portion of a netlink message.
BytesView supports extracting data from a byte slice with bounds checking.
Provider is a function that creates a new Protocol for a specific netlink protocol.