package
10.358.0+incompatible
Repository: https://github.com/aporeto-inc/trireme-lib.git
Documentation: pkg.go.dev

# Functions

CreateUDPAuthMarker creates a UDP auth marker.
GetUDPTypeFromBuffer gets the UDP packet from a raw buffer.,.
New returns a pointer to Packet structure built from the provided bytes buffer which is expected to contain valid TCP/IP packet bytes.
NewIpv4TCPPacket creates an Ipv4/TCP packet.
NewIpv6TCPPacket creates an Ipv6/TCP packet.
TCPFlagsToStr converts the TCP Flags to a string value that is human readable.
TestGetTCPPacket is used by other test code when they need to create a packet.

# Constants

IPProtocolICMP defines the constants for ICMP protocol number.
IPProtocolTCP defines the constant for TCP protocol number.
IPProtocolUDP defines the constant for UDP protocol number.
PacketFailureAuth is a drop reason for packet due to authentication error.
PacketFailureCreate is the drop reason for packet.
PacketFailureService is a drop reason for packet due to crypto error.
PacketStageAuth is an enum for authentication stage.
PacketStageIncoming is an enum for incoming stage.
PacketStageOutgoing is an enum for outgoing stage.
PacketStageService is an enum for crypto stage.
PacketTypeApplication is enum for from-application packets.
PacketTypeNetwork is enum for from-network packets.
TCPAckMask mask that identifies ACK packets.
TCPAuthenticationOption is the option number will be using.
TCPFinMask mask that identifies FIN packets.
TCPMssOption is the type for MSS option.
TCPMssOptionLen is the type for MSS option.
TCPPshMask = 0x8 mask that identifies PSH packets.
TCPRstMask mask that identifies RST packets.
TCPSynAckMask mask idenitifies a TCP SYN-ACK packet.
TCPSynMask is a mask for the TCP Syn flags.
UDPAckMask mask that identifies ACK packets.
UDPAporetoOption is the option kind for Aporeto option.
UDPAporetoOptionLengthFirstByte is the first if length is greater than 255.
UDPAporetoOptionLongLength is the length of the option header if payload length is greater than UDPAporetoOptionLengthFirstByte.
UDPAporetoOptionShortLength is the length of the option header if payload length is less than UDPAporetoOptionLengthFirstByte.
UDPAuthMarker is 18 byte Aporeto signature for UDP.
UDPAuthMarkerLen is the length of UDP marker.
UDPDataPacket is a simple data packet.
UDPDataPos is the location of UDP data.
UDPFinAckMask mask that identifies the FinAck packets.
UDPPacketMask identifies type of UDP packet.
UDPPolicyRejectMask mask that identifies a policy reject info from the remote end.
UDPSignatureLen is the length of signature on UDP control packet.
UDPSynAckMask mask idenitifies a UDP SYN-ACK packet.
UDPSynMask is a mask for the UDP Syn flags.
V4 is the flag for ipv4.
V6 is the flag for ipv6.

# Structs

Packet structure.

# Interfaces

PlatformMetadata structure.

# Type aliases

IPver is the type defined for ip version.