Documentation ¶
Overview ¶
Package testutils contains utilities for simulating packet injection and man-in-the-middle (MITM) attacker tests. It is not supposed to be used for non-testing purposes. The API is not guaranteed to be stable.
Index ¶
- func ComposeInitialPacket(srcConnID, destConnID, key protocol.ConnectionID, token []byte, ...) []byte
- func ComposeRetryPacket(srcConnID protocol.ConnectionID, destConnID protocol.ConnectionID, ...) []byte
- type AckFrame
- type ConnectionCloseFrame
- type CryptoFrame
- type DataBlockedFrame
- type Frame
- type HandshakeDoneFrame
- type MaxDataFrame
- type MaxStreamDataFrame
- type MaxStreamsFrame
- type NewConnectionIDFrame
- type NewTokenFrame
- type PathChallengeFrame
- type PathResponseFrame
- type PingFrame
- type ResetStreamFrame
- type RetireConnectionIDFrame
- type StopSendingFrame
- type StreamDataBlockedFrame
- type StreamFrame
- type StreamsBlockedFrame
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeInitialPacket ¶
func ComposeInitialPacket( srcConnID, destConnID, key protocol.ConnectionID, token []byte, frames []wire.Frame, sentBy protocol.Perspective, version protocol.Version, ) []byte
ComposeInitialPacket returns an Initial packet encrypted under key (the original destination connection ID) containing specified frames.
func ComposeRetryPacket ¶
func ComposeRetryPacket( srcConnID protocol.ConnectionID, destConnID protocol.ConnectionID, origDestConnID protocol.ConnectionID, token []byte, version protocol.Version, ) []byte
ComposeRetryPacket returns a new raw Retry Packet
Types ¶
type ConnectionCloseFrame ¶
type ConnectionCloseFrame = wire.ConnectionCloseFrame
type CryptoFrame ¶
type CryptoFrame = wire.CryptoFrame
type DataBlockedFrame ¶
type DataBlockedFrame = wire.DataBlockedFrame
type HandshakeDoneFrame ¶
type HandshakeDoneFrame = wire.HandshakeDoneFrame
type MaxDataFrame ¶
type MaxDataFrame = wire.MaxDataFrame
type MaxStreamDataFrame ¶
type MaxStreamDataFrame = wire.MaxStreamDataFrame
type MaxStreamsFrame ¶
type MaxStreamsFrame = wire.MaxStreamsFrame
type NewConnectionIDFrame ¶
type NewConnectionIDFrame = wire.NewConnectionIDFrame
type NewTokenFrame ¶
type NewTokenFrame = wire.NewTokenFrame
type PathChallengeFrame ¶
type PathChallengeFrame = wire.PathChallengeFrame
type PathResponseFrame ¶
type PathResponseFrame = wire.PathResponseFrame
type ResetStreamFrame ¶
type ResetStreamFrame = wire.ResetStreamFrame
type RetireConnectionIDFrame ¶
type RetireConnectionIDFrame = wire.RetireConnectionIDFrame
type StopSendingFrame ¶
type StopSendingFrame = wire.StopSendingFrame
type StreamDataBlockedFrame ¶
type StreamDataBlockedFrame = wire.StreamDataBlockedFrame
type StreamFrame ¶
type StreamFrame = wire.StreamFrame
type StreamsBlockedFrame ¶
type StreamsBlockedFrame = wire.StreamsBlockedFrame
Click to show internal directories.
Click to hide internal directories.