Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote ip6 addresses are not converted correctly. #267

Closed
giampaolo opened this issue May 23, 2014 · 5 comments
Closed

Remote ip6 addresses are not converted correctly. #267

giampaolo opened this issue May 23, 2014 · 5 comments
Assignees

Comments

@giampaolo
Copy link
Owner

From [email protected] on May 25, 2012 15:12:45

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.

Attachment: psutil.patch

Original issue: http://code.google.com/p/psutil/issues/detail?id=267

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From g.rodola on May 25, 2012 06:17:27

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?

@giampaolo
Copy link
Owner Author

From [email protected] on May 25, 2012 06:28:42

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.

Attachment: osx.patch

@giampaolo
Copy link
Owner Author

From g.rodola on May 25, 2012 06:47:05

Thanks, fixed in r1310 .

Status: FixedInSVN
Labels: OpSys-OSX Milestone-0.5.0

@giampaolo
Copy link
Owner Author

From g.rodola on June 27, 2012 11:54:03

0.5.0 is finally out. Closing out as fixed.

Status: Fixed

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 04:08:03

Updated csets after the SVN -> Mercurial migration: r1310 == revision 
d768d4de259b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant