(index ("make-tun" 0) ("tun-fd" 356) ("tun-name" 633) ("tun-mac" 768))
(def (sig (procedure " (make-tun #!optional (mode 'tun) (pi #f)) " (id make-tun))) (p "returns a tun/tap interface. The mode argument can be 'tun for a tunnel interface or 'tap for a tap interface. When the argument pi is #t we do not send the IFF_NO_PI flag and the interface includes packet information (four bytes) when reading every packet or frame"))
(def (sig (procedure "(tun-fd tun)" (id tun-fd))) (p "returns the file descriptor associated with the tunnel interface. Writing to this file descriptor sends data out of the interface. Note that written data must be well-formed packet (for tun) or ethernet frame (for tap)."))
(def (sig (procedure " (tun-name) " (id tun-name))) (p "returns the name of the TUN/TAP interface. Available after running make-tun"))
(def (sig (procedure " (tun-mac tun) " (id tun-mac))) (p "returns the MAC address associated with a TUN or TAP interface as a list of 6 integers"))
