From patchwork Sat Jun 23 10:34:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Wunderlich X-Patchwork-Id: 2101 Return-Path: Received: from cora.hrz.tu-chemnitz.de (cora.hrz.tu-chemnitz.de [134.109.228.40]) by open-mesh.org (Postfix) with ESMTPS id 0480A600735 for ; Sat, 23 Jun 2012 12:34:15 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key; insecure key) header.i=@tu-chemnitz.de; dkim-adsp=none (insecure policy) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Message-Id:Date:Subject:Cc:To:From; bh=PckG9c62arxUjTrsagOA9hFqax9fiBfY2WVNW/TxFzY=; b=fhSsmksLzqKYitHZxT2k1UUrDXnnpl1mqg2zTCnoimmsAlpUQZTWUo7Cz6HSp+zfNevcM3zdEWjgfCTBBOaRT/2qOscuBOCnCT6AN3iaZPx1cgTiPnUwbXVPDkfQwlAmrKN3aHDl0bOoY5DvQm80PewmahXtq5S+qS7xHNqi1ik=; Received: from p57aa0b11.dip0.t-ipconnect.de ([87.170.11.17] helo=pandem0nium) by cora.hrz.tu-chemnitz.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SiNfT-0000xe-G8; Sat, 23 Jun 2012 12:34:15 +0200 Received: from dotslash by pandem0nium with local (Exim 4.72) (envelope-from ) id 1SiNfc-00078e-Jb; Sat, 23 Jun 2012 12:34:24 +0200 From: Simon Wunderlich To: b.a.t.m.a.n@lists.open-mesh.org Date: Sat, 23 Jun 2012 12:34:17 +0200 Message-Id: <1340447658-27405-1-git-send-email-siwu@hrz.tu-chemnitz.de> X-Mailer: git-send-email 1.7.2.5 X-Scan-AV: cora.hrz.tu-chemnitz.de; 2012-06-23 12:34:15; 94504dd11168249cfa2473ddd0a50bc0 X-Scan-SA: cora.hrz.tu-chemnitz.de; 2012-06-23 12:34:15; fd23bb850b3dfcd4bcd538e0cb7bf142 X-Spam-Score: -1.0 (-) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-1.0 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP --- Ende Textanalyse Cc: Simon Wunderlich Subject: [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: correct comments in bridge loop avoidance 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: Sat, 23 Jun 2012 10:34:16 -0000 Signed-off-by: Simon Wunderlich --- bridge_loop_avoidance.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bridge_loop_avoidance.c b/bridge_loop_avoidance.c index 38aab1e..a61bb74 100644 --- a/bridge_loop_avoidance.c +++ b/bridge_loop_avoidance.c @@ -280,7 +280,7 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, uint8_t *mac, NULL, /* Ethernet SRC/HW SRC: originator mac */ primary_if->net_dev->dev_addr, - /* HW DST: FF:43:05:XX:00:00 + /* HW DST: FF:43:05:XX:YY:YY * with XX = claim type * and YY:YY = group id */ @@ -322,7 +322,8 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, uint8_t *mac, break; case BATADV_CLAIM_TYPE_REQUEST: /* request frame - * set HW SRC to the special mac containg the crc + * set HW SRC and header destination to the receiving backbone + * gws mac */ memcpy(hw_src, mac, ETH_ALEN); memcpy(ethhdr->h_dest, mac, ETH_ALEN);