NetBSD Problem Report #23907
Received: (qmail 16507 invoked by uid 605); 28 Dec 2003 09:36:56 -0000
Message-Id: <20031228093655.8F4FD11153@narn.netbsd.org>
Date: Sun, 28 Dec 2003 09:36:55 +0000 (UTC)
From: popo@sfc.wide.ad.jp
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: popo@sfc.wide.ad.jp
To: gnats-bugs@gnats.NetBSD.org
Subject: netinet6/icmp6.c refers hostnamelen which is not properly set
X-Send-Pr-Version: www-1.0
>Number: 23907
>Category: kern
>Synopsis: netinet6/icmp6.c refers hostnamelen which is not properly set
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 28 09:37:00 +0000 2003
>Closed-Date: Sun Dec 28 14:42:02 +0000 2003
>Last-Modified: Sun Dec 28 14:42:02 +0000 2003
>Originator: Keijiro Ehara
>Release: NetBSD 1.6ZG
>Organization:
>Environment:
NetBSD rg-gate1.sfc.wide.ad.jp 1.6ZG NetBSD 1.6ZG (PE2650.MP) #13: Sun Dec 28 18:03:09 JST 2003 popo@rg-gate1.sfc.wide.ad.jp:/sys/arch/i386/compile/PE2650.MP i386
>Description:
With new sysctl infrastracture, hostnamelen stored in the kernel is
no longer properly set. Some kernel functions still refers this. In my
case, ni6_nametodns is called with zero hostnamelen, so this node
sends ICMP6_WRUREPLY with hostname "".
>How-To-Repeat:
ping6 -w ff02::1%lo0
>Fix:
#define hostnamelen strlen(hostname)
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/23907 CVS commit: src/sys/kern
Date: Sun, 28 Dec 2003 14:39:36 +0000 (UTC)
Module Name: src
Committed By: martin
Date: Sun Dec 28 14:39:36 UTC 2003
Modified Files:
src/sys/kern: init_sysctl.c
Log Message:
After changing hostname, adjust hostnamelen.
This closes PR kern/23907.
To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 src/sys/kern/init_sysctl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: martin
State-Changed-When: Sun Dec 28 14:41:38 UTC 2003
State-Changed-Why:
Fixed, thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.