]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
Add DragonFly BSD support and improve FreeBSD support
authorAaron LI <aly@aaronly.me>
Sun, 13 Dec 2020 08:38:38 +0000 (16:38 +0800)
committerDaniel Lenski <dlenski@gmail.com>
Thu, 17 Dec 2020 00:26:19 +0000 (16:26 -0800)
commite4294f2ffaf7727af106a8ed9c1f49e3d5125f9a
treeed9349db60ef589f632363e177ac2ca7ff0c5dc0
parentcda6e65688a691707744b99eeabef1d0804171cf
Add DragonFly BSD support and improve FreeBSD support

Support DragonFly BSD for TUN creation and destroy in the same way as
FreeBSD.

No need to load the `if_tun` kernel module, because the `ifconfig(8)`
utility on FreeBSD and DragonFly BSD will auto load it if necessary
(the `-n` option suppresses this behavior; see man page for details).
This feature was added to `ifconfig(8)` in 1999:
https://github.com/freebsd/freebsd/commit/4d16916f800d4c5ee37fb3c93ca6981ad9b33eb3

In addition, FreeBSD 13 has merged `if_tun` and `if_tap` into a single
module named `if_tuntap`.  So this change improves the FreeBSD
support.

Signed-off-by: Aaron LI <aly@aaronly.me>
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
vpnc-script