Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + type AttrsView []byte + func (v AttrsView) Empty() bool + func (v AttrsView) Parse() (map[uint16]BytesView, bool) + func (v AttrsView) ParseFirst() (hdr linux.NetlinkAttrHeader, value []byte, rest AttrsView, ok bool) + type BytesView []byte + func (v *BytesView) Extract(n int) ([]byte, bool) + func (v *BytesView) String() string + func (v *BytesView) Uint32() (uint32, bool) + type Message struct + func NewMessage(hdr linux.NetlinkMessageHeader) *Message + func ParseMessage(buf []byte) (msg *Message, rest []byte, ok bool) + func (m *Message) Finalize() []byte + func (m *Message) GetData(msg marshal.Marshallable) (AttrsView, bool) + func (m *Message) Header() linux.NetlinkMessageHeader + func (m *Message) Put(v marshal.Marshallable) + func (m *Message) PutAttr(atype uint16, v marshal.Marshallable) + func (m *Message) PutAttrString(atype uint16, s string) + type MessageSet struct + Messages []*Message + Multi bool + PortID int32 + Seq uint32 + func NewMessageSet(portID int32, seq uint32) *MessageSet + func (ms *MessageSet) AddMessage(hdr linux.NetlinkMessageHeader) *Message