Bug 177705 - [libc] wrong IPv6 link local address reported by getifaddrs()
Summary: [libc] wrong IPv6 link local address reported by getifaddrs()
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-08 10:40 UTC by Jean-Jacques Sarton
Modified: 2017-12-31 22:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Jacques Sarton 2013-04-08 10:40:00 UTC
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.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:34 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped