mirror of
https://github.com/aler9/gortsplib
synced 2026-04-23 00:37:09 +08:00
16 lines
310 B
Go
16 lines
310 B
Go
package gortsplib
|
|
|
|
const (
|
|
// 1500 (ethernet MTU) - 20 (IPv4 header) - 8 (UDP header)
|
|
udpMaxPayloadSize = 1472
|
|
|
|
// 16 master key + 14 master salt
|
|
srtpKeyLength = 30
|
|
|
|
// 10 (HMAC SHA1 authentication tag)
|
|
srtpOverhead = 10
|
|
|
|
// 10 (HMAC SHA1 authentication tag) + 4 (sequence number)
|
|
srtcpOverhead = 14
|
|
)
|