Documentation
¶
Index ¶
- Constants
- func DecodeAttrBytes(b []byte) ([]byte, int, error)
- func DecodeAttrString(b []byte) (string, int, error)
- func DecodeAttrU8(b []byte) (uint8, int, error)
- func DecodeAttrU16(b []byte) (uint16, int, error)
- func DecodeAttrU32(b []byte) (uint32, int, error)
- func DecodeAttrU64(b []byte) (uint64, int, error)
- func DecodeMsgError(b []byte) (error, int, error)
- func IfnameToIndex(name string) (i int, err error)
- func NativeEndian() binary.ByteOrder
- func Recvmsg(s int, msg *syscall.Msghdr, flags int) (n int, err error)
- func Sendmsg(s int, msg *syscall.Msghdr, flags int) (n int, err error)
- type Attr
- type AttrBytes
- type AttrHdr
- type AttrLen
- type AttrList
- type AttrString
- type AttrU8
- type AttrU16
- type AttrU32
- type AttrU64
- type Client
- type Conn
- type Conner
- type Encoder
- type Encoders
- type Handler
- type HandlerFunc
- type HandlerStack
- type Header
- type Ifreq
- type Msg
- type Mux
- type Request
- func (r *Request) Append(e Encoder) error
- func (r *Request) AppendBytes(b []byte)
- func (r *Request) AppendPointer(p unsafe.Pointer, length int)
- func (r *Request) AppendReplyType(typ int)
- func (r *Request) Commit(seq int)
- func (r *Request) ContainsReplyType(typ int) bool
- func (r *Request) NeedAck() bool
Constants ¶
View Source
const (
NLA_TYPE_MASK = ^uint16(syscall.NLA_F_NESTED | syscall.NLA_F_NET_BYTEORDER)
)
Variables ¶
This section is empty.
Functions ¶
func IfnameToIndex ¶
func NativeEndian ¶
Types ¶
type HandlerFunc ¶
func (HandlerFunc) ServeMsg ¶
func (f HandlerFunc) ServeMsg(msg *Msg) bool
type HandlerStack ¶
type HandlerStack []Handler
func (HandlerStack) ServeMsg ¶
func (hs HandlerStack) ServeMsg(msg *Msg) bool
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
func (*Mux) PopHandler ¶
func (*Mux) PushHandlerFunc ¶
type Request ¶
func NewRequest ¶
func (*Request) AppendBytes ¶
func (*Request) AppendReplyType ¶
func (*Request) ContainsReplyType ¶
Click to show internal directories.
Click to hide internal directories.