Use auto-clone device /dev/{tun,tap} as default on FreeBSD/DragonFly
authorAaron LI <aly@aaronly.me>
Sun, 5 Apr 2020 11:07:42 +0000 (19:07 +0800)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 22 Jun 2021 20:18:57 +0000 (22:18 +0200)
commitf8c1e74a5aeaca89fb58dbc78bb1580784fe7a78
tree819ab051169ce7f6ea795cdad0233fdc7dc297d9
parentf12e34dd921ce0df138194d6559aacf18da0e192
Use auto-clone device /dev/{tun,tap} as default on FreeBSD/DragonFly

DragonFly BSD doesn't pre-create `/dev/tunX` or `/dev/tapX` devices
anymore since 2019-Jul-31 [0].  So it's better to use the auto-clone
device `/dev/tun` or `/dev/tap` as the default TUN or TAP device.
The TUN/TAP device has the same behavior on DragonFly BSD and FreeBSD.

See also pull request: https://github.com/DragonFlyBSD/DeltaPorts/pull/925

[0] https://github.com/DragonFlyBSD/DragonFlyBSD/commit/f1e9a4fff5aaac2be3a291dbfea94f94755991b8
src/bsd/device.c