Documentation
¶
Overview ¶
Package mbuftestenv contains helper functions to construct mbufs in test code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirectMempool ¶
DirectMempool returns a mempool created from DIRECT template.
func IndirectMempool ¶
IndirectMempool returns a mempool created from INDIRECT template.
func MakePacket ¶
MakePacket creates a packet. *pktmbuf.Pool specifies where to allocate memory from; the default is the Direct pool. Headroom sets headroom in each segment. []byte or hexadecimal string becomes a segment. [][]byte or []string is flattened. Caller is responsible for releasing the packet.
Types ¶
Click to show internal directories.
Click to hide internal directories.