kiranvizru / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Remote ip6 addresses are not converted correctly. #267

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call get_connections() on a process object on MacOS.
2. On one of the resulting connections (which has to be IPv6) get the 
remote_address attribute.

What is the expected output?

The IP6 address as a string.

What do you see instead?

The encoded IP6 address.

What version of psutil are you using? What Python version?

psutil 0.4.1

On what operating system? Is it 32bit or 64bit version?

MacOS

Please provide any additional information below.

I have attached a patch that should fix this issue.

Original issue reported on code.google.com by amo...@google.com on 25 May 2012 at 1:12

Attachments:

GoogleCodeExporter commented 9 years ago
Can you regenerate the patch by using "svn diff" command?
It's not clear to me what "!" represents.
Also, what do you mean by "encoded IP6 address"? Is it a string? Can you paste 
it?

Original comment by g.rodola on 25 May 2012 at 1:17

GoogleCodeExporter commented 9 years ago
Sure, new patch attached. It's just a typo - it uses lip (local ip) twice 
instead of lip and rip.

The report is actually wrong, I thought it's the address in binary 
representation but it's actually uninitialized stack contents that are returned.

Original comment by amo...@google.com on 25 May 2012 at 1:28

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, fixed in r1310.

Original comment by g.rodola on 25 May 2012 at 1:47

GoogleCodeExporter commented 9 years ago
0.5.0 is finally out. Closing out as fixed.

Original comment by g.rodola on 27 Jun 2012 at 6:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Updated csets after the SVN -> Mercurial migration:
r1310 == revision d768d4de259b

Original comment by g.rodola on 2 Mar 2013 at 12:08