(pp-connect-tap port-number device-name threads)
This procedure connects and opens a TAP-interface under the specified name. This is available on Linux, with macOS an error is signalled.
ok or #f
> (pp-set-name 0 "tap-test")
ok
> (pp-connect-tap 0 "tap0" 2)
ok
>
$ ./scheme
Inlab Scheme 5.1.44
macOS 12.6.5 Darwin 21.6.0 x86_64 2023-05-01 19:06:59
> (pp-connect-tap 0 "macos-test" 2)
#f
2023-05-01 19:08:04 ERR TAP interfaces are not available on macOS
2023-05-01 19:08:04 ERR connect-tap failed, port 0
>