Fix bridge MTU
This commit is contained in:
@@ -23,12 +23,6 @@ var (
|
||||
bridgeInet6LocalBase = netip.MustParseAddr("2001:db8:1::1")
|
||||
)
|
||||
|
||||
// The darwin forwarding path silently drops frames larger than the outgoing
|
||||
// interface MTU (no ICMP, no counter), and virtualized ingress interfaces
|
||||
// (vmnet LRO) deliver TCP frames coalesced far beyond their own 1500 MTU, so
|
||||
// the bridge tun must accept full-size IP packets.
|
||||
const bridgeTunMTU = 0xffff
|
||||
|
||||
type backendDarwin struct {
|
||||
backendBase
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@ import (
|
||||
const (
|
||||
defaultBridgeRuleIndex = 100
|
||||
defaultBridgeTableIndexBase = 2200
|
||||
|
||||
bridgeTunMTU = 1500
|
||||
)
|
||||
|
||||
type backendLinux struct {
|
||||
|
||||
@@ -13,6 +13,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
bridgeTunMTU = 0xffff
|
||||
maxPacketLength = 0xffff
|
||||
bridgeMaxInstances = 254
|
||||
bridgeWriteBatchSize = 32
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
//go:build windows && (amd64 || 386)
|
||||
|
||||
package bridge
|
||||
|
||||
const bridgeTunMTU = 1500
|
||||
Reference in New Issue
Block a user