ethernet

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2016 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthernetInspector

type EthernetInspector interface {
	// start the inspector and blocks. does not return.
	Serve() error
}

type HookSwitchInspector

type HookSwitchInspector struct {
	OrchestratorURL   string
	EntityID          string
	HookSwitchZMQAddr string
	EnableTCPWatcher  bool
	// contains filtered or unexported fields
}

TODO: support user-written MapPacketToEventFunc

func NewHookSwitchInspector

func NewHookSwitchInspector(orchestratorURL, entityID, hookswitchZMQAddr string, enableTCPWatcher bool) (*HookSwitchInspector, error)

func (*HookSwitchInspector) Serve

func (this *HookSwitchInspector) Serve() error

func (*HookSwitchInspector) Shutdown

func (this *HookSwitchInspector) Shutdown()

type NFQInspector

type NFQInspector struct {
	OrchestratorURL  string
	EntityID         string
	NFQNumber        uint16
	EnableTCPWatcher bool
	// contains filtered or unexported fields
}

TODO: support user-written MapPacketToEventFunc

func (*NFQInspector) Serve

func (this *NFQInspector) Serve() error

Directories

Path Synopsis
see https://github.com/osrg/hookswitch
see https://github.com/osrg/hookswitch

Jump to

Keyboard shortcuts

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