Documentation ¶
Index ¶
Constants ¶
View Source
const ( QuicFlag_PacketNumberLength = iota QuicFlag_PacketNumberLength1 QuicFlag_Reserved QuicFlag_Reserved1 QuicFlag_LongPacketType QuicFlag_LongPacketType1 QuicFlag_FixedBit QuicFlag_HeaderForm )
View Source
const ( QuicFlag_HeaderForm_LongHeader = 1 QuicFlag_LongPacketType_Initial = 0 )
View Source
const ( ContentType_HandShake byte = 22 HandShakeType_Hello byte = 1 TlsExtension_ServerName uint16 = 0 TlsExtension_ServerNameType_HostName byte = 0 )
Variables ¶
View Source
var ( Error = fmt.Errorf("sniffing error") NotApplicableError = fmt.Errorf("%w: not applicable", Error) NotFoundError = fmt.Errorf("%w: not found", Error) )
View Source
var ( Version_Tls1_0 = []byte{0x03, 0x01} Version_Tls1_2 = []byte{0x03, 0x03} HandShakePrefix = []byte{ContentType_HandShake, Version_Tls1_0[0], Version_Tls1_0[1]} )
View Source
var (
QuicReassemble = QuicReassemblePolicy_ReassembleCryptoToBytesFromPool
)
Functions ¶
func IsSniffingError ¶
Types ¶
type ConnSniffer ¶
func NewConnSniffer ¶
func NewConnSniffer(conn net.Conn, snifferBufSize int) *ConnSniffer
func (*ConnSniffer) Close ¶
func (s *ConnSniffer) Close() (err error)
type QuicReassemblePolicy ¶
type QuicReassemblePolicy int
const ( QuicReassemblePolicy_ReassembleCryptoToBytesFromPool QuicReassemblePolicy = iota QuicReassemblePolicy_LinearLocator QuicReassemblePolicy_Slow )
type Sniffer ¶
type Sniffer struct {
// contains filtered or unexported fields
}
func NewPacketSniffer ¶
Click to show internal directories.
Click to hide internal directories.