Bug 637490

Summary: netstat -anT truncates ipv6 Adresses
Product: [openSUSE] openSUSE 11.3 Reporter: Uli Iske <hellweiss>
Component: NetworkAssignee: Marcus Schaefer <ms>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: ast, kukuk, meissner, mt, plinnell
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.3   
Whiteboard: maint:released:sle11-sp1:44411
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Deadline: 2011-12-29   
Attachments: Patch fixing the issue

Description Uli Iske 2010-09-07 11:28:32 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

netstat -anT truncates Foreign ipv6 Address, local Address is displayed correctly.

tcp        0      0 xxxx:xxxx:xxxx:1000:10:1:0:70:22 xxxx:xxxx:xxxx:11:57246 VERBUNDEN

net-tools 1.60
netstat 1.42 (2001-04-15)


Reproducible: Always

Steps to Reproduce:
1. ssh -6 user@host
2. netstat -anT

Actual Results:  
see above

Expected Results:  
tcp        0      0 xxxx:xxxx:xxxx:1000:10:1:0:70:22 xxxx:xxxx:xxxx:1120:10:1:0:20:57246 VERBUNDEN
Comment 3 Marius Tomaschewski 2011-02-15 11:45:05 UTC
Created attachment 414117 [details]
Patch fixing the issue

Test package that contains this fix will appear at:

http://download.opensuse.org/repositories/home:/mtomaschewski:/branches:/network:/utilities/openSUSE_11.3

and submitted to network:utilities in request 61238.
Comment 4 Marius Tomaschewski 2011-02-15 11:55:23 UTC
Mr. Maintenance & Co,

netstat does not trim the local IPv6 address when -T is given, the above
simple patch fixes it to not trim the remote / foreign IPv6 address too.

Affected are all distributions, currently inclusive of Factory and SLES.
[IMO quite important, because netstat is the standard tool to look at
 the current connection list... As workaround "lsof -ni" can be used.]

Back to maintainer to handle the updates.
Comment 5 Marius Tomaschewski 2011-02-15 11:56:17 UTC
Ahm... question is of course: where do we provide updates?
Comment 6 P Linnell 2011-02-15 12:09:53 UTC
The update should be SR'd from network:utilties > opensuse 11.3 test 

http://en.opensuse.org/Portal:Maintenance 

osc mbranch helps to setup the correct repos. 

I've approved the SR and forwarded it to factory.
Comment 7 Marius Tomaschewski 2011-02-15 12:42:59 UTC
(In reply to comment #6)
> The update should be SR'd from network:utilties > opensuse 11.3 test 
>
> http://en.opensuse.org/Portal:Maintenance

Sure, but currently there is no decision from maintenance team if
(and when) there will be an update or not.

> osc mbranch helps to setup the correct repos. 
> 
> I've approved the SR and forwarded it to factory.

I've intentionally submitted it to network:utilities only [even I could
commit it there directly] to let the maintainer a chance to review it...
Comment 8 Marius Tomaschewski 2011-02-15 12:51:32 UTC
Uli,

the package is in network:utilities now -- can you test if it works
for you as well?

http://download.opensuse.org/repositories/network:/utilities/openSUSE_11.3/x86_64/net-tools-1.60-768.1.x86_64.rpm
Comment 9 Marcus Schaefer 2011-02-15 13:21:50 UTC
the patch looks good to me. So a factory SR has already been done according
to comment #6. I have added the patch to the SLE11-SP1 code base and created
SR 10678 for it

as this is not an L3 I'm not going to submit to SLE10/11 GA. openSUSE can
live with the version in network:utilities.

For me there is only one outstanding point which is SLE10-SP4
unfortunately the trim flag is missing in that code base. Marius should
we back port the flag_trim in the sle10 code base ?
Comment 10 Marcus Meissner 2011-02-15 13:25:29 UTC
should be fixed for opensuse I think +1

(SLE is decided by maint-coord at suse.de )
Comment 11 Marius Tomaschewski 2011-02-17 08:42:28 UTC
(In reply to comment #9)
> Marius should we back port the flag_trim in the sle10 code base ?

I think so. Maintenance Team, Thorsten - what about sles?
Comment 12 Marius Tomaschewski 2011-02-17 08:57:59 UTC
It is just about to apply both patches exactly as on sle11 / 11.x:

  net-tools-1.60-notrim.diff
  net-tools-1.60-dont-trim-foreign-addr6.diff

I've applied them in
  $IBS/home:mtomaschewski:branches:SUSE:SLE-10-SP4:Update:Test

Currently untested.
Comment 15 Uli Iske 2011-02-25 09:03:49 UTC
(In reply to comment #8)
> Uli,
> 
> the package is in network:utilities now -- can you test if it works
> for you as well?
> 
> http://download.opensuse.org/repositories/network:/utilities/openSUSE_11.3/x86_64/net-tools-1.60-768.1.x86_64.rpm

Hi

net-tools-1.60-771.1.x86_64.rpm works for me.

Thank you.
Comment 16 Swamp Workflow Management 2011-12-01 09:06:53 UTC
The SWAMPID for this issue is 44399.
This issue was rated as low.
Please submit fixed packages until 2011-12-29.
Also create a patchinfo file using this link:
https://swamp.suse.de/webswamp/wf/44399
Comment 17 Swamp Workflow Management 2011-12-19 12:10:06 UTC
Update released for: net-tools, net-tools-debuginfo, net-tools-debugsource
Products:
SLE-DEBUGINFO 11-SP1 (i386, ia64, ppc64, s390x, x86_64)
SLE-DESKTOP 11-SP1 (i386, x86_64)
SLE-SERVER 11-SP1 (i386, ia64, ppc64, s390x, x86_64)
SLE-SERVER 11-SP1-TERADATA (x86_64)
SLES4VMWARE 11-SP1 (i386, x86_64)