netlink

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

© 2021 Red Hat, Inc. and others.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var NewFunc func() Interface

Functions

This section is empty.

Types

type Interface

type Interface interface {
	LinkAdd(link netlink.Link) error
	LinkDel(link netlink.Link) error
	LinkByName(name string) (netlink.Link, error)
	LinkSetUp(link netlink.Link) error

	AddrAdd(link netlink.Link, addr *netlink.Addr) error

	NeighAppend(neigh *netlink.Neigh) error
	NeighDel(neigh *netlink.Neigh) error

	RouteAdd(route *netlink.Route) error
	RouteDel(route *netlink.Route) error
	RouteGet(destination net.IP) ([]netlink.Route, error)
	RouteList(link netlink.Link, family int) ([]netlink.Route, error)

	FlushRouteTable(tableID int) error

	RuleAdd(rule *netlink.Rule) error
	RuleDel(rule *netlink.Rule) error

	XfrmPolicyAdd(policy *netlink.XfrmPolicy) error
	XfrmPolicyDel(policy *netlink.XfrmPolicy) error
	XfrmPolicyList(family int) ([]netlink.XfrmPolicy, error)

	EnableLooseModeReversePathFilter(interfaceName string) error

	ConfigureTCPMTUProbe(mtuProbe, baseMss string) error
}

func New

func New() Interface

Directories

Path Synopsis
© 2021 Red Hat, Inc.
© 2021 Red Hat, Inc.

Jump to

Keyboard shortcuts

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