Documentation ¶
Index ¶
- Constants
- Variables
- func IsSniffingError(err error) bool
- func NormalizeDomain(host string) string
- type ConnSniffer
- type QuicReassemblePolicy
- type Sniffer
- func (s *Sniffer) AppendData(data []byte)
- func (s *Sniffer) Close() (err error)
- func (s *Sniffer) Data() [][]byte
- func (s *Sniffer) NeedMore() bool
- func (s *Sniffer) Read(p []byte) (n int, err error)
- func (s *Sniffer) SniffHttp() (d string, err error)
- func (s *Sniffer) SniffQuic() (d string, err error)
- func (s *Sniffer) SniffTcp() (d string, err error)
- func (s *Sniffer) SniffTls() (d string, err error)
- func (s *Sniffer) SniffUdp() (d string, err error)
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 AssumedTlsClientHelloMaxLength = 4096 )
Variables ¶
View Source
var ( Error = fmt.Errorf("sniffing error") ErrNotApplicable = fmt.Errorf("%w: not applicable", Error) ErrNotFound = fmt.Errorf("%w: not found", Error) )
View Source
var ( Version_Tls1_0 = []byte{0x03, 0x01} Version_Tls1_2 = []byte{0x03, 0x03} )
Functions ¶
func IsSniffingError ¶
func NormalizeDomain ¶ added in v0.7.0
Types ¶
type ConnSniffer ¶
func NewConnSniffer ¶
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 NewStreamSniffer ¶
func (*Sniffer) AppendData ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.