]> git.ipfire.org Git - thirdparty/openvpn.git/commit
cleanup open_tun() for TARGET_NETBSD
authorGert Doering <gert@greenie.muc.de>
Mon, 8 Aug 2022 15:23:44 +0000 (17:23 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 14 Sep 2022 07:46:25 +0000 (09:46 +0200)
commit6e3fc642b74180f0e8e7ef63c0d6ca4e0c5537f4
treea363ca075823f0d9a225ba8d3ffb5ec4b3d51baa
parentb5b132c1ba36e6d2ca261d15a9d70648890021f7
cleanup open_tun() for TARGET_NETBSD

- NetBSD "dynamic tap" (--dev tap -> tap<number>) handling had special
  #ifdef'ed code inside open_tun_generic() - pull out, move to NetBSD
  open_tun().  Roughly the same amount of code, less #ifdef, code flow
  is more clear.

- fix one spurious warning about "remote" not being initialized

- adjust NetBSD do_open() comments to actual code - the "pre NetBSD 4.0"
  code has long be removed, but the comment was still there.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20220808152344.17539-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24849.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c