Fix bridge MTU

This commit is contained in:
世界
2026-07-08 19:19:07 +08:00
parent d7c70d1a72
commit 2a678a7e03
4 changed files with 1 additions and 13 deletions
-6
View File
@@ -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
-2
View File
@@ -20,8 +20,6 @@ import (
const (
defaultBridgeRuleIndex = 100
defaultBridgeTableIndexBase = 2200
bridgeTunMTU = 1500
)
type backendLinux struct {
+1
View File
@@ -13,6 +13,7 @@ import (
)
const (
bridgeTunMTU = 0xffff
maxPacketLength = 0xffff
bridgeMaxInstances = 254
bridgeWriteBatchSize = 32
-5
View File
@@ -1,5 +0,0 @@
//go:build windows && (amd64 || 386)
package bridge
const bridgeTunMTU = 1500