Subject: kern/23907: netinet6/icmp6.c refers hostnamelen which is not properly set
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <popo@sfc.wide.ad.jp>
List: netbsd-bugs
Date: 12/28/2003 09:36:55
>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 28 09:37:00 UTC 2003
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: