mirror of
https://github.com/slackhq/nebula.git
synced 2026-05-16 04:47:38 +02:00
PMTUD exploration, start small then grow
This commit is contained in:
@@ -105,6 +105,14 @@ func (t *TestTun) Name() string {
|
||||
return t.Device
|
||||
}
|
||||
|
||||
func (t *TestTun) SupportsPerPeerMTU() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (t *TestTun) SetPeerMTU(addr netip.Addr, mtu int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t *TestTun) Write(b []byte) (n int, err error) {
|
||||
if t.closed.Load() {
|
||||
return 0, io.ErrClosedPipe
|
||||
|
||||
Reference in New Issue
Block a user