fix: set gre mtu to 1450

This commit is contained in:
Daniel Ding
2024-01-24 16:40:35 +08:00
parent d285594f33
commit 335d273f70
2 changed files with 2 additions and 2 deletions

View File

@@ -4,6 +4,6 @@ type Output struct {
Segment int `json:"segment"`
Protocol string `json:"protocol"` // gre, vxlan, etc.
Remote string `json:"remote"`
DstPort int `json:"dstport"`
DstPort int `json:"dstport,omitempty"`
Link string `json:"link"` // link name
}

View File

@@ -156,7 +156,7 @@ func (w *WorkerImpl) AddOutput(bridge string, port *LinuxPort) {
if port.link == "" {
port.link = co.GenName("gre")
}
mtu = 1460
mtu = 1450
link := &nl.Gretap{
IKey: uint32(cfg.Segment),
OKey: uint32(cfg.Segment),