The NetBSD Project

CVS log for pkgsrc/net/tinc/Makefile

[BACK] Up to [] / pkgsrc / net / tinc

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.34 / (download) - annotate - [select for diffs], Tue Oct 24 22:10:35 2023 UTC (5 months, 3 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, HEAD
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

*: bump for openssl 3

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jun 12 06:32:02 2021 UTC (2 years, 10 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2
Changes since 1.32: +3 -4 lines
Diff to previous 1.32 (colored)

tinc: update to 1.0.36

Version 1.0.36               August 26 2019

 * Fix compiling tinc with certain versions of the OpenSSL library.
 * Fix parsing some IPv6 addresses with :: in them.
 * Fix GraphDumpFile output to handle node names starting with a digit.
 * Fix a potential segmentation fault when fragmenting packets.

Thanks to Rosen Penev, Quentin Rameau and Werner Schreiber for their
contributions to this version of tinc.

Version 1.0.35               October 5 2018

 * Prevent oracle attacks (CVE-2018-16737, CVE-2018-16738).
 * Prevent a MITM from forcing a NULL cipher for UDP (CVE-2018-16758).
 * Minor fixes in the documentation.

Thanks to Amine Amri and Rafael Sadowski for their contributions to this
version of tinc.

Version 1.0.34               June 12 2018

 * Fix a potential segmentation fault when connecting to an IPv6 peer via a
 * Minor improvements to the build system.
 * Make the systemd service file identical to the one from the 1.1 branch.
 * Fix a potential problem causing IPv4 sockets to not work on macOS.

Thanks to Maximilian Stein and Wang Liu Shuai for their contributions to this
version of tinc.

Version 1.0.33               November 4 2017

 * Allow compilation from a build directory.
 * Source code cleanups.
 * Fix some options specified on the command line not surviving a HUP signal.
 * Handle tun/tap device returning EPERM or EBUSY.
 * Disable PMTUDiscovery when TCPOnly is used.
 * Support the --runstatedir option of the autoconf 2.70.

Thanks to Rafael Sadowski and Pierre-Olivier Mercier for their contributions to
this version of tinc.

Revision 1.32 / (download) - annotate - [select for diffs], Fri May 1 23:17:34 2020 UTC (3 years, 11 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2
Changes since 1.31: +1 -6 lines
Diff to previous 1.31 (colored)

net/tinc: remove no-op SUBST block

There are no empty lines in the manual page.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jan 26 17:31:57 2020 UTC (4 years, 2 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

all: migrate homepages from http to https

pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jan 18 21:50:27 2020 UTC (4 years, 2 months ago) by jperkin
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

*: Recursive revision bump for openssl 1.1.1.

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 28 13:35:54 2019 UTC (4 years, 10 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.28: +1 -7 lines
Diff to previous 1.28 (colored)

*: Remove per-package MESSAGE.{rcd,smf} handling.

This is now centralised in mk/pkgformat so no need to do it manually.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Sep 30 15:55:25 2018 UTC (5 years, 6 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3
Changes since 1.27: +43 -2 lines
Diff to previous 1.27 (colored)

tinc: Provide SMF and user support.

Submitted by Antonio Huete in joyent/pkgsrc#108.  Bump PKGREVISION.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Sep 8 13:53:25 2017 UTC (6 years, 7 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3
Changes since 1.26: +2 -3 lines
Diff to previous 1.26 (colored)

Update tinc to 1.0.32.  Changes since 1.0.26:

Version 1.0.32                                         September 02 2017

Guus Sliepen (13):
      Don't dereference myself->incipher if it's NULL.
      Merge remote-tracking branch 'VittGam/master'
      Use /dev/udp instead of /dev/ip on Solaris.
      Use getmsg()/putmsg() instead of read()/write() on Solaris.
      Fix Solaris DeviceType = tap in router Mode.
      Bind outgoing TCP sockets.
      Move logging of "would block" messages to debug level 4.
      Set KillMode=mixed in the systemd service file.
      Don't forget about outgoing connections on host file read errors.
      Fix Proxy = exec.
      Set status.proxy_passed early for Proxy = exec.
      Don't try to bind Proxy = exec sockets to an address.
      Releasing 1.0.32.

Vittorio Gambaletta (VittGam) (1):
      route: Support ToS/DiffServ priority inheritance when routing IPv6

Version 1.0.31                                           January 15 2017

Guus Sliepen (1):
      Releasing 1.0.31.

lie Bouttier (1):
      Remove ExecStop in tinc@.service

Version 1.0.30                                           October 30 2016

Guus Sliepen (11):
      Allow non-empty lines after status code from a HTTP proxy.
      Fix proxy reply parsing broken by the previous commit.
      Log only the first line of a proxy request rejection message.
      Delay sending the real ID request until after a proxy request is granted.
      Use AES256 and SHA256 by default, also for the meta-connections.
      Enforce maximum amount of bytes sent/received on meta-connections.
      Fix bit shifting arithmetic so the code actually does what the last commit
      message says.
      Really fix byte budget calculation.
      Use AES in CTR mode instead of OFB mode for meta-connections.
      Use CFB mode for meta-connections to improve security.
      Releasing 1.0.30.

Version 1.0.29                                           October 09 2016

Guus Sliepen (11):
      Preserve IPv6 scope_id in edges.
      Ensure compatibility with OpenSSL 1.1.0.
      Add -Wall to CFLAGS.
      Check return value of RSA_generate_key_ex().
      Force nul-termination of strings after vsnprintf().
      Log warnings about dropped packets only with debug level 5 or higher.
      Add a copy of ax_append_flag.m4.
      Add ax_require_defined.m4.
      Fix possibly unitialized variable.
      Fix compiler warnings about format string errors on BSD.
      Releasing 1.0.29.

Version 1.0.28                                             April 10 2016

Guus Sliepen (8):
      Fix compiling bsd/device.c on systems without utun.
      Really remove use of __DATE__ and __TIME__ to facilitate reproducible
      Add systemd service files.
      Update .gitignore.
      Ensure the service files are in the tarball.
      Explicitly mention that LibreSSL can be used as well.
      Update links in the documentation.
      Releasing 1.0.28.

Version 1.0.27                                             April 10 2016

Guus Sliepen (26):
      Add missing AM_PROG_CC_C_O to
      Attribution for various contributors.
      Update "now" after connect() when making outgoing connections.
      Add ability to use proxies to connect to hostnames when there is no
      Only add a reflexive address when we're sure it's working.
      Fix compatibility with TAP-Win32 and later.
      Fix warnings from the Clang Static Analyzer.
      Improve performance of edge updates.
      Clarify that scripts are called synchronously.
      Small fixes for the documentation.
      Add warnings for bad combinations of Device and Interface.
      Fix forwarding of edge updates.
      Don't compile getopt*.c if the system provides getopt_long().
      Update .gitignore.
      Update THANKS.
      Use iface instead of interface.
      Update copyright notices.
      Remove use of __DATE__ and __TIME__ to facilitate reproducible builds.
      Cast 0xff to char before comparing it to another char.
      Get rid of a warning when compiling tinc using MinGW.
      Every BSD flavor has a tap device nowadays.
      Use devname() if available to support devfs cloning on BSD.
      Use SIOCGIFADDR on BSDs that support it.
      Enable silent builds by default.
      Add support for OS X utun interfaces.
      Releasing 1.0.27.

Vittorio Gambaletta (VittGam) (6):
      Fix DecrementTTL option.
      Fix source IP address for ICMP unreachable packets generated by tinc.
      Try to reply with node address only when decrementing the TTL.
      Fix DecrementTTL option for packets destined to the local node.
      Remove forward declaration for do_decrement_ttl.

LunarShaddow (3):
      fix typo
      re-arrange include sequence to avoid a mingw introduced bug.
      Proofing README.

Florian Weik (1):
      Fix NAME variable in subnet-* scripts for local subnets.

Nathan Stratton Treadway (1):
      Fix invalid checksum generation.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Apr 19 11:24:38 2017 UTC (6 years, 11 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2017Q2-base, pkgsrc-2017Q2
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Reset MAINTAINER after tonnerre resigned.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Mar 5 11:29:12 2016 UTC (8 years, 1 month ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

Bump PKGREVISION for security/openssl ABI bump.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 20 17:44:41 2015 UTC (8 years, 8 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Changes since 1.23: +6 -9 lines
Diff to previous 1.23 (colored)

Changes 1.0.26:
Tinc now forces glibc to reload /etc/resolv.conf for every hostname lookup.
Fixed ogfile without a filename on Windows.
Ensure tinc can be compiled when using musl libc.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Feb 12 23:18:26 2014 UTC (10 years, 2 months ago) by tron
Branch: MAIN
CVS Tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

Recursive PKGREVISION bump for OpenSSL API version bump.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Dec 1 20:18:29 2013 UTC (10 years, 4 months ago) by tonnerre
Branch: MAIN
CVS Tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Update net/tinc to version 1.0.23.

Changes since version 1.0.22:
 - Check for writability when waiting for a socket to finish connecting.
 - Don't send PING requests on connections which are not active yet.
 - Fix segfault when Name = $HOST but $HOST is not set.
 - Fix typos in the documentation.
 - Modernize the build system.
 - Get rid of the splay tree implementation.
 - Add description of IffOneQueue and MaxTimeout to the info manual.
 - Clean up child processes from proxy type exec.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Oct 14 18:27:54 2013 UTC (10 years, 6 months ago) by tonnerre
Branch: MAIN
Changes since 1.20: +2 -3 lines
Diff to previous 1.20 (colored)

Update tinc to version 1.0.22.

Changes since version 1.0.13:
 * Better optional argument handling.
 * Set $NAME when calling host-up/down and subnet-up/down scripts.
 * Don't echo broadcast packets back when Broadcast = direct.
 * Update copyright notices.
 * Fix combination of Mode = router and DeviceType = tap on Linux.
 * Drop packets forwarded via TCP if they are too big (CVE-2013-1428).
 * Use /dev/tap0 by default on FreeBSD and NetBSD when using Mode = switch.
 * Document how to load the tap driver on FreeBSD.
 * Update THANKS file.
 * Also clarify hostnames=[yes|no] in tinc.conf(5).
 * Attribution for Vil Brekin and some code style cleanups.
 * Don't ignore
 * Fix links in documenation.
 * Attribution for Martin Schürrer.
 * Add strict checks to hex to binary conversions.
 * Clear connection options and status fields in free_connection_partially().
 * Fix warnings from cppcheck.
 * Clear Ethernet header when reading packets from a tun device.
 * Clear status and options fields of unreachable nodes.
 * Fix warnings from groff.
 * Using alloca() for a constant sized buffer is very silly.
 * Make sure PMTU discovery works in switch mode with VLAN tags.
 * Mention in the manual that support for LZO and zlib can be disabled.
 * Fix configure script help text for --enable options.
 * Don't take the address of a variable whose scope is about to disappear.
 * Send broadcast packets using a random socket, and properly support IPv6.
 * Remove text saying you must have one of PrivateKey or PrivateKeyFile in tinc.conf.
 * Fix support for tunemu on iOS devices.
 * Make sure PriorityInheritance also works in switch mode.
 * Detect increases in PMTU.
 * Fix a compiler warning.
 * Fix segmentation fault when trying to connect via a SOCKS5 proxy.
 * Don't send proxy requests for incoming connections.
 * Fix compiler warnings on Windows.
 * Fix detection of rejected SOCKS5 proxy requests.
 * Basic patch for android cross-compilation.
 * Replace hard-code with new ScriptsInterpreter configuration property.
 * Add basic .gitignore file, cleaning (most) files generated by autotools.
 * Use __ANDROID__ define rather than dirty hard-code to allow android NDK cross-compilation.
 * Android cross-compilation instructions.
 * Output details of encryption errors
 * Minor clarification, tinc.conf hostnames=[yes|no] variable only resolves names for logging purposes.
 * Support :: in IPv6 Subnets.
 * Remove newline from log message.
 * Add support for systemd style socket activation.
 * Allow environment variables to be used for Name.
 * Allow broadcast packets to be sent directly instead of via the MST.
 * Add basic support for SOCKS 4 and HTTP CONNECT proxies.
 * Add support for SOCKS 5 proxies.
 * Add support for proxying through an external command.
 * Document new proxy types.
 * Small fixes in proxy code.
 * Fix compiler warnings.
 * Fix crash when using Broadcast = direct.
 * add (errnum) in front of windows error messages
 * Always try next Address when an outgoing connection fails to authenticate.
 * Allow a port to be specified in BindToAddress statements.
 * Add support for multicast communication with UML/QEMU/KVM.
 * Set default value of DecrementTTL to "no".
 * Add #ifdefs in case not all platforms support IPv4 and IPv6 multicast.
 * Allow scoped addresses to be used for IPv6 multicast socket.
 * Fix compiler warnings.
 * Fix return value type of vde_send().
 * Fix some more compiler warnings.
 * Document OpenBSD "ifconfig link0" and Linux "ip tuntap" commands.
 * Fix return type of vde_recv() as well.
 * Mark DecrementTTL option experimental.
 * Prevent read_rsa_public_key() from returning an uninitialized RSA structure.
 * Return false instead of void when there is an error.
 * Fix compilation of VDE and UML interfaces.
 * Add vde/device.c to the tarball.
 * Fix a few small memory leaks.
 * Allow linking with multiple device drivers.
 * Set FD_CLOEXEC flag on all sockets.
 * Allow multiple BindToAddress statements.
 * Merge branch 'master' of black:tinc
 * Send packets back using the same socket as they were received on.
 * Allow setting DeviceType to tun or tap on Linux.
 * Merge branch 'master' of black:tinc
 * Only compile raw socket code when it is supported on that platform.
 * Decrement TTL of incoming packets.
 * Don't bind outgoing TCP sockets anymore.
 * Rename connection_t *broadcast to everyone.
 * Allow disabling of broadcast packets.
 * Move initialization of char *priority up to prevent freeing an uninitialized pointer.
 * Document the command line flag -o and provide --option as well.
 * Fix a bug that caused tinc to ignore all but the last listening socket.
 * Fix check for raw socket support.
 * Pass index into listen_socket[] to handle_incoming_vpn_data().
 * Add LocalDiscovery option which tries to detect peers on the local network.
 * Don't send ICMP Time Exceeded messages for other Time Exceeded messages.
 * Stricter checks against routing loops.
 * Only use broadcast at the start of the PMTU discovery phase.
 * Only log errors sending UDP packets when debug level >= 5.
 * Accept Subnets passed with the -o option when StrictSubnets = yes.
 * Add missing ICMP6 message type definitions.
 * Make sure disabling old RSA keys works on Windows.
 * Update copyright notices.
 * Add missing ICMP message type definitions.
 * Make code to detect two nodes with the same Name less triggerhappy.
 * Flush output buffer in send_tcppacket().
 * Use usleep() instead of sleep(), MinGW complained.
 * Reorder checks for libraries to allow ./configure LDFLAGS=-static.
 * Make return value of SetPriorityClass() behave the same as setpriority().
 * Fix sparse warnings and add an extra sprinkling of const.
 * Remove newlines from log messages.
 * Remove a few unnecessary #includes.
 * Attribution for Loïc Grenié.
 * Improved --logfile option.
 * Remove redundant @CFLAGS@ from AM_CFLAGS.
 * Nearly tickless tinc.
 * Fix reading configuration files that do not end with a newline. Again.
 * Define WINVER before including any other header file on Windows.
 * Use intptr_t instead of long to store a pointer.
 * OpenSSL 1.0.0 compiled for 64 bit Windows requires linking with -lcrypt32.
 * Fix all warnings when compiling with mingw64.
 * Use strrchr() insteaad of rindex().
 * Detect and prevent two nodes with the same Name being on the VPN simultaneously.
 * Use 64 bit counters to keep track of bytes sent/received from the virtual network interface.
 * Do not append an address to ANS_KEY messages if we don't know any address.
 * Merge local host configuration with server configuration.
 * Remove duplicate command-line option parsing.
 * Attribution for Julien Muchembled.
 * Attribution for Timothy Redaelli.
 * Ensure there is a newline character before a PEM key is written.
 * Abort disabling old PEM keys on I/O errors.
 * Remove unused variables.
 * Quit when there are too many consecutive errors on the tun/tap device.
 * Read error counter must be static.
 * Add short options -R and -U to the tincd(8) manpage.
 * Don't use strlen() on a NULL pointer.
 * Provide usleep() for Windows.
 * Use variable length arrays instead of alloca().
 * Fix warning message when setting SO_RCVBUF or SO_SNDBUF fails.
 * Free replay window when freeing a node_t.
 * Fix variable length array declaration.
 * Attribution for Brandon Black.
 * Use setpriority() instead of nice() on UNIX-like systems.
 * Always send MTU probes at least once every PingInterval.
 * Close all filedescriptors in Solaris close_device().
 * Limit field width when scanning PID file.
 * Replace bogus #else with #endif.
 * Remove unused variables.
 * Document the behavior of "-n."
 * Update the manual.
 * Update the NEWS.
 * Proper check and dropin replacement for usleep().
 * Fix typo spotted by Andrew Scheller.
 * Add support for VDE through libvdeplug.
 * Fix spurious misidentification of incoming UDP packets.
 * Prevent anything from updating our own UDP address.
 * Do not set indirect flag on edges from nodes with multiple addresses.
 * Increase threshold for detecting two nodes with the same Name.
 * Always use the default signal handler for ABRT signals.
 * Check for EVP_EncryptInit_ex instead of SHA1_Version in OpenSSL.
 * Update THANKS and copyright information.
 * Ensure proper linking with OpenSSL with recent versions of MinGW.
 * Include <inttypes.h> when using intptr_t.
 * Experimental IFF_ONE_QUEUE support for Linux
 * Configurable SO_RCVBUF/SO_SNDBUF for the UDP socket
 * Configurable ReplayWindow size, zero disables
 * Improved handling of queue-jumping packets on receive
 * New '-o' option to configure server or hosts from command line
 * Fix command-line '-o' option for host configuration
 * Fix warnings showed using -D_FORTIFY_SOURCE=2
 * Fix warnings under BSD
 * Treat netname="." in a special way.
 * DragonFlyBSD support

Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 6 23:23:25 2013 UTC (11 years, 2 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

PKGREVISION bumps for the security/openssl 1.0.1d update.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Oct 23 17:19:13 2012 UTC (11 years, 5 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.18: +1 -3 lines
Diff to previous 1.18 (colored)

Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 23 00:29:31 2012 UTC (12 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1
Changes since 1.17: +7 -2 lines
Diff to previous 1.17 (colored)

Don't use empty lines in mdoc documents. Bump revision.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Apr 22 13:44:28 2011 UTC (12 years, 11 months ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

recursive bump from gettext-lib shlib bump.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Feb 13 00:20:24 2011 UTC (13 years, 2 months ago) by rumko
Branch: MAIN
CVS Tags: pkgsrc-2011Q1-base, pkgsrc-2011Q1
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

net/tinc: account for different header path on dfly

On DragonFly BSD, tun and tap headers are under net/tun/ and
net/tap/ and not directly in net/. Due to this, tinc does not
properly set up the tun devices in runtime. Bump PKGREVISION.

ok@ wiz

Revision 1.15 / (download) - annotate - [select for diffs], Sat May 1 16:56:40 2010 UTC (13 years, 11 months ago) by tonnerre
Branch: MAIN
CVS Tags: pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2
Changes since 1.14: +2 -3 lines
Diff to previous 1.14 (colored)

Upgrade tinc to version 1.0.13.

Changes since 1.0.9:

  * Mark Forwarding and DirectOnly options as being experimental.
  * Don't redefine MAX if it already exists.
  * Fixes for definitions under Windows.
  * Ensure subnet-up/down scripts are called after HUP when necessary.
  * Fix reloading Subnets when StrictSubnets is set.
  * Reload Subnets when getting a HUP signal and StrictSubnets is used.
  * Ensure ICMP_NET_ANO is defined.
  * Convert Port to numeric form before sending it to other nodes.

    If one uses a symbolic name for the Port option, tinc will send that name
    literally to other nodes.  However, it is not guaranteed that all nodes have
    the same contents in /etc/services, or have such a file at all.

  * Never delete Subnets when StrictSubnets is set

    If a node is unreachable, and not connected to an edge anymore, it gets
    deleted. When this happens its subnets are also removed, which should
    not happen with StrictSubnets=yes.

    - do not remove subnets in src/net.c::purge(), we know that all subnets
      in the list came from our hosts files.
      I think here you got the check wrong by looking at the tunnelserver
      code below it - with strictsubnets we still inform others but do not
      remove the subnet from our data.
    - do not remove nodes in net.c::purge() that still have subnets

  * Log unauthorized Subnets when StrictSubnets is set.
  * ConnectTo does not mean tinc does not listen for incoming connections anymore.
  * Fixes for the Forwarding option.
  * Add the DirectOnly option.

    When this option is enabled, packets that cannot be sent directly to the destination node,
    but which would have to be forwarded by an intermediate node, are dropped instead.
    When combined with the IndirectData option,
    packets for nodes for which we do not have a meta connection with are also dropped.

  * Add the Forwarding option.

    This determines if and how incoming packets that are not meant for the local
    node are forwarded.  It can either be off, internal (tinc forwards them itself,
    as in previous versions), or kernel (packets are always sent to the TUN/TAP
    device, letting the kernel sort them out).

  * Add the StrictSubnets option.

    When this option is enabled, tinc will not accept dynamic updates of Subnets
    from other nodes, but will only use Subnets read from local host config files
    to build its routing table.

  * Preload all Subnets in TunnelServer mode.

    This simplifies the logic in protocol_subnet.c.

  * Check for dirent.h.
  * Simplify reading lines from configuration files.

    Instead of allocating storage for each line read, we now read into fixed-size
    buffers on the stack. This fixes a case where a malformed configuration file
    could crash tinc.

  * Clamp MSS to miminum MTU in both directions.

    Clamp MSS of both incoming and outgoing packets, and use the minimum of the
    PMTU of both directions when clamping.

  * Add --disable-zlib configure option
  * Add --disable-lzo configure option
  * Ensure peers with a meta connection always have our key.

    This keeps UDP probes going, which in turn keeps NAT mappings alive.

  * Update copyright notices.
  * Try to set DF bit on BSDs as well.

    Every operating system seems to have its own, slightly different way to disable
    packet fragmentation. Emit a compiler warning when no suitable way is found.
    On OpenBSD, it seems impossible to do it for IPv4.

  * Immediately exchange keys when establishing a meta connection.

    This in turn will trigger PMTU discovery, and ensures nodes know each others
    reflexive UDP address and port.

  * Determine peer's reflexive address and port when exchanging keys.

    To help peers that are behind NAT connect to each other directly via UDP, they
    need to know the exact external address and port that they use. Keys exchanged
    between NATted peers necessarily go via a third node, which knows this address
    and port, and can append this information to the keys, which is in turned used
    by the peers.

    Since PMTU discovery will immediately trigger UDP communication from both sides
    to each other, this should allow direct communication between peers behind
    full, address-restricted and port-restricted cone NAT.

  * Be liberal in accepting KEY_CHANGED/REQ_KEY/ANS_KEY requests.

    When we got a key request for or from a node we don't know, we disconnected the
    node that forwarded us that request.  However, especially in TunnelServer mode,
    disconnecting does not help. We now ignore such requests, but since there is no
    way of telling the original sender that the request was dropped, we now retry
    sending REQ_KEY requests when we don't get an ANS_KEY back.

  * Run subnet-up/down scripts for local MAC addresses as well.
  * Fix subnet-up/down scripts being called with an empty SUBNET.

    Commit 052ff8b2c598358d1c5febaa9f9f5fc5d384cfd3 contained a bug that causes
    scripts to be called with an empty, or possibly corrupted SUBNET variable when
    a Subnet is added or removed while the owner is still online. In router mode,
    this normally does not happen, but in switch mode this is normal.

  * Make MSS clamping configurable, but enabled by default.

    It can either be set globally in tinc.conf, or per-node in host config files.

  * Also clamp MSS of TCP over IPv6 packets.
  * Optimise handling of select() returning <= 0.

    Before, we immediately retried select() if it returned -1 and errno is EAGAIN
    or EINTR, and if it returned 0 it would check for network events even if we
    know there are none.  Now, if -1 or 0 is returned we skip checking network
    events, but we do check for timer and signal events.

  * Ping nodes immediately when receiving SIGALRM.

    One reason to send the ALRM signal is to let tinc immediately try to connect to
    outgoing nodes, for example when PPP or DHCP configuration of the outgoing
    interface finished.  Conversely, when the outgoing interface goes down one can
    now send this signal to let tinc quickly detect that links are down too.

  * Clamp MSS of IPv4 SYN packets.

    Some ISPs block the ICMP Fragmentation Needed packets that tinc sends.  We
    clamp the MSS of IPv4 SYN packets to prevent hosts behind those ISPs from
    sending too large packets.

  * Allow Port and PMTUDiscovery options in tinc.conf, always enable PMTUDiscovery by default.
  * Use xstrdup() instead of xasprintf() to copy static strings.
  * Allow port to be specified in Address statements.

    This allows one to connect to use more than one port number to connect to
    another node. The syntax is now:

    Address = <hostname> [<port>]

  * Do not fragment packets smaller than RFC defined minimum MTUs.

    For IPv6, the minimum MTU is 1280 (RFC 2460), for IPv4 the minimum is actually
    68, but this is such a low limit that it will probably hurt performance, so we
    do as if it is 576 (the minimum packet size hosts should be able to handle, RFC
    791). If we detect a path MTU smaller than those minima, and we have to handle
    a packet that is bigger than the PMTU but smaller than those minima, we forward
    them via TCP instead of fragmenting or returning ICMP packets.

  * Forget addresses of unreachable nodes.

    We clear the cached address used for UDP connections when a node becomes
    unreachable. This also prevents host-up scripts from passing the old, cached
    address from when the host becomes reachable again from a different address.

  * Remove unused variable in lookup_subnet_*() functions.
  * When learning MAC addresses, only check our own Subnets for previous entries.

    Before it would check all addresses, and not learn an address if another node
    already claimed that address. This caused fast roaming to fail, the code from
    commit 6f6f426b353596edca77829c0477268fc2fc1925 was never triggered.

  * Start a tinc service if it already exists.
  * Fast handoff of roaming MAC addresses.

    In switch mode, if a known MAC address is claimed by a second node before it
    expired at the first node, it is likely that this is because a computer has
    roamed from the LAN of the first node to that of the second node. To ensure
    packets for that computer are routed to the second node, the first node should
    delete its corresponding Subnet as soon as possible, without waiting for the
    normal expiry timeout.

  * Move socket error interpretation to utils.h.
  * Use WSAGetLastError() to determine cause of network errors on Windows.

    This reduces log spam and lets path MTU discovery work faster.

  * Remove localedir leftovers.
  * Use IP_DONTFRAGMENT instead of IP_MTU_DISCOVER on Windows.

    This ensures the DF bit on outgoing UDP packets gets set on Windows when path
    MTU discovery is enabled, reducing fragmentation.

  * Forward packets to not directly reachable hosts via UDP if possible.

    If MTU probing discovered a node was not reachable via UDP, packets for it were
    forwarded to the next hop, but always via TCP, even if the next hop was
    reachable via UDP. This is now fixed by retrying to send the packet using
    send_packet() if the destination is not the same as the nexthop.

  * Make maxmtu equal to minmtu when fixing the path MTU to a node.

    This ensures MTU probes used to ping nodes are not too large, and prevents
    restarting MTU probing unnecessarily.

  * Always reply to MTU probes via UDP.

    It could sometime happen that a node would return MTU probes via TCP, which
    does not make a lot of sense.

  * Allow UDP packets with an address different from the corresponding TCP connection.
  * Use uint32_t instead of long int for connection options.

    Options should have a fixed width anyway, but this also fixes a possible MinGW
    compiler bug where %lx tries to print a 64 bit value, even though a long int is
    only 32 bits.

  * Add dummy device.
  * Clarify and increase level of log message about MTU probes to unreachable nodes.
  * Handle weighted Subnets in switch and hub modes.

    We now handle MAC Subnets in exactly the same way as IPv4 and IPv6 Subnets.
    This also fixes a problem that causes unncessary broadcasting of unicast
    packets in VPNs where some daemons run 1.0.10 and some run other versions.

  * Fix a possible crash when sending the HUP signal.

    When the HUP signal is sent while some outgoing connections have not been made
    yet, or are being retried, a NULL pointer could be dereferenced resulting in
    tinc crashing. We fix this by more careful handling of outgoing_ts, and by
    deleting all connections that have not been fully activated yet at the HUP
    signal is received.

  * Fix description of the WEIGHT environment variable.
  * Include missing header.
  * Remove debugging message when reading packets from a BSD device.
  * Allow the cloning /dev/tap interface to be used on FreeBSD and NetBSD.

    This device works like /dev/tun on Linux, automatically creating a new tap
    interface when a program opens it. We now pass the actual name of the newly
    created interface in $INTERFACE.

  * Use MTU probes to regularly ping other nodes over UDP.

    This keeps NAT mappings for UDP alive, and will also detect when a node is not
    reachable via UDP anymore or if the path MTU is decreasing. Tinc will fall back
    to TCP if the node has become unreachable.

    If UDP communication is impossible, we stop sending probes, but we retry if it
    changes its keys.

    We also decouple the UDP and TCP ping mechanisms completely, to ensure tinc
    properly detects failure of either method.

  * Small updates to the documentation.

    Mention that TCPOnly is not necessary anymore since tinc will autodetect
    whether it can send via UDP or not. Also mention the WEIGHT environment
    variable and the new default value (2048 bits) of RSA keys.

  * Ensure that the texinfo manual can be converted to HTML.

    The top node was made conditional with the @iftex command, since it should not
    appear in PostScript and PDF output. However, it is still necessary for
    texi2html, so we have to use @ifnottex instead.

    Texi2html also complains about the use of @cindex in the copyright statement,
    so we remove that.

  * Revert "Raise default crypto algorithms to AES256 and SHA256."

    Although it would be better to have the new defaults, only the most recent
    releases of most of the platforms supported by tinc come with a version of
    OpenSSL that supports SHA256. To ensure people can compile tinc and that nodes
    can interact with each other, we revert the default back to Blowfish and SHA1.

  * Remove code duplication when checking ADD_EDGE/DEL_EDGE messages.
  * Don't disconnect clients in TunnelServer mode who send unauthorised ADD_SUBNETs.
    So that we are liberal in what we accept.
  * Removed last gettext function.
  * Remove autogenerated files from EXTRA_DIST.

    Apparently they were once necessary, but autoconf now includes them
    automatically.  Some of them are not used anymore, and this caused make dist to

  * Update the NEWS.
  * Add more authors to the copyright headers.

    Git's log and blame tools were used to find out which files had significant
    contributions from authors who sent in patches that were applied before we used

  * Drop support for localisation.

    Localised messages don't make much sense for a daemon, and there is only the
    Dutch translation which costs time to maintain.

  * Remove checkpoint tracing.

    This feature is not necessary anymore since we have tools like valgrind today
    that can catch stack overflow errors before they make a backtrace in gdb

  * K&R style braces.
  * Update the address of the Free Software Foundation in all copyright headers.
  * Remove Ivo's old email addresses.
  * Remove all occurences of $Id$.
  * Update copyright information.

    - Update year numbers in copyright headers.
    - Add copyright information for Michael Tokarev and Florian Forster to the
      copyright headers of files to which they have contributed significantly.
    - Mention Michael and Florian in AUTHORS.
    - Mention that tinc is GPLv3 or later if compiled with the --enable-tunemu

  * Send large packets we cannot handle properly via TCP.

    During the path MTU discovery phase, we might not know the maximum MTU yet, but
    we do know a safe minimum.  If we encounter a packet that is larger than that
    the minimum, we now send it via TCP instead to ensure it arrives.  We also
    allow large packets that we cannot fragment or create ICMP replies for to be
    sent via TCP.

  * Raise default RSA key length to 2048 bits.
  * Use a mutex to allow the TAP reader to process packets faster on Windows.

    The TAP-Win32 device is not a socket, and select() under Windows only works
    with sockets.  Tinc used a separate thread to read from the TAP-Win32 device,
    and passed this via a local socket to the main thread which could then select()
    from it. We now use a global mutex, which is only unlocked when the main thread
    is waiting for select(), to allow the TAP reader thread to process packets

  * Remove extra {.
  * Raise default crypto algorithms to AES256 and SHA256.

    In light of the recent improvements of attacks on SHA1, the default hash
    algorithm in tinc is now SHA256. At the same time, the default symmetric
    encryption algorithm has been changed to AES256.

  * Use access() instead of stat() for checking whether scripts exist.
  * Remove dropin random() function, as it is not used anymore.
  * Allow compiling for Windows XP and higher.

    This allows us to use getaddrinfo(), getnameinfo() and related functions, which
    allow tinc to make connections over existing IPv6 networks. These functions are
    not available on Windows 2000 however. By default, support is enabled, but when
    compiling for Windows 2000 the configure switch --with-windows2000 should be

    Since getaddrinfo() et al. are not functions but macros on Windows, we have to
    use AC_CHECK_DECLS() instead of AC_CHECK_FUNCS() in

  * Also do not use drand48(), it is not available on Windows.
  * Use only rand(), not random().

    We used both rand() and random() in our code. Since it returns an int, we have
    to use %x in our format strings instead of %lx. This fixes a crash under
    Windows when cross-compiling tinc with a recent version of MinGW.

  * Apparently it's impolite to ask GCC to subtract two pointers.

    If two pointers do not belong to the same array, pointer subtraction gives
    nonsensical results, depending on the level of optimisation and the
    architecture one is compiling for. It is apparently not just subtracting the
    pointer values and dividing by the size of the object, but uses some kind of
    higher magic not intended for mere mortals. GCC will not warn about this at
    all. Casting to void * is also a no-no, because then GCC does warn that strict
    aliasing rules are being broken. The only safe way to query the ordering of two
    pointers is to use the (in)equality operators.

    The unsafe implementation of connection_compare() has probably caused the "old
    connection_t for ... still lingering" messages. Our implementation of AVL trees
    is augmented with a doubly linked list, which is normally what is traversed.
    Only when deleting an old connection the tree itself is traversed.

  * Remove superfluous call to avl_delete().
  * Handle unicast packets larger than PMTU in switch mode.

    If PMTUDiscovery is enabled, and we see a unicast packet that is larger than
    the path MTU in switch mode, treat it just like we would do in router mode.

  * Allow PMTUDiscovery in switch and hub modes again.

    PMTUDiscovery was disabled in commit d5b56bbba56480b5565ffb38496175a7c1df60ac
    because tinc did not handle packets larger than the path MTU in switch and hub
    modes. We now allow it again in preparation of proper support, but default to

  * Put Subnet weight in a separate environment variable.

    Commit 5674bba5c54c1aee3a4ac5b3aba6b3ebded91bbc introduced weighted Subnets,
    but the weight was included in the SUBNET variable passed to subnet-up/down
    scripts. This makes it harder to use in those scripts. The weight is now
    stripped from the SUBNET variable and put in the WEIGHT variabel.

  * Don't stat() on iPhone/iPod.

    Grzegorz Dymarek noted that tinc segfaults at the stat() call in
    execute_script() on the iPhone.  We can omit the stat() call for the moment,
    the subsequent call to system() will fail with just a warning.

  * Add support for iPhones and recent iPods.

    This is a slightly modified patch from Grzegorz Dymarek that allows tinc to use
    the tunemu device, which allows tinc to be compiled for iPhones and recent
    iPods. To enable support for tunemu, the --enable-tunemu option has to be used
    when running the configure script.

  * Another safe bitfield conversion.
  * Add the GPL license to the repository.

    Tinc is licensed under the GPL version 2 or later. To ensure autoconf does not
    install the wrong license if COPYING is missing, we have to put the right one
    in place.

  * Convert bitfields to integers in a safe way.

    This is commit eb391c52eed46f3f03b404553df417851fc0cb90 redone, but without the
    non-standard anonymous union.

  * Ensure tinc compiles with gcc -std=c99.

    We use a lot of C99 features already, but also some extensions which are not in
    the standard.

  * UNIX signal numbers start at 1.
  * Replace asprintf() by xasprintf().
  * Check the return value of fscanf() when reading a PID file.
  * Add xasprintf() and xvasprintf().

    These functions wrap asprintf() and vasprintf(), and check the return value. If
    the function failed, tinc will exit with an error message, similar to xmalloc()
    and friends.

  * Remove extra semicolon in my definition of setpriority()
  * Always remove a node from the UDP tree before freeing it.

    Valgrind caught tinc reading free'd memory during a purge(). This was caused by
    first removing it from the main node tree, which will already call free_node(),
    and then removing it from the UDP tree. This might cause spurious segmentation

  * Change level of some debug messages, zero pointer after freeing hostname.
  * Do not log errors when recvfrom() returns EAGAIN or EINTR.

    Although we select() before we call recvfrom(), it sometimes happens that
    select() tells us we can read but a subsequent read fails anyway. This is

  * Remove pending MTU probe events when a node's reachability status changes.
  * Don't try to send MTU probes to unreachable nodes.

    If there is an outstanding MTU probe event for a node which is not reachable
    anymore, a UDP packet would be sent to that node, which caused a key request to
    be sent to that node, which triggered a NULL pointer dereference. Probes and
    other UDP packets to unreachable nodes are now dropped.

  * Properly set HMAC length for incoming packets.
  * try outgoing connections before chroot/drop_privs

    When chrooted, we either need to force-initialize resolver
    and/or nsswitch somehow (no clean way) or resolve all the
    names we want before entering chroot jail.  The latter
    looks cleaner, easier and it is actually safe because
    we still don't talk with the remote nodes there, only
    initiating outgoing connections.

  * cleanup setpriority thing to make it readable
  * Add some const where appropriate.
  * Add ProcessPriority option.

    This option can be set to low, normal or high. On UNIX flavours, this changes
    the nice value of the process by +10, 0 and -10 respectively. On Windows, it
    HIGH_PRIORITY_CLASS respectively.

    A high priority might help to reduce latency and packet loss on the VPN.

  * src/net_socket.c: Bind outgoing TCP sockets to `BindToAddress'.

    If a host has multiple addresses on an interface, the source address of the TCP
    connection(s) was picked by the operating system while the UDP packets used a
    bound socket, i. e. the source address was the address specified by the user.
    This caused problems because the receiving code requires the TCP connection and
    the UDP connection to originate from the same IP address.

    This patch adds support for the `BindToInterface' and `BindToAddress' options
    to the setup of outgoing TCP connections.

    Tested with Debian Etch on x86 and Debian Lenny on x86_64.

    Signed-off-by: Florian Forster <>

  * src/linux/device.c: Fix segfault when running without `--net'.

    If running without `--net', the (global) variable `netname' is NULL. This
    creates a segmentation fault because this NULL-pointer is passed to strdup:

     Program terminated with signal 11, Segmentation fault.
     #0  0xb7d30463 in strlen () from /lib/tls/i686/cmov/
     (gdb) bt
     #0  0xb7d30463 in strlen () from /lib/tls/i686/cmov/
     #1  0xb7d30175 in strdup () from /lib/tls/i686/cmov/
     #2  0x0805bf47 in xstrdup (s=0x0) at xmalloc.c:118  <---
     #3  0x0805be33 in setup_device () at device.c:66
     #4  0x0805072e in setup_myself () at net_setup.c:432
     #5  0x08050db2 in setup_network () at net_setup.c:536
     #6  0x0805b27f in main (argc=Cannot access memory at address 0x0) at tincd.c:580

    This patch fixes this by checking `netname' in `setup_device'. An alternative
    would be to check for NULL-pointers in `xstrdup' and return NULL in this case.

    Signed-off-by: Florian Forster <>

  * tunnelserver: log which ADD_SUBNET was refused

    Add some logging about refused ADD_SUBNET
    (it causes subsequent client disconnect so it's
    important to know which subnet was at fault).

    Maybe we should just ignore it completely.

  * Do not forward broadcast packets when TunnelServer is enabled.

    First of all, the idea behind the TunnelServer option is to hide all other
    nodes from each other, so we shouldn't forward broadcast packets from them
    anyway. The other reason is that since edges from other nodes are ignored, the
    calculated minimum spanning tree might not be correct, which can result in
    routing loops.

  * Use packet size before decompression to calculate path MTU.

    Since compression can either grow or shrink a packet, the size of an MTU probe
    after decompression might not reflect the real path MTU. Now we use the size
    before decompression, which is independent of the compression algorithm, and
    substract a safety margin such that the calculated path MTU will be safe even
    for packets which grow as much as possible after compression.

  * Add declaration for sockaddrcmp_noport().
  * Fix ans_key exchange in recent changes

    send_ans_key() was using the wrong in vs. outkeylength to
    terminate the key being sent, so it was always empty.

  * Use xrealloc instead of if(ptr) ptr = xmalloc().
  * Fix initialisation of packet decryption context broken by commit 3308d13e7e3bf20cfeaf6f2ab17228a9820cea66.

    Instead of a single, global decryption context, each node has its own context.
    However, in send_ans_key(), the global context was initialised. This commit
    fixes that and removes the global context completely.

    Also only set status.validkey after all checks have been evaluated.

  * don't log every strange packet coming to the UDP port

    it's a sure way to fill up syslog.  Only log those if
    debug level is up to PROTOCOL

  * Fix link to Mattias Nissler's tun/tap driver for MacOS/X.
  * If PMTUDiscovery is not set, do not forward packets via TCP unnecessarily.

  * ignore indirect edge registrations in tunnelserver mode

    In tunnelserver mode we're not interested to hear about
    our client edges, just like in case of subnets.  Just
    ignore all requests which are not about our node or the
    client node.

    The fix is very similar to what was done for subnets.

    Note that we don't need to add the "unknown" nodes to
    the list in tunnelserver mode too, so move allocation
    of new nodes down the line.

  * TunnelServer: Don't disconnect client on DEL_SUBNET too

    Similar changes as was in 2327d3f6eb5982bcc922ff1ab1ec436ba6aeffdc
    but for del_subnet_h().

    Before, we vere returning false (and causing disconnect of the
    client) in case of tunnelserver and the client sending DEL_SUBNET
    for non-his subnet or for subnet which owner isn't in our connection

    After the mentioned change to add_subnet_h() that routine does not
    add such indirect owners to the connection list anymore, so that
    was ok (owner == NULL and we return true).

    But if we too has a connection with the node about which the client
    is sending DEL_SUBNET notification, say, because that client lost
    connection with that other node, we'll disconnect this client from
    us too, returning false for indirect DEL_SUBNET.

    Fix that by allowing and ignoring indirect DEL_SUBNET in tunnelserver

    Also rearranged the function a bit, to match add_subnet_h() (in
    particular, syntax-check everything first, see if we've seen this
    request before).

    And also fix some comments.

  * format 'not supported on this platform' error message

    Format it in a similar way in all places, to make translation happier.
    No functional changes.

  * change error messages in droppriv code to match the rest

    Change formatting of error messages about failed syscalls
    to be the same as in other places in tincd.

    Also suggest a change in "$foo not supported on this platform"
    message as it's now used more than once.

  * bugfix: chdir(/) after chroot

    Fix the famous chdir(".") vs chdir("/") after chroot(something).

  * bugfix: move mlock to after detach() so it works for child, not parent

    mlock()/mlockall() are not persistent across fork(), and it's
    done in parent process before daemon() which does fork().  So
    basically, current --mlock does nothing useful.

    Move mlock() to after detach() so it works for child process
    instead of parent.

    Also, check if the platform supports mlock right when processing
    options (since else we'll have to die after startup, not at
    startup, the error message will be in log only).

  * bugfix: initialize pid (as read from pidfile) to zero

    If we didn't read any number from a pid file, we'll return
    an unitialized variable to the caller, and it will treat
    that garbage as a pid of a process (possible to kill).

    Fix that.

  * Implement privilege dropping

    Add two options, -R/--chroot and -U/--user=user, to chroot to the
    config directory (where tinc.conf is located) and to perform
    setuid to the user specified, after all the initialization is done.

    What's left is handling of pid file since we can't remove it anymore.

  * Rename setup_network_connections() and split out try_outgoing_connections()

    In preparation of chroot/setuid operations, split out call to
    try_outgoing_connections() from setup_network_connections()
    (which was the last call in setup_network_connections()).
    This is because dropping privileges should be done in-between
    setup_network_connections() and try_outgoing_connections().

    This patch renames setup_network_connections() to setup_network()
    and moves call to try_outgoing_connections() into main routine.

    No functional changes.

  * Handle UDP packets from different and ports than advertised.

    Previously, tinc used a fixed address and port for each node for UDP packet
    exchange.  The port was the one advertised by that node as its listening port.
    However, due to NAT the port might be different.  Now, tinc sends a different
    session key to each node. This way, the sending node can be determined from
    incoming packets by checking the MAC against all session keys. If a match is
    found, the address and port for that node are updated.

  * Use a simple Random Early Drop algorithm in send_tcppacket().
  * Disable PMTUDiscovery in switch and hub modes.

    In switch and hub modes, tinc does not generate ICMP packets in response to
    packets that are larger than the path MTU.  However, if PMTUDiscovery is
    enabled, the IP_MTU_DISCOVER and IPV6_MTU_DISCOVER option is set on the UDP
    sockets, which causes all UDP packets to be sent with the DF bit set, causing
    large packets to be dropped, even if they would otherwise be routed fine.
  * Update THANKS and copyright information.
  * Allow weight to be assigned to Subnets.

    Tinc allows multiple nodes to own the same Subnet, but did not have a sensible
    way to decide which one to send packets to. Tinc also did not check the
    reachability of nodes when deciding where to route packets to, so it would not
    automatically fail over to a reachable node.

    Tinc now assigns a weight to each Subnet. The default weight is 10, with lower
    weights having higher priority.  The Subnets are now internally sorted in the
    same way as the kernel's routing table, and the Subnets are search linearly,
    skipping those of unreachable nodes. A small cache of recently used addresses
    is used to speed up the lookup functions.

  * Enable PMTUDiscovery only if BOTH sides wants it.

    Don't enable PMTUDiscovery if at least one side does not support it.
    Before it was enabled if at least one side supported it, now both are required.

  * Handle neighbor solicitation requests without link layer addresses.

    Apparently FreeBSD likes to send out neighbor solicitation requests, even on a
    tun interface where this is completely pointless. These requests do not have an
    option header containing a link layer address, so the proxy-neighborsol code
    was treating these requests as invalid. We now handle such requests, and send
    back equally pointless replies, also without a link layer address. This seems
    to satisfy FreeBSD.

  * Allow tunnelserver to work with clients that have other peers.

    In TunnelServer mode, tinc server disconnects any client if it announces
    indirect subnets -- subnets that are not theirs (e.g. subnets for nodes
    the CLIENT has connections now, even if those nodes are known to the server
    too).  Fix that by ignoring such (indirect) announces instead.

    While we're at it, move check for such indirect subnet registration to
    before allocating new node structure, as in TunnelServer mode we don't
    really need to know that other node.

  * Disable old RSA keys when generating new ones.

    When generating an RSA keypair, the new public and private keys are appended to
    files. However, when OpenSSL reads keys it only reads the first in a file, not
    the last. Instead of printing an easily ignored warning, tinc now disables old
    keys when appending new ones.

  * Validate Name before using it in a filename when generating a keypair.
  * Allow reading config files with CRLF endings on Unix systems.
  * Remove unused definitions from net.h.
  * Use a global list to track outgoing connections.

    Previously an outgoing_t was maintained for each outgoing connection,
    but the pointer to it was either stored in a connection_t or in an event_t.
    This made it very hard to keep track of and to clean up.

    Now a list is created when tinc starts and reads all the ConnectTo variables,
    and which is recreated when tinc receives a HUP signal.

  * Add missing cleanup functions in close_network_connections().
  * Change flush_events() to expire_events().

    The former function made a totally bogus shallow copy of the event_tree, called
    the handler of each event and then deleted the whole tree.  This should've
    caused tinc to crash when an ALARM signal was sent more than once, but for some
    reason it didn't. It also behaved incorrectly when a handler added a new event.

    The new function just moves the expiration time of all events to the past.

  * Move free()s at the end om main() to the proper destructor functions.
  * Only send packets via UDP if UDP communication is possible.

    When no session key is known for a node, or when it is doing PMTU discovery but
    no MTU probes have returned yet, packets are sent via TCP. Some logic is added
    to make sure intermediate nodes continue forwarding via TCP.  The per-node
    packet queue is now no longer necessary and has been removed.

  * Consistently allocate device and iface variables on the heap.

    This fixes a segfault when no Device has been specified and tinc exits, and it
    would try to free() a static string. Thanks to Borg for spottin.

  * Update documentation for git.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 17 12:02:35 2010 UTC (14 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Recursive PKGREVISION bump for jpeg update to 8.

Revision 1.13 / (download) - annotate - [select for diffs], Tue May 19 08:59:28 2009 UTC (14 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 18 19:27:11 2009 UTC (15 years ago) by tonnerre
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Update net/tinc to version 1.0.9. Pick up maintainership and set license.

Changes since version 1.0.7:

 - Apply patch from Max Rijevski fixing a memory leak when closing connections.
   It also cleans up more when stopping tinc, helping tools like valgrind.
 - Handle broadcast and multicast packets in router mode.
   Multicast packets are treated as broadcast packets.
 - Update the manpage as well, and some whitespace to make its source more legible.
 - Update documentation.
   - TCPOnly is not experimental.
   - Do not mention old Linux kernels and Ethertap anymore.
   - Document the DeviceType, PMTU and PMTUDiscovery options.
 - Enable PMTU discovery by default.
 - Update copyright information.
 - Update Dutch translation.
 - Make sure IPv6 sockets are IPv6 only.
 - This will get rid of the "Can't bind to port 655/tcp: Address already
   in use" message on Linux.
 - Use TUNIFHEAD by default on FreeBSD to make sure IPv6 works.
 - Treat virtual network device as tap if Mode = switch or hub.
   On OpenBSD, the link0 flag should still be set in tinc-up or by other means.
 - Correct debug message.
 - Prevent freeing a NULL pointer when a hostname is unresolvable.
 - Do not try to send REQ_KEY or ANS_KEY requests to unreachable nodes.
 - Fix reading configuration files that do not end with a newline.
 - Make sure the prefixlength of subnets is sane.
 - Handle SERVICE_CONTROL_INTERROGATE requests. Thanks to Carsten Ralle for noticing this.
 - Don't free struct addrinfo too early. Spotted by Christian Cier-Zniewski.
 - Update dutch translation.
 - Make sure connection->name is never NULL.
 - Apply patch from "dnk" making sockets non-blocking under Windows.
 - Close the proper filedescriptor (if it exists).
 - Apply patch from Scott Lamb fixing some memory and resource leaks.
 - Apply patch from Scott Lamb preventing an infinite loop when sending SIGALRM.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 18 05:08:50 2008 UTC (16 years, 3 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Per the process outlined in revbump(1), perform a recursive revbump
on packages that are affected by the switch from the openssl 0.9.7
branch to the 0.9.8 branch. ok jlam@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Dec 21 20:41:04 2007 UTC (16 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Changes since 1.9: +6 -1 lines
Diff to previous 1.9 (colored)

I18N (PR 37581) and DESTDIR support.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Apr 21 15:19:01 2007 UTC (16 years, 11 months ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

Update tinc to 1.0.7.


Jan 5th 2007
Version 1.0.7 released.
 * Fixed a bug that caused slow network speeds on Windows.
 * Fixed a bug that caused tinc unable to write packets to the tun device on OpenBSD.

Dec 18th 2006
Version 1.0.6 released.
 * More flexible detection of the LZO libraries when compiling.
 * Fixed a bug where broadcasts in switch and hub modes sometimes would not work anymore when part of the VPN had become disconnected from the rest.

Nov 14th 2006
Version 1.0.5 released.
 * Lots of small fixes.
 * Broadcast packets no longer grow in size with each hop. This should fix switch mode (again).
 * Generic host-up and host-down scripts.
 * Optionally dump graph in graphviz format to a file or a script.
 * Support LZO 2.0 and later.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Oct 4 21:53:18 2006 UTC (17 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Update MASTER_SITES and/or HOMEPAGE, from Sergey Svishchev.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 6 03:20:54 2006 UTC (18 years ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored)

List the info files directly in the PLIST and honor PKG{INFO,MAN}DIR.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Mar 4 21:30:25 2006 UTC (18 years, 1 month ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2006Q1-base, pkgsrc-2006Q1
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Point MAINTAINER to in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 30 16:58:03 2005 UTC (18 years, 10 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4, pkgsrc-2005Q3-base, pkgsrc-2005Q3, pkgsrc-2005Q2-base, pkgsrc-2005Q2
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

Update to 1.0.4, including a patch by Tonnerre, provided
in PR 30378.

version 1.0.4                May  4 2005

 * Fix switch and hub modes.

 * Optionally start scripts when a Subnet becomes (un)reachable.

version 1.0.3                Nov 11 2004

* Show error message when failing to write a PID file.

* Ignore spaces at end of lines in config files.

* Fix handling of late packets.

* Unify BSD tun/tap device handling. This allows IPv6 on tun devices and
  anything on tap devices as long as the underlying OS supports it.

* Handle IPv6 on Solaris tun devices.

* Allow tinc to work properly under Windows XP SP2.

* Allow VLAN tagged Ethernet frames in switch and hub mode.

* Experimental PMTUDiscovery, TunnelServer and BlockingTCP options.

version 1.0.2                Nov  8 2003

* Fix address and hostname resolving under Windows.

* Remove warnings about non-existing scripts and unsupported address families.

* Use the event logger under Windows.

* Fix quoting of filenames and command line arguments under Windows.

* Strict checks for length incoming network packets and return values of
  cryptographic functions,

* Fix a bug in metadata handling that made the tinc daemon abort.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Apr 11 21:47:00 2005 UTC (19 years ago) by tv
Branch: MAIN
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored)

Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Oct 3 00:18:00 2004 UTC (19 years, 6 months ago) by tv
Branch: MAIN
CVS Tags: pkgsrc-2005Q1-base, pkgsrc-2005Q1, pkgsrc-2004Q4-base, pkgsrc-2004Q4
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Libtool fix for PR pkg/26633, and other issues.  Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.

Revision 1.2 / (download) - annotate - [select for diffs], Fri May 7 01:14:49 2004 UTC (19 years, 11 months ago) by xtraeme
Branch: MAIN
CVS Tags: pkgsrc-2004Q3-base, pkgsrc-2004Q3, pkgsrc-2004Q2-base, pkgsrc-2004Q2
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Drop maintainership; I don't have the enough free time to maintain
all these packages.

Revision / (download) - annotate - [select for diffs] (vendor branch), Thu Apr 1 05:42:11 2004 UTC (20 years ago) by xtraeme
Branch: TNF
CVS Tags: pkgsrc-base
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Initial import of tinc-1.0.1 from pkgsrc-wip.

tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and 
encryption to create a secure private network between hosts on the Internet.

Because the VPN appears to the IP level network code as a normal network 
device, there is no need to adapt any existing software. This allows VPN 
sites to share information with each other over the Internet without exposing
any information to others. In addition, tinc has the following features:

o Encryption, authentication and compression
    All traffic is optionally compressed using zlib or LZO, and OpenSSL is
    used to encrypt the traffic and protect it from alteration with message
    authentication codes and sequence numbers. 
o Automatic full mesh routing
    Regardless of how you set up the tinc daemons to connect to each
    other, VPN traffic is always (if possible) sent directly to the
    destination, without going through intermediate hops. 
o Easily expand your VPN
    When you want to add nodes to your VPN, all you have to do is add an extra
    configuration file, there is no need to start new daemons or create and
    configure new devices or network interfaces.
o Ability to bridge ethernet segments
    You can link multiple ethernet segments together to work like a single 
    segment, allowing you to run applications and games that normally only work
    on a LAN over the Internet. 

Revision 1.1 / (download) - annotate - [select for diffs], Thu Apr 1 05:42:11 2004 UTC (20 years ago) by xtraeme
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>