From b31839631a14de58e7a6ee7317833ceff77115a5 Mon Sep 17 00:00:00 2001 From: Luke Bechtel Date: Mon, 3 Feb 2020 17:09:54 -0500 Subject: [PATCH 1/2] Update tuntap_osx.c Add clearer explanation of tuntap failure. --- tuntap_osx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuntap_osx.c b/tuntap_osx.c index e746769e6..388bf6bcb 100644 --- a/tuntap_osx.c +++ b/tuntap_osx.c @@ -46,7 +46,7 @@ int tuntap_open(tuntap_dev *device /* ignored */, } if(device->fd < 0) { - traceEvent(TRACE_ERROR, "Unable to open tap device %s", tap_device); + traceEvent(TRACE_ERROR, "Unable to open any tap devices /dev/tap0 through /dev/tap254"); traceEvent(TRACE_ERROR, "Please read https://github.com/ntop/n2n/blob/dev/doc/n2n_on_MacOS.txt"); return(-1); } else { From 3629d4770ad2c376367f3357afdc0595c3d31abe Mon Sep 17 00:00:00 2001 From: Luke Bechtel Date: Mon, 3 Feb 2020 17:14:01 -0500 Subject: [PATCH 2/2] Update tuntap_osx.c --- tuntap_osx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuntap_osx.c b/tuntap_osx.c index 388bf6bcb..8e85e8633 100644 --- a/tuntap_osx.c +++ b/tuntap_osx.c @@ -46,7 +46,7 @@ int tuntap_open(tuntap_dev *device /* ignored */, } if(device->fd < 0) { - traceEvent(TRACE_ERROR, "Unable to open any tap devices /dev/tap0 through /dev/tap254"); + traceEvent(TRACE_ERROR, "Unable to open any tap devices /dev/tap0 through /dev/tap254. Is this user properly authorized to access those descriptors?"); traceEvent(TRACE_ERROR, "Please read https://github.com/ntop/n2n/blob/dev/doc/n2n_on_MacOS.txt"); return(-1); } else {