From patchwork Mon Dec 1 18:57:01 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 5360 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by open-mesh.net (8.13.4/8.13.4/Debian-3sarge3) with SMTP id mB1J4H2Z005404 for ; Mon, 1 Dec 2008 20:04:18 +0100 Received: (qmail invoked by alias); 01 Dec 2008 18:58:25 -0000 Received: from unknown (EHLO localhost) [89.246.207.63] by mail.gmx.net (mp055) with SMTP; 01 Dec 2008 19:58:25 +0100 X-Authenticated: #15668376 X-Provags-ID: V01U2FsdGVkX18HzJZ6pEYHjEdPeiBGXtIDvCqB50rZbAb7xD0QEv jPzb4dCHnVWsc4 From: Sven Eckelmann To: b.a.t.m.a.n@open-mesh.net Date: Mon, 1 Dec 2008 19:57:01 +0100 Message-Id: <1228157822-29406-7-git-send-email-sven.eckelmann@gmx.de> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1228157822-29406-1-git-send-email-sven.eckelmann@gmx.de> References: <1228157822-29406-1-git-send-email-sven.eckelmann@gmx.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 Subject: [B.A.T.M.A.N.] [PATCH] Remove unused functions isDuplicate and isBntog X-BeenThere: b.a.t.m.a.n@open-mesh.net X-Mailman-Version: 2.1.5 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: Mon, 01 Dec 2008 19:04:19 -0000 --- batman/batman.c | 37 ------------------------------------- 1 files changed, 0 insertions(+), 37 deletions(-) diff --git a/batman/batman.c b/batman/batman.c index ebe5aab..0c17f33 100644 --- a/batman/batman.c +++ b/batman/batman.c @@ -666,43 +666,6 @@ unsigned char get_gw_class(int down, int up) -int isDuplicate(struct orig_node *orig_node, uint16_t seqno) -{ - struct list_head *neigh_pos; - struct neigh_node *neigh_node; - - prof_start( PROF_is_duplicate ); - - list_for_each( neigh_pos, &orig_node->neigh_list ) { - - neigh_node = list_entry( neigh_pos, struct neigh_node, list ); - - if ( get_bit_status( neigh_node->real_bits, orig_node->last_real_seqno, seqno ) ) { - - prof_stop( PROF_is_duplicate ); - return 1; - - } - - } - - prof_stop( PROF_is_duplicate ); - - return 0; -} - - - -int isBntog(uint32_t neigh, struct orig_node *orig_tog_node) -{ - if ( ( orig_tog_node->router != NULL ) && ( orig_tog_node->router->addr == neigh ) ) - return 1; - - return 0; -} - - - static int isBidirectionalNeigh(struct orig_node *orig_node, struct orig_node *orig_neigh_node, struct bat_packet *in, uint32_t recv_time, struct batman_if *if_incoming) {