2018-07-07 11:18:03 +00:00
|
|
|
// +build openbsd
|
2018-07-07 11:08:52 +00:00
|
|
|
|
|
|
|
package defaults
|
|
|
|
|
|
|
|
// Sane defaults for the BSD platforms. The "default" options may be
|
|
|
|
// may be replaced by the running configuration.
|
|
|
|
func GetDefaults() platformDefaultParameters {
|
|
|
|
return platformDefaultParameters{
|
|
|
|
// Admin
|
2018-12-10 00:37:32 +00:00
|
|
|
DefaultAdminListen: "unix:///var/run/yggdrasil.sock",
|
2018-07-07 11:08:52 +00:00
|
|
|
|
2018-12-10 10:20:59 +00:00
|
|
|
// Configuration (used for yggdrasilctl)
|
|
|
|
DefaultConfigFile: "/etc/yggdrasil.conf",
|
|
|
|
|
2019-06-11 09:18:59 +00:00
|
|
|
// Multicast interfaces
|
2021-06-27 08:15:41 +00:00
|
|
|
DefaultMulticastInterfaces: []MulticastInterfaceConfig{
|
2021-06-27 22:24:46 +00:00
|
|
|
{Regex: ".*", Beacon: true, Listen: true},
|
2019-06-11 09:18:59 +00:00
|
|
|
},
|
|
|
|
|
2018-07-07 11:08:52 +00:00
|
|
|
// TUN/TAP
|
2019-11-22 16:43:50 +00:00
|
|
|
MaximumIfMTU: 16384,
|
|
|
|
DefaultIfMTU: 16384,
|
2020-11-13 06:38:27 +00:00
|
|
|
DefaultIfName: "tun0",
|
2018-07-07 11:08:52 +00:00
|
|
|
}
|
|
|
|
}
|