loxinlp

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

* Copyright (c) 2022 NetLOX Inc * * 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

View Source
const (
	IfOperUnknown uint8 = iota
	IfOperNotPresent
	IfOperDown
	IfOperLowerLayerDown
	IfOperTesting
	IfOperDormant
	IfOperUp
)
View Source
const (
	IfTypeReal uint8 = iota
	IfTypeSubIntf
	IfTypeBond
	IfTypeBridge
	IfTypeVxlan
)

Variables

This section is empty.

Functions

func AUWorkSingle

func AUWorkSingle(m nlp.AddrUpdate) int

func AUWorker

func AUWorker(ch chan nlp.AddrUpdate, f chan struct{})

func AddAddr

func AddAddr(addr nlp.Addr, link nlp.Link) int

func AddNeigh

func AddNeigh(neigh nlp.Neigh, link nlp.Link) int

func AddRoute

func AddRoute(route nlp.Route) int

func DelNeigh

func DelNeigh(neigh nlp.Neigh, link nlp.Link) int

func DelRoute

func DelRoute(route nlp.Route) int

func GetBridges

func GetBridges()

func LUWorkSingle

func LUWorkSingle(m nlp.LinkUpdate) int

func LUWorker

func LUWorker(ch chan nlp.LinkUpdate, f chan struct{})

func LbSessionGet

func LbSessionGet(done bool) int
func ModLink(link nlp.Link, add bool) int

func NLWorker

func NLWorker(nNl *NlH)

func NUWorkSingle

func NUWorkSingle(m nlp.NeighUpdate) int

func NUWorker

func NUWorker(ch chan nlp.NeighUpdate, f chan struct{})

func NlpGet

func NlpGet(ch chan bool) int

func NlpRegister

func NlpRegister(hook cmn.NetHookInterface)

func RUWorkSingle

func RUWorkSingle(m nlp.RouteUpdate) int

func RUWorker

func RUWorker(ch chan nlp.RouteUpdate, f chan struct{})

Types

type AddrUpdateCh

type AddrUpdateCh struct {
	FromAUCh   chan nlp.AddrUpdate
	FromAUDone chan struct{}
}

type Intf

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

type LinkUpdateCh

type LinkUpdateCh struct {
	FromLUCh   chan nlp.LinkUpdate
	FromLUDone chan struct{}
}

type NeighUpdateCh

type NeighUpdateCh struct {
	FromNUCh   chan nlp.NeighUpdate
	FromNUDone chan struct{}
}

type NlH

func NlpInit

func NlpInit() *NlH

type RouteUpdateCh

type RouteUpdateCh struct {
	FromRUCh   chan nlp.RouteUpdate
	FromRUDone chan struct{}
}

Jump to

Keyboard shortcuts

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