xnet

package
v0.0.0-...-c8fc2fc Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	SIGRTable    = 11
	SIGRPriority = 100
	SIGTxQlen    = 1000
)

Variables

This section is empty.

Functions

func ConnectTun

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

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

func NewRoute

func NewRoute(link netlink.Link, dest *net.IPNet) *netlink.Route

Types

This section is empty.

Jump to

Keyboard shortcuts

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