rtnetlink

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2023 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

@@ @ Author : Eacher @ Date : 2023-06-29 15:13:47 @ LastEditTime : 2023-07-08 16:12:33 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /networkmanager/socket/rtnetlink/rtnetlink.go @@

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetlinkMessage

type NetlinkMessage struct {
	Notify  <-chan struct{}
	Message []*syscall.NetlinkMessage
	// contains filtered or unexported fields
}

type RtnetlinkConn

type RtnetlinkConn struct {
	*socket.Socket
	// contains filtered or unexported fields
}

func NewRtnetlinkConn

func NewRtnetlinkConn(dev string, ifi *net.Interface) (*RtnetlinkConn, error)

func (*RtnetlinkConn) Close

func (rt *RtnetlinkConn) Close()

func (*RtnetlinkConn) Exchange

func (rt *RtnetlinkConn) Exchange(wait, proto, flags uint16, data []byte) (*NetlinkMessage, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL