mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00

The codebase uses int and unit16 to represent MTU randomly. This change unifies it to a MTU type from types package, which is currently uint16.
22 lines
591 B
Go
22 lines
591 B
Go
package defaults
|
|
|
|
import "github.com/yggdrasil-network/yggdrasil-go/src/types"
|
|
|
|
// Defines which parameters are expected by default for configuration on a
|
|
// specific platform. These values are populated in the relevant defaults_*.go
|
|
// for the platform being targeted. They must be set.
|
|
type platformDefaultParameters struct {
|
|
// Admin socket
|
|
DefaultAdminListen string
|
|
|
|
// Configuration (used for yggdrasilctl)
|
|
DefaultConfigFile string
|
|
|
|
// Multicast interfaces
|
|
DefaultMulticastInterfaces []string
|
|
|
|
// TUN/TAP
|
|
MaximumIfMTU types.MTU
|
|
DefaultIfMTU types.MTU
|
|
DefaultIfName string
|
|
}
|