mirror of
https://github.com/netbirdio/netbird.git
synced 2026-03-31 06:34:19 -04:00
10 lines
394 B
Go
10 lines
394 B
Go
package bufsize
|
|
|
|
const (
|
|
// WGBufferOverhead represents the additional buffer space needed beyond MTU
|
|
// for WireGuard packet encapsulation (WG header + UDP + IP + safety margin)
|
|
// Original hardcoded buffers were 1500, default MTU is 1280, so overhead = 220
|
|
// TODO: Calculate this properly based on actual protocol overhead instead of using hardcoded difference
|
|
WGBufferOverhead = 220
|
|
)
|