Local address announces

Guus Sliepen guus at tinc-vpn.org
Thu Sep 2 19:57:43 CEST 2010


On Thu, Aug 26, 2010 at 10:09:06AM +0200, Daniel Schall wrote:

> Please find attached an archive, which contains my latest version, as
> well as a diff patch.

Hm, it still had the segfault problem, and I noticed some differences between
the diff and the tarball. I fixed the segfault, but it still did not work on my
network.

> Did you set the configuration to "LocalAnnounce = AnnounceAndReceive"?

I did set that.

> By the way, I tried to commit my changes by issuing "git push", but I
> get the error: "fatal: The remote end hung up unexpectedly" :-/
> Same if I type "git push git://tinc-vpn.org/tinc"..

You cannot push to the main git repository. You can send me your commits via
email (you can use git format-patch and send-email commands, or attach the
output of git diff to an email), or you can make your git repository public so
I can pull from it.

Anyway, since I still believe broadcasting PMTU discovery packets is easier, I
tried to implement that. The changes necessary were:

1. Find out the port a remote node is listening on on his own LAN. This
   information is available from any edge_t to that node.

2. Enable broadcast transmission and reception on the UDP sockets.

3. Send an extra packet every time we send MTU probes, but broadcast it to
   255.255.255.255.

The MTU probes are sent every PingInterval seconds, so this will also deal with
topology changes.  This approach seems to work for me. A patch against the
latest version in the git repository (master branch) is attached. Let me know
what you think.

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local-broadcast.diff
Type: text/x-diff
Size: 3957 bytes
Desc: not available
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20100902/fd7c168e/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20100902/fd7c168e/attachment.pgp>


More information about the tinc-devel mailing list