mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-25 10:09:17 +00:00
wgengine/magicsock: replace CanPMTUD() with ShouldPMTUD()
Replace CanPMTUD() with ShouldPMTUD() to check if peer path MTU discovery should be enabled, in preparation for adding support for enabling/disabling peer MTU dynamically. Updated #311 Signed-off-by: Val <valerie@tailscale.com>
This commit is contained in:
@@ -30,7 +30,17 @@ func (c *Conn) getDontFragment(network string) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
// CanPMTUD returns whether this platform supports performing peet path MTU discovery.
|
||||
func CanPMTUD() bool {
|
||||
func (c *Conn) DontFragSetting() (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func (c *Conn) ShouldPMTUD() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *Conn) PeerMTUEnabled() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *Conn) UpdatePMTUD() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user