Your message dated Sat, 21 May 2005 17:24:10 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#279864: Debian radvd Bug #279864
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Nov 2004 13:32:33 +0000
>From [EMAIL PROTECTED] Fri Nov 05 05:32:33 2004
Return-path: <[EMAIL PROTECTED]>
Received: from p5081db5e.dip.t-dialin.net (deus.lan) [80.129.219.94] (mail)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1CQ4Cf-0002HY-00; Fri, 05 Nov 2004 05:32:33 -0800
Received: from reboot by deus.lan with local (Exim 3.35 #1 (Debian))
id 1CQ4CV-000669-00; Fri, 05 Nov 2004 14:32:23 +0100
From: <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: radvd: Parsing of /proc/net/if_inet6 not working correctly
X-Mailer: reportbug 1.50
Date: Fri, 05 Nov 2004 14:32:23 +0100
Message-Id: <[EMAIL PROTECTED]>
Sender: <[EMAIL PROTECTED]>
X-BadReturnPath: [EMAIL PROTECTED] rewritten as [EMAIL PROTECTED]
using "From" header
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.4 required=4.0 tests=BAYES_00,HAS_PACKAGE,
NO_REAL_NAME autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
Package: radvd
Version: 1:0.7.2-6
Severity: normal
Tags: patch
radvd was not working for me and all the debug output only showed
"sendmsg: invalig argument". I did some investigation on the problem in
the source and found out that the local link address for the device is
not correct. For some reason the str_addr in setup_linklocal_addr()
only contained the last 9 characters of the address string in
/proc/net/if_inet6. I modified the code to use fgets() and sscanf()
instead of fscanf() and it worked.
Here is the patch:
--- device-linux.c.orig Thu Jul 11 23:23:10 2002
+++ device-linux.c Fri Nov 5 14:14:16 2004
@@ -109,7 +109,7 @@
FILE *fp;
char str_addr[40];
unsigned int plen, scope, dad_status, if_idx;
- char devname[IFNAMSIZ];
+ char buf[256], devname[IFNAMSIZ];
if ((fp = fopen(PATH_PROC_NET_IF_INET6, "r")) == NULL)
{
@@ -118,9 +118,9 @@
return (-1);
}
- while (fscanf(fp, "%32s %02x %02x %02x %02x %15s\n",
+ while ((fgets(buf, sizeof(buf), fp) != NULL) && sscanf(buf, "%32s %02x
%02x %02x %02x %15s\n",
str_addr, &if_idx, &plen, &scope, &dad_status,
- devname) != EOF)
+ devname) != 0)
{
if (scope == IPV6_ADDR_LINKLOCAL &&
strcmp(devname, iface->Name) == 0)
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux deus 2.4.26 #21 Tue May 11 14:36:27 CEST 2004 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages radvd depends on:
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an
---------------------------------------
Received: (at 279864-done) by bugs.debian.org; 21 May 2005 15:25:11 +0000
>From [EMAIL PROTECTED] Sat May 21 08:25:11 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mail.gmx.de (mail.gmx.net) [213.165.64.20]
by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
id 1DZVqh-0004ZF-00; Sat, 21 May 2005 08:25:11 -0700
Received: (qmail invoked by alias); 21 May 2005 15:24:39 -0000
Received: from chello080109053157.14.14.univie.teleweb.at (EHLO garibaldi)
[80.109.53.157]
by mail.gmx.net (mp026) with SMTP; 21 May 2005 17:24:39 +0200
X-Authenticated: #3102804
Received: from ivanova.rhinosaur.lan ([192.168.1.9]:32887)
by garibaldi with esmtp (Exim 4.50)
id 1DZVoG-0007Di-Ck; Sat, 21 May 2005 17:23:01 +0200
Received: from andy by ivanova.rhinosaur.lan with local (Exim 4.50)
id 1DZVpi-0005Zv-7K; Sat, 21 May 2005 17:24:10 +0200
To: Christoph Hohmann <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: Bug#279864: Debian radvd Bug #279864
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
From: Andreas Rottmann <[EMAIL PROTECTED]>
Date: Sat, 21 May 2005 17:24:10 +0200
In-Reply-To: <[EMAIL PROTECTED]> (Christoph Hohmann's message of "Sat,
21 May 2005 15:11:19 +0200")
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.6 (----)
X-Y-GMX-Trusted: 0
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.3 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
SUBJ_HAS_UNIQ_ID autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Christoph Hohmann <[EMAIL PROTECTED]> writes:
> Andreas Rottmann wrote
>
>> There is now a comment of the maintainer; please provide the
>> additional information he requested, if you can.
>
> I tried the original code again and it is working now. I don't know why
> it was not working before.
>
Ok, im closing this bug now.
Rotty
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]