netdev
[Top] [All Lists]

Re: ss shows invalid ipv6 addresses

To: Linux Networking Mailing List <netdev@xxxxxxxxxxx>
Subject: Re: ss shows invalid ipv6 addresses
From: Sami Farin <7atbggg02@xxxxxxxxxxxxxx>
Date: Sat, 18 Dec 2004 20:30:45 +0200
In-reply-to: <20041111230054.GD9589@xxxxxxxxxxxxxxx>
Mail-followup-to: Linux Networking Mailing List <netdev@xxxxxxxxxxx>
References: <20041111230054.GD9589@xxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6i
On Fri, Nov 12, 2004 at 01:00:54AM +0200, Sami Farin wrote:
> thttpd does this:
> 00:43:51.115227 bind(4, {sa_family=AF_INET6, sin6_port=htons(80), 
> inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) 
> = 0 <0.000119>
> 
> which results into...
> 
> # ss -l|head -n 2 ; svc -t /service/thttpd ; sleep 2 ; ss -l|head -n 2
> Recv-Q Send-Q           Local Address:Port               Peer Address:Port   
> 0      0      ::fa38:ebe3:fe5f:fb3a:ffa6:b35e:http    
> ::e541:73fb:7f26:747d:b382:4122:*       
> Recv-Q Send-Q           Local Address:Port               Peer Address:Port   
> 0      0      ::81:7111:de4f:c527:81:701d:http    
> ::81:46b5:9313:b133:81:c2cd:*     
> 
> there are some comments about ``Cursed "v4 mapped" addresses''
> in ss.c already ;) but is it possible fix this thing so that ss
> can show some sane addresses for v4 mapped addresses?

Nothing to do with v4 mappeds, it seems.
net/ipv4/tcp_diag.c just doesn't do ipv6_addr_copy() if ipv6
support is as a module.

When I compile ipv6 support directly into kernel, ss works.

ESTAB       0      0              2002:50df:69d0::1:50011     
2001:4118:10:4000::2205:silc    

-- 

<Prev in Thread] Current Thread [Next in Thread>
  • Re: ss shows invalid ipv6 addresses, Sami Farin <=