mirror of
https://github.com/luscis/openlan.git
synced 2025-10-14 04:43:52 +08:00
fix: set gre mtu to 1450
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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),
|
||||
|
Reference in New Issue
Block a user