-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy patherrors.go
More file actions
36 lines (26 loc) · 1.42 KB
/
errors.go
File metadata and controls
36 lines (26 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package sctp
import (
"errors"
)
var (
errNilNetConn = errors.New("netConn must not be nil")
errNilLoggerFactory = errors.New("loggerFactory must not be nil")
// errZeroMTUOption indicates that the MTU option was set to zero.
errZeroMTUOption = errors.New("MTU option cannot be set to zero")
// errZeroMaxReceiveBufferOption indicates that the MTU option was set to zero.
errZeroMaxReceiveBufferOption = errors.New("MaxReceiveBuffer option cannot be set to zero")
// errZeroMaxMessageSize indicates that the MTU option was set to zero.
errZeroMaxMessageSize = errors.New("MaxMessageSize option cannot be set to zero")
// errInvalidRTOMax indicates that the RTO max was set to 0 or a negative value.
errInvalidRTOMax = errors.New("RTO max was set to <= 0")
// errInvalidRackMinRTTWnd indicates the length of the local minimum window used to determine the
// minRTT was set to <= 0.
errInvalidRackMinRTTWnd = errors.New("RackMinRTT was set to <= 0")
// errInvalidRackReoWndFloor indicates the length of the RACK reordering window floor was set to < 0.
errInvalidRackReoWndFloor = errors.New("RackReoWndFloor was set to < 0")
// errInvalidRackWcDelAck indicates the receiver worst-case delayed-ACK for PTO when only 1 packet in flight
// was set to < 0.
errInvalidRackWcDelAck = errors.New("RackWcDelAck was set to <= 0")
)