xnet

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package xnet contains low level Linux networking calls (generally related to netlink and tunneling)

Index

Constants

View Source
const (
	SIGRPriority = 100
	SIGTxQlen    = 1000
)

Variables

This section is empty.

Functions

func AddRoute

func AddRoute(rTable int, link netlink.Link, dest *net.IPNet, src net.IP) error

func ConnectTun

func ConnectTun(name string) (netlink.Link, io.ReadWriteCloser, error)

ConnectTun creates (or opens) interface name, and then sets its state to up

Types

This section is empty.

Jump to

Keyboard shortcuts

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