l2switch

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2017 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database added in v0.13.0

type Database interface {
	// MACAddrs returns all the registered MAC addresses.
	MACAddrs() ([]net.HardwareAddr, error)
}

type L2Switch

type L2Switch struct {
	app.BaseProcessor
	// contains filtered or unexported fields
}

func New

func New(db Database) *L2Switch

func (*L2Switch) Init

func (r *L2Switch) Init() error

func (*L2Switch) Name

func (r *L2Switch) Name() string

func (*L2Switch) OnDeviceUp added in v0.13.0

func (r *L2Switch) OnDeviceUp(finder network.Finder, device *network.Device) error

func (*L2Switch) OnPacketIn

func (r *L2Switch) OnPacketIn(finder network.Finder, ingress *network.Port, eth *protocol.Ethernet) error

func (*L2Switch) OnPortDown

func (r *L2Switch) OnPortDown(finder network.Finder, port *network.Port) error

func (*L2Switch) OnTopologyChange

func (r *L2Switch) OnTopologyChange(finder network.Finder) error

func (*L2Switch) String

func (r *L2Switch) String() string

Jump to

Keyboard shortcuts

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