Patch for tunnelserver mode in protocol_subnet.c

Thomas NOEL thomas.noel at auf.org
Wed Apr 13 17:07:30 CEST 2005



Le 13.04.2005 16:26, Guus Sliepen a écrit :
> On Wed, Apr 13, 2005 at 04:14:06PM +0200, Thomas NOEL wrote:
>>Le 13.04.2005 15:08, Guus Sliepen a écrit :
>>>>- this checking can be made before the check of the owner, especially
>>>>before any "new_node" call.
>>>I agree with that.
>>Here is a correct patch for this.
> Oh, I though you only meant the if(tunnelserver && owner != myself &&
> owner != c->node) return false; part. You have to do that first, because
> otherwise you could allow nodes to add Subnets for other nodes.

Mmmmhh, yes. Is this one ok ? (I've to buy a brown paper bag quickly...)

-- 
Thomas NOEL <thomas.noel at auf.org> http://www.auf.org/
Coordinateur des infrastructures techniques
Agence universitaire de la Francophonie (AUF)
Services centraux Paris - 4 place de la Sorbonne - 75005 Paris
Tél: +33 (0)1 44 41 18 18, poste 1822 Tlc: +33(0)1 44 41 18 19
 > Merci d'éviter de m'envoyer des documents Word ou PowerPoint
 > cf http://www.gnu.org/philosophy/no-word-attachments.fr.html
-------------- section suivante --------------
Une pi?ce jointe non texte a ?t? nettoy?e...
Nom: tunnelserver-check-before-new-node-2.patch
Type: text/x-patch
Taille: 655 octets
Desc: non disponible
Url: http://brouwer.uvt.nl/pipermail/tinc-devel/attachments/20050413/1a0b4c42/tunnelserver-check-before-new-node-2-0001.bin


More information about the tinc-devel mailing list