From nobody@FreeBSD.org  Mon Apr  8 09:33:21 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 6603DAD2
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  8 Apr 2013 09:33:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 56F6CE5F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  8 Apr 2013 09:33:21 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r389XKQx042638
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 8 Apr 2013 09:33:20 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r389XK36042637;
	Mon, 8 Apr 2013 09:33:20 GMT
	(envelope-from nobody)
Message-Id: <201304080933.r389XK36042637@red.freebsd.org>
Date: Mon, 8 Apr 2013 09:33:20 GMT
From: Jean-Jacques Sarton <jj.sarton@web.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: wrong IPv6 link local address reported by getifaddrs()
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         177705
>Category:       kern
>Synopsis:       [libc] wrong IPv6 link local address reported by getifaddrs()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 08 09:40:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Mon Apr 08 16:39:19 UTC 2013
>Originator:     Jean-Jacques Sarton
>Release:        PC-BSD 9.1 ( based on freeBSD 9.1)
>Organization:
-
>Environment:
0.1 RELEASE
>Description:
If getifaddrs() is called we will see for example the following addresses:

fe80:0001:0000:0000:0a00:27ff:fe69:3ee5
0000:0000:0000:0000:0000:0000:0000:0001
fe80:0003:0000:0000:0000:0000:0000:0001

The first and last addresses are wrong, the 4. byte don't contain 0 as expected.
The value 1 or 3 correspond to the scope id as reported by ifconfig
>How-To-Repeat:
use a little program using getifaddrs and print out the IPv6 addresses.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
