iface

package
v0.0.0-...-d65536c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configsocket

type Configsocket struct {
	// contains filtered or unexported fields
}

func NewConfigSocket

func NewConfigSocket(iface string) (Configsocket, error)

func (Configsocket) AddRoute

func (cs Configsocket) AddRoute(dst, gateway net.IP, genmask net.IPMask) syscall.Errno

func (Configsocket) Close

func (cs Configsocket) Close() error

func (Configsocket) DelRoute

func (cs Configsocket) DelRoute(dst, gateway net.IP, genmask net.IPMask) syscall.Errno

func (Configsocket) SetAddress

func (cs Configsocket) SetAddress(addr net.IP) error

func (Configsocket) SetBroadcast

func (cs Configsocket) SetBroadcast(addr net.IP) error

func (Configsocket) SetNetmask

func (cs Configsocket) SetNetmask(addr net.IPMask) error

func (Configsocket) Up

func (cs Configsocket) Up() error

Jump to

Keyboard shortcuts

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