Documentation ¶
Index ¶
- type Database
- type L2Switch
- func (r *L2Switch) Init() error
- func (r *L2Switch) Name() string
- func (r *L2Switch) OnDeviceUp(finder network.Finder, device *network.Device) error
- func (r *L2Switch) OnPacketIn(finder network.Finder, ingress *network.Port, eth *protocol.Ethernet) error
- func (r *L2Switch) OnPortDown(finder network.Finder, port *network.Port) error
- func (r *L2Switch) OnTopologyChange(finder network.Finder) error
- func (r *L2Switch) String() string
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 (*L2Switch) OnDeviceUp ¶ added in v0.13.0
func (*L2Switch) OnPacketIn ¶
func (*L2Switch) OnPortDown ¶
func (*L2Switch) OnTopologyChange ¶
Click to show internal directories.
Click to hide internal directories.