mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-16 20:46:52 +01:00
Cap configured MTUs at 8937 so relayed sends never outgrow their buffers (#1899)
This commit is contained in:
1 parent
5bb0622192
commit
13af8dd6f3
18 files changed
+234
-30
No files matched your search
@@ -24,6 +24,11 @@ type m = map[string]any
|
||||
const (
|
||||
Version uint8 = 1
|
||||
Len = 16
|
||||
|
||||
// MaxOverhead is the most a payload grows on its way to the underlay.
|
||||
// A relayed packet has two headers and two AEAD tags, one for the inner tunnel and another for the relay tunnel.
|
||||
// Every supported cipher (today) has a 16 byte tag.
|
||||
MaxOverhead = 2 * (Len + 16)
|
||||
)
|
||||
|
||||
type MessageType uint8
|
||||
|
||||
Reference in new issue
Block a user