netdev
[Top] [All Lists]

ss shows invalid ipv6 addresses

To: Linux Networking Mailing List <netdev@xxxxxxxxxxx>
Subject: ss shows invalid ipv6 addresses
From: Sami Farin <safari-kernel@xxxxxxxxxxxxx>
Date: Fri, 12 Nov 2004 01:00:54 +0200
Mail-followup-to: Linux Networking Mailing List <netdev@xxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6i
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?

-- 


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