pp-connect-tap

Synopsis

(pp-connect-tap port-number device-name threads)

Parameters

  • port-number
  • device-name
  • threads

Description

This procedure connects and opens a TAP-interface under the specified name. This is available on Linux, with macOS an error is signalled.

Side Effects

Return Value

ok or #f

Example

> (pp-set-name 0 "tap-test")
ok
> (pp-connect-tap 0 "tap0" 2)
ok
>

Example (macOS)

$ ./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
>