Further updates, notify sessions about updated MTU from API call

This commit is contained in:
Neil Alexander 2019-11-21 09:54:36 +00:00
parent d1c445dc41
commit 7c18c6806d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 22 additions and 13 deletions

View file

@ -233,6 +233,12 @@ func (tun *TunAdapter) UpdateConfig(config *config.NodeConfig) {
// Replace the active configuration with the supplied one
tun.config.Replace(*config)
// If the MTU has changed in the TUN/TAP module then this is where we would
// tell the router so that updated session pings can be sent. However, we
// don't currently update the MTU of the adapter once it has been created so
// this doesn't actually happen in the real world yet.
// tun.core.SetMaximumSessionMTU(...)
// Notify children about the configuration change
tun.Act(nil, tun.ckr.configure)
}