From patchwork Sun Oct 30 21:27:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 1301 Return-Path: Received: from nm2.bullet.mail.ukl.yahoo.com (nm2.bullet.mail.ukl.yahoo.com [217.146.183.219]) by open-mesh.org (Postfix) with SMTP id BFB5E60066D for ; Sun, 30 Oct 2011 22:27:31 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@yahoo.de; dkim-adsp=none Received: from [217.146.183.208] by nm2.bullet.mail.ukl.yahoo.com with NNFMP; 30 Oct 2011 21:27:31 -0000 Received: from [77.238.184.72] by tm1.bullet.mail.ukl.yahoo.com with NNFMP; 30 Oct 2011 21:27:31 -0000 Received: from [127.0.0.1] by smtp141.mail.ukl.yahoo.com with NNFMP; 30 Oct 2011 21:27:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1320010051; bh=+eG3WN1ksduW8wBry/G/MrpZZPWk5JG4NWKJnYscjAY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=r7HTwjX/xy4nj8j0XXVcnXjqRg7KdAcl8Lgj5k/bd4UHNcozrahd6vSVX7U0k/iG0Rkxe7XJxIjsjJNssneGphHfFEwe/R2kbgsZhixtDGl+FXo92/KPtDrbNYqeuj0LyUDQr2PvSw+aUGNlSDgJ9irJvaq4GdUiWHIiH5KIDII= X-Yahoo-Newman-Id: 271536.63391.bm@smtp141.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 1O3jzjwVM1nwzw6FTAJxXcn66ujHdB2CTPcrMoC7W6Rxwzk T4KhcGBbz8lFlw0Wrj2OnmsdV2T7J6WfBBE1FPn3Lnm1kvMNZhDuBYouKZNP 9_RO9OCKDGdZPU1dbB5Y9YWe6Nzr_Mof4t.kOIS5ppkauBEoGNNLk5nPK4HD 9ie5kLz7xsHjgXRYaFiG0m2zBgfFN0RdGoeAuCDxUe17_ROYKiPLgXryT8qp _xNCG.jI.DuFYyY3jxzpuA2HRdgD6jiM5Iw6NNf25Ob6MsYkBGuxpFO5hoi8 62HXRwFdKiDb4Mr97rVBy88KqJHgA7WCSp5Hslx4a47CziVWhgecIKy3smtB GqxqIS2.MZaI2aTJIKM7TEbck..nbzKZKY3U4Nx3xPhyl3gpU X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- Received: from localhost (lindner_marek@78.46.248.235 with plain) by smtp141.mail.ukl.yahoo.com with SMTP; 30 Oct 2011 21:27:29 +0000 GMT From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Sun, 30 Oct 2011 22:27:21 +0100 Message-Id: <1320010041-29605-1-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.5.4 Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: report compat_version in version field in case of version mismatch 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 21:27:32 -0000 Reported-by: Sven Eckelmann Signed-off-by: Marek Lindner --- icmp_socket.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/icmp_socket.c b/icmp_socket.c index ac3520e..defd692 100644 --- a/icmp_socket.c +++ b/icmp_socket.c @@ -217,7 +217,7 @@ static ssize_t bat_socket_write(struct file *file, const char __user *buff, if (icmp_packet->version != COMPAT_VERSION) { icmp_packet->msg_type = PARAMETER_PROBLEM; - icmp_packet->ttl = COMPAT_VERSION; + icmp_packet->version = COMPAT_VERSION; bat_socket_add_packet(socket_client, icmp_packet, packet_len); goto free_skb; }