From patchwork Sun Oct 30 15:40:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Wunderlich X-Patchwork-Id: 1305 Return-Path: Received: from nick.hrz.tu-chemnitz.de (nick.hrz.tu-chemnitz.de [134.109.228.11]) by open-mesh.org (Postfix) with ESMTPS id 3BBA7600726 for ; Sun, 30 Oct 2011 16:40:50 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@tu-chemnitz.de; dkim-adsp=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=t3WyU9kCCdaTwRndpB4j05oBSPph3+xYAKydcoo0V9Q=; b=SSR16H19SuRSruYtuVjqSmpO981ffrFsirk3S4iaoqOLmjJYMwKqnXnRGjj+bObd4yyw4x5dU9r4TZc1w1CVOmxnT2WObpspGFLxIunz+udAfwzZDVUvsqlc3szDm9sUpfSVjfMnxbJ9inC6NQqnuyQTAkLXedwKW9Z4x8m2hwI=; Received: from p57aa138b.dip0.t-ipconnect.de ([87.170.19.139] helo=pandem0nium) by nick.hrz.tu-chemnitz.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RKXVB-0005vr-KU; Sun, 30 Oct 2011 16:40:49 +0100 Received: from dotslash by pandem0nium with local (Exim 4.72) (envelope-from ) id 1RKXVA-0000xo-KQ; Sun, 30 Oct 2011 16:40:48 +0100 From: Simon Wunderlich To: b.a.t.m.a.n@lists.open-mesh.org Date: Sun, 30 Oct 2011 16:40:46 +0100 Message-Id: <1319989246-3670-1-git-send-email-siwu@hrz.tu-chemnitz.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1850275.SO2QzbpOTm@sven-laptop.home.narfation.org> References: <1850275.SO2QzbpOTm@sven-laptop.home.narfation.org> 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 X-Scan-Signature: f63ec78c36006dbd9f08cecca336b949 Cc: Simon Wunderlich Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: explain the weird TTL for ICMP packets 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: Sun, 30 Oct 2011 15:40:50 -0000 A comment may clear this up ... Reported-by: Sven Eckelmann Signed-off-by: Simon Wunderlich NAcked-by: Sven Eckelmann --- icmp_socket.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/icmp_socket.c b/icmp_socket.c index ac3520e..7b832d2 100644 --- a/icmp_socket.c +++ b/icmp_socket.c @@ -216,6 +216,8 @@ static ssize_t bat_socket_write(struct file *file, const char __user *buff, icmp_packet->uid = socket_client->index; if (icmp_packet->version != COMPAT_VERSION) { + /* report the kernel modules COMPAT_VERSION through the ttl + * field if it differs from the version in the copied packet. */ icmp_packet->msg_type = PARAMETER_PROBLEM; icmp_packet->ttl = COMPAT_VERSION; bat_socket_add_packet(socket_client, icmp_packet, packet_len);