Package: tinc
Version: 1.0.3-1
Severity: important
Tags: patch

In switch mode Tinc doesn't write received broadcasts to the local TUN/TAP
device. All broadcast packets are silently dropped. It makes ARP fail, which
makes the whole switch mode mostly unusable. I believe the bug affects hub
mode too.

Both versions 1.0.3-1 and 1.0.3-4 have this bug. The bug is fixed in the SVN
repository, from which I've created a patch that I included here. The patch
fixes the problems for me.

*** tinc_1.0.3-1-fix.diff
diff -urN tinc-1.0.3-1/src/net_packet.c 
tinc-1.0.3-1.broadcastfix/src/net_packet.c
--- tinc-1.0.3-1/src/net_packet.c       2004-11-09 11:51:42.000000000 +0200
+++ tinc-1.0.3-1.broadcastfix/src/net_packet.c  2005-02-11 21:00:49.000000000 
+0200
@@ -457,6 +457,12 @@
        ifdebug(TRAFFIC) logger(LOG_INFO, _("Broadcasting packet of %d bytes 
from %s (%s)"),
                           packet->len, from->name, from->hostname);
 
+       if(from != myself) {
+               if(overwrite_mac)
+                       memcpy(packet->data, mymac.x, ETH_ALEN);
+               write_packet(packet);
+       }
+
        for(node = connection_tree->head; node; node = node->next) {
                c = node->data;
 


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-v2
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages tinc depends on:
ii  debconf                     1.4.30.11    Debian configuration management sy
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  liblzo1                     1.08-1.2     A real-time data compression libra
ii  libssl0.9.7                 0.9.7e-2     SSL shared libraries
ii  zlib1g                      1:1.2.2-3    compression library - runtime

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to