Author: andrews
Date: 2008-04-12 13:54:41 +0200 (Sat, 12 Apr 2008)
New Revision: 3471
Modified:
trunk/n2n/HACKING
trunk/n2n/edge.c
trunk/n2n/n2n.c
trunk/n2n/n2n.h
trunk/n2n/supernode.c
trunk/n2n/tuntap_linux.c
trunk/n2n/tuntap_osx.c
Log:
Implementation of the new registration process has been done. Read HACKING for
details of how it works. Important to note is the gratuitous ARP is gone. The
code remains so it can be enabled by a config option in the future.
Edge nodes now forget peer registrations after 5 minutes of inactivity. The
registration is refreshed for each packet received. This timeout may need to be
reviewed, or made tunable as I saw a case in testing where the firewall shutdown
the UDP association after about 3 min due to inactivity; but the peer
registration remained meaning the supernode was not used. Mitigation notes are
in HACKING.
Testing: works under linux for one open edge and one behind symmetric NAT.
Changes Key
-----------
A: Const-ness changes.
B: Added typedefs for frequently used IP and MAC string buffers.
C: Disable gratuitous ARP.
D: Modified registration process implemented. See HACKING for details.
E: Updates to registration design and testing notes.
--------
AB n2n.h
AB n2n.c
ABCDE edge.c
B supernode.c
B tuntap_osx.c
B tuntap_linux.c
E HACKING
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev