From patchwork Fri Jul 8 21:38:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1241 Return-Path: Received: from contumacia.investici.org (contumacia.investici.org [178.255.144.35]) by open-mesh.org (Postfix) with ESMTPS id C71B7154114 for ; Fri, 8 Jul 2011 23:39:34 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@autistici.org; dkim-adsp=pass Received: from [178.255.144.35] (contumacia [178.255.144.35]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id DB1D1E8468; Fri, 8 Jul 2011 21:39:30 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 contumacia.investici.org DB1D1E8468 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1310161173; bh=Hq456P+Jny44eHdhZR2xgfy+AK9zLAi1iZ1pl5O9Bo4=; h=From:To:Cc:Subject:Date:Message-Id; b=T865R85x2lnrwBEvNZ9laZ9O005ij3qcX1x65/C0HYoALWIHabJFUimJDIpJ1RR53 CKQksyPX2hOYFJSBgpVm3UL1Ycwm2s1CNAPUYq6tpF0Y8aGbj3eP2YcjV3k8PRMvSG zDe/jSnZmqj5AliB+0m2SOuyBgUfJurtpJlh2p5c= From: Antonio Quartulli To: "B.A.T.M.A.N" Date: Fri, 8 Jul 2011 23:38:54 +0200 Message-Id: <1310161134-18515-1-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.7.3.4 Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH] batctl: keep local table consistency for further TT_RESPONSE X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2011 21:39:35 -0000 To keep transtable consistency among all the nodes, an originator must not send not yet announced clients within a full table TT_RESPONSE. Instead, deleted client have to be kept in the table in order to be sent within an immediate TT_RESPONSE. In this way all the nodes in the network will always provide the same response for the same request. All the modification are committed at the next ttvn increment event. Signed-off-by: Antonio Quartulli Signed-off-by: Marek Lindner --- packet.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/packet.h b/packet.h index 590e4a6..b76b4be 100644 --- a/packet.h +++ b/packet.h @@ -84,7 +84,9 @@ enum tt_query_flags { enum tt_client_flags { TT_CLIENT_DEL = 1 << 0, TT_CLIENT_ROAM = 1 << 1, - TT_CLIENT_NOPURGE = 1 << 8 + TT_CLIENT_NOPURGE = 1 << 8, + TT_CLIENT_NEW = 1 << 9, + TT_CLIENT_PENDING = 1 << 10 }; struct batman_packet {