genl

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: GPL-2.0, GPL-2.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GENL_ADMIN_PERM uint8 = 1 << iota
	GENL_CMD_CAP_DO
	GENL_CMD_CAP_DUMP
	GENL_CMD_CAP_HASPOL
	GENL_UNS_ADMIN_PERM
)
View Source
const (
	GENL_ID_CTRL = nl.NLMSG_MIN_TYPE + iota
	GENL_ID_VFS_DQUOT
	GENL_ID_PMCRAID
	GENL_START_ALLOC
)

List of reserved static generic netlink identifiers:

View Source
const (
	CTRL_CMD_UNSPEC uint8 = iota
	CTRL_CMD_NEWFAMILY
	CTRL_CMD_DELFAMILY
	CTRL_CMD_GETFAMILY
	CTRL_CMD_NEWOPS
	CTRL_CMD_DELOPS
	CTRL_CMD_GETOPS
	CTRL_CMD_NEWMCAST_GRP
	CTRL_CMD_DELMCAST_GRP
	CTRL_CMD_GETMCAST_GRP /* unused */

	N_CTRL_CMD
)

Controller

View Source
const (
	CTRL_ATTR_UNSPEC uint16 = iota
	CTRL_ATTR_FAMILY_ID
	CTRL_ATTR_FAMILY_NAME
	CTRL_ATTR_VERSION
	CTRL_ATTR_HDRSIZE
	CTRL_ATTR_MAXATTR
	CTRL_ATTR_OPS
	CTRL_ATTR_MCAST_GROUPS

	N_CTRL_ATTR
)
View Source
const (
	CTRL_ATTR_OP_UNSPEC uint16 = iota
	CTRL_ATTR_OP_ID
	CTRL_ATTR_OP_FLAGS

	N_CTRL_ATTR_OP
)
View Source
const (
	CTRL_ATTR_MCAST_GRP_UNSPEC uint16 = iota
	CTRL_ATTR_MCAST_GRP_NAME
	CTRL_ATTR_MCAST_GRP_ID

	N_CTRL_ATTR_MCAST_GRP
)
View Source
const CTRL_ATTR_MAX = N_CTRL_ATTR - 1
View Source
const CTRL_ATTR_MCAST_GRP_MAX = N_CTRL_ATTR_MCAST_GRP - 1
View Source
const CTRL_ATTR_OP_MAX = N_CTRL_ATTR_OP - 1
View Source
const CTRL_CMD_MAX = N_CTRL_CMD - 1
View Source
const GENL_MAX_ID uint16 = 1023
View Source
const GENL_MIN_ID = nl.NLMSG_MIN_TYPE
View Source
const GENL_NAMSIZ = 16 // length of family name
View Source
const SizeofMsg = (2 * sizeof.Byte) + sizeof.Short

Variables

This section is empty.

Functions

func GetFamily

func GetFamily(sr *nl.SockReceiver, name string) (uint16, error)

Types

type Gea

type Gea [N_CTRL_ATTR][]byte

func (*Gea) Write

func (gea *Gea) Write(b []byte) (int, error)

type Msg

type Msg struct {
	Cmd     uint8
	Version uint8
	// contains filtered or unexported fields
}

func MsgPtr

func MsgPtr(b []byte) *Msg

func (Msg) Read

func (msg Msg) Read(b []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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