dataplane

package
v0.0.0-...-3d68596 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package dataplane implements packet send/receive functions

Index

Constants

View Source
const (
	Exact = Match(0x1)
	In    = Match(0x2)
)

Match values for verify

Variables

This section is empty.

Functions

func Capture

func Capture() bool

Capture starts packet capturing

func CreateDataPlane

func CreateDataPlane(mode string, matchType string, portmap *pm.PortMap)

CreateDataPlane takes the dataplane mode, packet match type and portmap file name as arguments and creates one dataplane instance for packet sending/receiving/verification.

func ProcessTrafficExpectation

func ProcessTrafficExpectation(pkts [][]byte, ports []uint32) bool

ProcessTrafficExpectation verifies that packets arrived at specific ports

func ProcessTrafficStimulus

func ProcessTrafficStimulus(pkts [][]byte, port uint32) bool

ProcessTrafficStimulus sends packets to specific ports

func Stop

func Stop() bool

Stop stops packet capturing

Types

type Match

type Match uint8

Match is used by verify

Jump to

Keyboard shortcuts

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