Documentation ¶
Overview ¶
@@ @ Author : Eacher @ Date : 2023-09-12 08:12:21 @ LastEditTime : 2023-09-20 11:19:13 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/netlink/message.go @@
@@ @ Author : Eacher @ Date : 2023-09-11 11:04:00 @ LastEditTime : 2023-09-20 13:40:21 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/netlink/netlink.go @@
@@ @ Author : Eacher @ Date : 2023-09-12 14:06:55 @ LastEditTime : 2023-09-14 10:22:45 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/netlink/socket.go @@
Index ¶
Constants ¶
const ReceiveDataSize = 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetlinkRoute ¶
type NetlinkRoute struct { Err error DevName string Sal *syscall.SockaddrNetlink // contains filtered or unexported fields }
func (*NetlinkRoute) Close ¶
func (nlr *NetlinkRoute) Close() error
func (*NetlinkRoute) Exchange ¶
func (nlr *NetlinkRoute) Exchange(sm *SendNLMessage, rm *ReceiveNLMessage) error
func (*NetlinkRoute) Receive ¶
func (nlr *NetlinkRoute) Receive() (<-chan *ReceiveNLMessage, error)
func (*NetlinkRoute) Send ¶
func (nlr *NetlinkRoute) Send(sm *SendNLMessage) error