Versions in this module Expand all Collapse all v1 v1.42.4 Feb 8, 2021 v1.42.3 Feb 8, 2021 Changes in this version + const IPProtocolICMP + const IPProtocolTCP + const IPProtocolUDP + const PacketFailureAuth + const PacketFailureCreate + const PacketFailureService + const PacketStageAuth + const PacketStageIncoming + const PacketStageOutgoing + const PacketStageService + const PacketTypeApplication + const PacketTypeNetwork + const TCPAckMask + const TCPAuthenticationOption + const TCPFinMask + const TCPMssOption + const TCPMssOptionLen + const TCPPshMask + const TCPRstMask + const TCPSynAckMask + const TCPSynMask + const UDPAckMask + const UDPAuthMarker + const UDPAuthMarkerLen + const UDPDataPacket + const UDPDataPos + const UDPFinAckMask + const UDPPacketMask + const UDPSignatureLen + const UDPSynAckMask + const UDPSynMask + func CreateUDPAuthMarker(packetType uint8) []byte + func GetUDPTypeFromBuffer(buffer []byte) byte + func TCPFlagsToStr(flags uint8) string + type IPver int + const V4 + const V6 + type Packet struct + ConnectionMetadata interface{} + Mark string + PlatformMetadata interface{} + SvcMetadata interface{} + func New(context uint64, bytes []byte, mark string, lengthValidate bool) (packet *Packet, err error) + func TestGetTCPPacket(srcIP, dstIP net.IP, srcPort, dstPort uint16) *Packet + func (p *Packet) CheckTCPAuthenticationOption(iOptionLength int) (err error) + func (p *Packet) ConvertAcktoFinAck() error + func (p *Packet) CreateReverseFlowPacket() + func (p *Packet) DecreaseTCPAck(decr uint32) + func (p *Packet) DecreaseTCPSeq(decr uint32) + func (p *Packet) DestPort() uint16 + func (p *Packet) DestinationAddress() net.IP + func (p *Packet) DropTCPDetachedBytes() + func (p *Packet) DropTCPDetachedDataBytes() + func (p *Packet) FixupIPHdrOnDataModify(old, new uint16) + func (p *Packet) FixuptcpHdrOnTCPDataAttach(tcpOptions []byte, tcpData []byte) + func (p *Packet) FixuptcpHdrOnTCPDataDetach(dataLength uint16, optionLength uint16) + func (p *Packet) GetBuffer(offset int) []byte + func (p *Packet) GetIPLength() uint16 + func (p *Packet) GetTCPBytes() []byte + func (p *Packet) GetTCPData() []byte + func (p *Packet) GetTCPFlags() uint8 + func (p *Packet) GetTCPOptions() []byte + func (p *Packet) GetUDPData() []byte + func (p *Packet) GetUDPDataStartBytes() uint16 + func (p *Packet) GetUDPType() byte + func (p *Packet) ID() string + func (p *Packet) IPHeaderLen() uint8 + func (p *Packet) IPProto() uint8 + func (p *Packet) IPTotalLen() uint16 + func (p *Packet) IPversion() IPver + func (p *Packet) IncreaseTCPAck(incr uint32) + func (p *Packet) IncreaseTCPSeq(incr uint32) + func (p *Packet) IsEmptyTCPPayload() bool + func (p *Packet) L4FlowHash() string + func (p *Packet) L4ReverseFlowHash() string + func (p *Packet) PacketToStringTCP() string + func (p *Packet) Print(context uint64, packetLogLevel bool) + func (p *Packet) ReadTCPData() []byte + func (p *Packet) ReadTCPDataString() string + func (p *Packet) ReadUDPToken() []byte + func (p *Packet) SetTCPData(b []byte) + func (p *Packet) SetTCPFlags(flags uint8) + func (p *Packet) SourceAddress() net.IP + func (p *Packet) SourcePort() uint16 + func (p *Packet) SourcePortHash(stage uint64) string + func (p *Packet) TCPDataAttach(tcpOptions []byte, tcpData []byte) (err error) + func (p *Packet) TCPDataDetach(optionLength uint16) (err error) + func (p *Packet) TCPDataLength() int + func (p *Packet) TCPDataStartBytes() uint16 + func (p *Packet) TCPOptionLength() int + func (p *Packet) TCPSequenceNumber() uint32 + func (p *Packet) UDPDataAttach(header, udpdata []byte) + func (p *Packet) UDPDataDetach() + func (p *Packet) UDPTokenAttach(udpdata []byte, udptoken []byte) + func (p *Packet) UpdateIPv4Checksum() + func (p *Packet) UpdateTCPChecksum() + func (p *Packet) VerifyIPv4Checksum() bool + func (p *Packet) VerifyTCPChecksum() bool