1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/vendor/libtuntap-master
despair d1cbd58a3f
back to square one
need to be able to queue up a TUN read/write at each tick
then finish dealing with it in the main event loop
which is damn near impossible to do along with unix-style asio
that waits for data to appear/disappear before signalling
2018-12-22 12:58:05 -06:00
..
bindings include libtuntap 2018-06-23 05:18:31 -07:00
doc include libtuntap 2018-06-23 05:18:31 -07:00
regress include libtuntap 2018-06-23 05:18:31 -07:00
CMakeLists.txt include libtuntap 2018-06-23 05:18:31 -07:00
Makefile include libtuntap 2018-06-23 05:18:31 -07:00
README.md include libtuntap 2018-06-23 05:18:31 -07:00
TODO.md include libtuntap 2018-06-23 05:18:31 -07:00
tuntap-unix-aix.c include libtuntap 2018-06-23 05:18:31 -07:00
tuntap-unix-bsd.c hmm some BSDs implement SIOCSIFNAME, Solaris (being SVR4 UNIX) definitely does. 2018-08-23 13:44:44 -05:00
tuntap-unix-darwin.c Enable -Wextra 2018-11-07 15:31:13 +00:00
tuntap-unix-freebsd.c really make it compile 2018-10-29 13:22:26 -04:00
tuntap-unix-linux.c add initial jni stuff for lokinet android. i fucking hate android so god damn much. 2018-11-26 17:46:22 -05:00
tuntap-unix-netbsd.c we don't need TAP 2018-09-24 12:07:34 -04:00
tuntap-unix-openbsd.c the AVX2 codepaths now appear to be 32-bit clean. 2018-10-01 15:06:07 -05:00
tuntap-unix-sunos.c hmm some BSDs implement SIOCSIFNAME, Solaris (being SVR4 UNIX) definitely does. 2018-08-23 13:44:44 -05:00
tuntap-unix.c make clang happy, disable netns by default (for now) 2018-11-19 08:39:35 -05:00
tuntap-windows.c back to square one 2018-12-22 12:58:05 -06:00
tuntap.cpp Move logger.hpp to llarp/ 2018-12-12 02:53:01 +00:00
tuntap_log.cpp Move logger.hpp to llarp/ 2018-12-12 02:53:01 +00:00

libtuntap

Description

libtuntap is a library for configuring TUN or TAP devices in a portable manner.

TUN and TAP are virtual networking devices which allow userland applications to receive packets sent to it. The userland applications can also send their own packets to the devices and they will be forwarded to the kernel.

This is useful for developping tunnels, private networks or virtualisation systems.

Supported Features

  • Creation of TUN and TAP devices;
  • Autodetection of available TUN or TAP devices;
  • Setting and getting the MAC address of the device;
  • Setting and getting the MTU of the device;
  • Setting the status of the device (up/down);
  • Setting the IPv4 address and netmask of the device;
  • Setting the persistence mode of the device;
  • Setting the name of the device (Linux only);
  • Setting the description of the device (OpenBSD and FreeBSD only).

Supported Systems

  • OpenBSD;
  • Linux;
  • NetBSD;
  • Darwin.

Current Porting Efforts

  • Windows;
  • FreeBSD.

In the future

  • AIX;
  • Solaris.

License

All the code is licensed under the ISC License. It's free, not GPLed !