ribpkt

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiServer

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

func NewApiServer

func NewApiServer(addr string) *ApiServer

func (*ApiServer) SendFFPacket

func (a *ApiServer) SendFFPacket(ctxt context.Context, req *ribpapi.FFPacketRequest) (*ribpapi.SendFFPacketReply, error)

func (*ApiServer) Start

func (a *ApiServer) Start(ch chan<- string) error

type Server

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

func NewServer

func NewServer(reId string, vrf uint8, interval int, useVrf bool) *Server

func (*Server) AddExcludeIfnames added in v0.4.0

func (s *Server) AddExcludeIfnames(ifnames ...string)
func (s *Server) AddLink(link netlink.Link)

func (*Server) CtrlCh

func (s *Server) CtrlCh() chan<- string
func (s *Server) DelLink(link netlink.Link)

func (*Server) LinkCh

func (s *Server) LinkCh() chan<- netlink.LinkUpdate

func (*Server) SendPacket

func (s *Server) SendPacket(attrs *netlink.LinkAttrs) error

func (*Server) SendPackets

func (s *Server) SendPackets()

func (*Server) Serve

func (s *Server) Serve(done <-chan struct{})

func (*Server) Start

func (s *Server) Start(done <-chan struct{}) error

Jump to

Keyboard shortcuts

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