From: Guus Sliepen Date: Wed, 11 Oct 2017 18:02:22 +0000 (+0200) Subject: Handle tun/tap device returning EPERM or EBUSY. X-Git-Tag: release-1.0.33~10 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=a7e906d2d6b15dd9e6c471a720bbbc39bd9da9a7;hp=a7e906d2d6b15dd9e6c471a720bbbc39bd9da9a7 Handle tun/tap device returning EPERM or EBUSY. Often when tun/tap is used any errors during setup will be confuse tinc and it will then assume it is an Ethertap device. Try to avoid this by checking errno after a failed TUNSETIFF; if it's EPERM or EBUSY then we can be sure it was not an Ethertap device, and we should report an error instead. Closes #157 on GitHub. ---