ndntestutil

package
v0.0.0-...-8a88a75 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClosePacket

func ClosePacket(pkt ndn.IL3Packet)

func CopyPitToken

func CopyPitToken(pkt ndn.IL3Packet, src ndn.IL3Packet)

func GetPitToken

func GetPitToken(pkt ndn.IL3Packet) uint64

func MakeData

func MakeData(input interface{}, args ...interface{}) *ndn.Data

Make Data on dpdktestenv DirectMp. input: packet bytes as []byte or HEX, or name URI. args: additional arguments to ndn.MakeData. Panics if packet constructed from bytes is not Data.

func MakeInterest

func MakeInterest(input interface{}, args ...interface{}) *ndn.Interest

Make Interest on dpdktestenv DirectMp. input: packet bytes as []byte or HEX, or name URI. args: additional arguments to ndn.MakeInterest. Panics if packet constructed from bytes is not Interest.

func NameEqual

func NameEqual(a *assert.Assertions, expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool

func NameIsPrefix

func NameIsPrefix(a *assert.Assertions, prefix interface{}, name interface{}, msgAndArgs ...interface{}) bool

func SetFaceId

func SetFaceId(pkt ndn.IL3Packet, port uint16)

func SetPitToken

func SetPitToken(pkt ndn.IL3Packet, token uint64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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