Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) AddGroupMembership(groupid uint32) (err error)
- func (c *Client) Close() (err error)
- func (c *Client) DropGroupMembership(groupid uint32) (err error)
- func (c *Client) GetFamilies() (families []Family, err error)
- func (c *Client) GetFamily(familyName string) (family *Family, err error)
- func (c *Client) Open() (err error)
- func (c *Client) Receive() (msgs []nl.Message, err error)
- type Family
- type McastGroup
- type Message
- type Op
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EGroupNotFound = errors.New("Group not found")
)
View Source
var (
EInvalidMessage = errors.New("Invalid generic netlink message")
)
View Source
var (
ENlClient = errors.New("Netlink client not connected, maybe not created with NewGeNl")
)
View Source
var (
EParseGroup = errors.New("Error parsing multicast group data")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddGroupMembership ¶
func (*Client) DropGroupMembership ¶
func (*Client) GetFamilies ¶
This refers to generic netlink families, not netlink families (netlink family is always NETLINK_GENERIC)
type Family ¶
type Family struct { ID uint16 Version uint8 Name string Groups []McastGroup Ops []Op //ToDo: struct and parsing }
type McastGroup ¶
func ParseAttrsToMcastGroup ¶
func ParseAttrsToMcastGroup(attrs []mnetlink.Attr) (group McastGroup, err error)
func ParseAttrsToMcastGroups ¶
func ParseAttrsToMcastGroups(attrs []mnetlink.Attr) (groups []McastGroup, err error)
type Message ¶
func (Message) AttributesFromData ¶
func (*Message) MarshalBinary ¶
func (*Message) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.