2018-07-07 11:18:03 +00:00
|
|
|
// +build netbsd
|
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",
|
|
|
|
|
2018-07-07 11:08:52 +00:00
|
|
|
// TUN/TAP
|
|
|
|
MaximumIfMTU: 9000,
|
|
|
|
DefaultIfMTU: 9000,
|
|
|
|
DefaultIfName: "/dev/tap0",
|
|
|
|
DefaultIfTAPMode: true,
|
|
|
|
}
|
|
|
|
}
|