package tuntap

  1. Overview
  2. Docs
OCaml library for handling TUN/TAP devices

Install

Dune Dependency

Authors

Maintainers

Sources

tuntap-2.0.1.tbz
sha256=27c60197cc3bc459680eab7f5e2cf4dca08896ce4147bd954fc5ff2d864c0cdd
sha512=7311438c0b4c79da932c54452c977257bca5bcd0a963567521fde6717f358624b3a42ff094bc4278c103cc839a3896c9d6a9967733cc5366faac1663fb17e801

CHANGES.md.html

v2.0.1 (2024-04-15)

  • Use Bytes_val in C bindings to write to a string value (@avsm)

  • Fix typos in ocamldoc

  • Do not install otunctl example binary, and update to cmdliner>=1.1.0 (@reynir)

  • Switch to ounit2 (@Alessandro-Barbieri)

v2.0.0 (2020-06-18)

  • Adapt to ipaddr 5.0.0 interface (#35 @hannesm)

  • Since Ipaddr.Prefix.t now contain both IP address and netmask, the functions getifaddrs{,_v4,_v6}, addrs_of_ifname, and {v4,v6}_of_ifname no longer return Ipaddr.{V4,V6}.t * Ipaddr.{V4,V6}.Prefix.t, but only the latter part (#35 @hannesm)

v1.8.1 (2019-07-14)

  • Use ipaddr.4.0.0 interface (#33 @avsm)

v1.8.0 (2019-02-24)

  • Provide get_mtu : string -> int (#32 by @hannesm)

  • refactor C code (#32 by @hannesm)

v1.7.0 (2019-01-1)

  • Do not specify ipv4:false for the conversion function for IP addresses. This supports the ipaddr.3.0.0+ interface (#29 by @hannesm)

  • Port build from Jbuilder to Dune (#30 by @avsm)

  • Add tests in Travis for OCaml 4.07 (#30 by @avsm)

  • Update opam metadata to 2.0 format (#30 by @avsm)

v1.6.1 (2018-05-17)

  • Fix build on OpenBSD (#28 via @hannesm).

v1.6.0 (2017-11-11)

  • Bring up interface if it was not already up (#24 via @sevenEng).

v1.5.0 (2017-06-24)

  • port to Jbuilder

  • build all the tests by default.

  • possibly fix bytecode as well, which had a typo in the old rules.

v1.4.1 (2017-02-20)

  • fix linking of binaries using tuntap (-ltuntap_stubs) (#21 by Hannes Mehnert)

v1.4.0 (2017-02-09)

  • Port to topkg (#20) (Gabriel Jaldon and Hannes Mehnert).

  • When closing devices, call open with ~persist:false (#17 by Mindy Preston).

  • Remove deprecated use of Lwt_unix.run from tests.

v1.3.0 (2015-06-07)

  • Do not leak a file descriptor per tun interface (#12 via Justin Cormack)

  • Avoid the need for root access for persistent interfaces by not calling SIOCSIFFLAGS if not needed (#13 via Justin Cormack).

  • Use centralised Travis scripts.

  • Work around OS X bug in getifaddrs concerning lo0@ipv6 (#14)

  • Force a default of non-blocking for the Linux tuntap file descriptor. This works around a kernel bug in 3.19+ that results in 0-byte reads causing processes to spin (https://bugzilla.kernel.org/show_bug.cgi?id=96381). Workaround is to open the device in nonblock mode, via Justin Cormack.

v1.2.0 (2015-09-01)

  • set_ipaddr renamed to set_ipv4 since it can only set IPv4 addresses.

  • Improved getifaddrs interface to an association list iface -> addr.

  • Dropped OCaml < 4.01.x support.

  • Added convenience functions gettifaddrs_v{4,6}, v{4,6}_of_ifname.

v1.1.0 (2014-11-24)

  • Do not change the persist setting if unspecified when opening a new tun interface (#9 from Luke Dunstan).

v1.0.0 (2014-03-02)

  • Improve error messages to distinguish where they happen.

  • Install otunctl command-line tool to create persistent tun/taps.

  • Build debug symbols, annot and bin_annot files by default.

  • getifaddrs now lists IPv6 as well, and return a new type.

  • set_ipv6 is now called set_ipaddr, and will support IPv6 in the future (currently unimplemented).

v0.7.0 (2013-09-28)

  • Add FreeBSD support.

  • Add Travis continuous integration scripts.

v0.6 (2013-08-07)

  • Remove dependency on cstruct

  • Add dependency on ipaddr

  • Removed redundant functions (now in ipaddr)

v0.5 (2013-05-30)

  • Add a non-blocking packet dumper test.

  • New function getifaddrs, binding to getifaddrs(3).

  • New version of tunctl, using cmdliner.

  • Add a set_ipv4 test to check the behaviour of set_ipv4.

v0.4 (2013-05-25)

  • Fixed MacOS X tuntap support.

v0.3 (2013-05-22)

  • First public release.