Documentation ¶
Index ¶
- func DecodePacket(pkt []byte) myStruct
- func EncodePacket(input myStruct, plen int) []byte
- func MakeTimestamp() int64
- func PrintStats(addr string, stats *Stats, unit string)
- func Sink(ip string, port int, multi bool, verbose bool)
- func Source(ip string, port int, localip string, duration int, pps int, psize int, tos int, ...)
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePacket ¶
func DecodePacket(pkt []byte) myStruct
func EncodePacket ¶
func MakeTimestamp ¶
func MakeTimestamp() int64
func PrintStats ¶
TODO Generate this using the JSON libraries
Types ¶
Click to show internal directories.
Click to hide internal directories.