Hi, On Sat, Jul 25, 2020 at 7:51 PM Arne Schwabe <a...@rfc2549.org> wrote: > > For lack of a better API (or knowledge about a better API) we try to > open utun devices on macOS by trying utun0 to utun255 and use the > first one that works. On my Mac I have already 4 devices that > do nothing but are just there and another VPN connection resulting in a > number of error messages. This explicitly shows in the log that we > tried the devices instead of some unspecific error. > > This changes the log from: > > Opening utun (connect(AF_SYS_CONTROL)): Resource busy (errno=16) > Opening utun (connect(AF_SYS_CONTROL)): Resource busy (errno=16) > Opening utun (connect(AF_SYS_CONTROL)): Resource busy (errno=16) > Opening utun (connect(AF_SYS_CONTROL)): Resource busy (errno=16) > Opening utun (connect(AF_SYS_CONTROL)): Resource busy (errno=16) > Opened utun device utun5 > > to > > Opening utun0 failed (connect(AF_SYS_CONTROL)): Resource busy (errno=16) > Opening utun1 failed (connect(AF_SYS_CONTROL)): Resource busy (errno=16) > Opening utun2 failed (connect(AF_SYS_CONTROL)): Resource busy (errno=16) > Opening utun3 failed (connect(AF_SYS_CONTROL)): Resource busy (errno=16) > Opening utun4 failed (connect(AF_SYS_CONTROL)): Resource busy (errno=16) > Opened utun device utun5
Feature-ACK. The failure messages have concerned some Tunnelblick users. This _might_ help clarify things for them and it certainly won't hurt. I have not tested the code, but it looks fine. Note that the last half of the patch consists only of whitespace changes (starting at "@@ -5682,15 +5685,15 @@). Note also that macOS itself creates some utun devices, which is why the failures to open happen even on a clean install of macOS and only OpenVPN. The number created depends on the version of macOS and the Apple services such as iCloud Drive and Screen Sharing that are enabled. Best regards, Jon Bullard _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel