protocol

package
v1.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAckDelayExponent = 3

DefaultAckDelayExponent is the default ack delay exponent

View Source
const DefaultActiveConnectionIDLimit = 2

DefaultActiveConnectionIDLimit is the default active connection ID limit

View Source
const DefaultMaxAckDelay = 25 * time.Millisecond

DefaultMaxAckDelay is the default max_ack_delay

View Source
const InvalidPacketLimitAES = 1 << 52

InvalidPacketLimitAES is the maximum number of packets that we can fail to decrypt when using AEAD_AES_128_GCM or AEAD_AES_265_GCM.

View Source
const InvalidPacketLimitChaCha = 1 << 36

InvalidPacketLimitChaCha is the maximum number of packets that we can fail to decrypt when using AEAD_CHACHA20_POLY1305.

View Source
const MaxAckDelayExponent = 20

MaxAckDelayExponent is the maximum ack delay exponent

View Source
const MaxByteCount = ByteCount(1<<62 - 1)

MaxByteCount is the maximum value of a ByteCount

View Source
const MaxConnIDLen = 20

MaxConnIDLen is the maximum length of the connection ID

View Source
const MaxLargePacketBufferSize = 20 * 1024

MaxLargePacketBufferSize is used when using GSO

View Source
const MaxMaxAckDelay = (1<<14 - 1) * time.Millisecond

MaxMaxAckDelay is the maximum max_ack_delay

View Source
const MaxPacketBufferSize = 1452

MaxPacketBufferSize maximum packet size of any QUIC packet, based on ethernet's max size, minus the IP and UDP headers. IPv6 has a 40 byte header, UDP adds an additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's max packet size is 1500 bytes, 1500 - 48 = 1452.

View Source
const MinConnectionIDLenInitial = 8

MinConnectionIDLenInitial is the minimum length of the destination connection ID on an Initial packet.

View Source
const MinInitialPacketSize = 1200

MinInitialPacketSize is the minimum size an Initial packet is required to have.

View Source
const MinStatelessResetSize = 1 + 20 + 4 + 1 + 16 /* token */

MinStatelessResetSize is the minimum size of a stateless reset packet that we send

View Source
const MinUnknownVersionPacketSize = MinInitialPacketSize

MinUnknownVersionPacketSize is the minimum size a packet with an unknown version needs to have in order to trigger a Version Negotiation packet.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteCount

type ByteCount int64

A ByteCount in QUIC

const InvalidByteCount ByteCount = -1

InvalidByteCount is an invalid byte count

type ECN

type ECN uint8
const (
	ECNUnsupported ECN = iota
	ECNNon             // 00
	ECT1               // 01
	ECT0               // 10
	ECNCE              // 11
)

func ParseECNHeaderBits

func ParseECNHeaderBits(bits byte) ECN

func (ECN) String

func (e ECN) String() string

func (ECN) ToHeaderBits

func (e ECN) ToHeaderBits() byte

type PacketType

type PacketType uint8

The PacketType is the Long Header Type

const (
	// PacketTypeInitial is the packet type of an Initial packet
	PacketTypeInitial PacketType = 1 + iota
	// PacketTypeRetry is the packet type of a Retry packet
	PacketTypeRetry
	// PacketTypeHandshake is the packet type of a Handshake packet
	PacketTypeHandshake
	// PacketType0RTT is the packet type of a 0-RTT packet
	PacketType0RTT
)

func (PacketType) String

func (t PacketType) String() string

type StatelessResetToken

type StatelessResetToken [16]byte

A StatelessResetToken is a stateless reset token.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL