package
10.358.0+incompatible
Repository: https://github.com/aporeto-inc/trireme-lib.git
Documentation: pkg.go.dev
# Functions
NewPacket returns a packet strut which implements PacketManipulator.
NewPacketFlow returns PacketFlow struct which implements PacketFlowManipulator.
NewTemplateFlow will return flow of packets which implements PacketManipulator.
# Constants
PacketFlowTypeGenerateGoodFlow is used to generate a good floe.
PacketFlowTypeGoodFlowTemplate will have a good flow from a hardcoded template.
PacketFlowTypeMultipleGoodFlow will have two flows.
PacketFlowTypeMultipleIntervenedFlow will have two flows intervened to eachothers.
# Variables
PacketFlowTemplate1 is a good hardcoded template.
PacketFlowTemplate2 has a two complete TCP flow.
PacketFlowTemplate3 has a two intervened TCP flows.
# Structs
Packet is a custom type which holds the packets and implements PacketManipulator.
PacketFlow is a custom type which holds the packet attributes and the flowImplements PacketFlowManipulator interface.
# Interfaces
EthernetPacketManipulator interface is used to create/manipulate Ethernet packet.
IPPacketManipulator interface is used to create/manipulate IP packet.
PacketFlowManipulator is an interface for packet flow manipulationsUsed to create/manipulate packet flows.
PacketHelper interface is a helper for packets and packet flowsOptional: not needed for actual usage.
PacketManipulator is an interface for packet manipulationsComposition of Ethernet, IP and TCP Manipulator interface.
TCPPacketManipulator interface is used to create/manipulate TCP packet.
# Type aliases
PacketFlowType type for different types of flows.