Versions in this module Expand all Collapse all v0 v0.1.0 May 30, 2022 Changes in this version + const NFGEN_HDRLEN + var ErrShortResponse = errors.New("Got short response from netlink") + type NLAttr struct + Data []byte + Type uint16 + func NewAttr(atype uint16, data []byte) *NLAttr + func NewAttrFromFields(atype uint16, fields ...interface{}) (*NLAttr, error) + func ParseAttr(r *bytes.Reader) (*NLAttr, error) + func (a *NLAttr) ReadFields(fields ...interface{}) error + func (a *NLAttr) Size() int + func (a *NLAttr) String() string + func (a *NLAttr) WriteTo(b *bytes.Buffer) + type NetlinkSocket struct + func NewNetlinkSocket(bus int) (*NetlinkSocket, error) + func (s *NetlinkSocket) ClearFlag(f SockFlags) + func (s *NetlinkSocket) Close() + func (s *NetlinkSocket) NewNfNlMsg() *NfNlMessage + func (s *NetlinkSocket) Receive() <-chan *NfNlMessage + func (s *NetlinkSocket) RecvErr() error + func (s *NetlinkSocket) Send(msg *NfNlMessage) error + func (s *NetlinkSocket) SetFlag(f SockFlags) + type NfGenHdr struct + Family uint8 + ResID uint16 + Version uint8 + type NfNlMessage struct + func (m *NfNlMessage) AddAttribute(attr *NLAttr) + func (m *NfNlMessage) AddAttributeData(atype uint16, data []byte) + func (m *NfNlMessage) AddAttributeFields(atype uint16, fields ...interface{}) error + func (m *NfNlMessage) AttrByType(atype uint16) *NLAttr + func (m *NfNlMessage) Send() error + func (m *NfNlMessage) Serialize() []byte + func (m *NfNlMessage) String() string + type SockFlags int + const FlagAckRequests + const FlagDebug + const FlagLogWarnings