Fix default device path selection on BSD.
authorEtienne Dechamps <etienne@edechamps.fr>
Sun, 21 Sep 2014 10:58:23 +0000 (12:58 +0200)
committerEtienne Dechamps <etienne@edechamps.fr>
Sun, 21 Sep 2014 11:00:23 +0000 (13:00 +0200)
commitc897f8c99e0b0827cff60f098bd3f9852a062233
treed3d2bb93a8aa10f789e16634925fbeefaa57fdeb
parenta649aa51bf8e5b5fcc76061c9f660122a08245a8
Fix default device path selection on BSD.

Currently, if DeviceType = tap but Mode = router, the default
device path is /dev/tun0, which is wrong. This commit fixes that.
src/bsd/device.c