pandabo1985 / android-os-monitor

Automatically exported from code.google.com/p/android-os-monitor
0 stars 0 forks source link

IPV6 Addresses are sometimes wrongly displayed #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Assign an address where on of the bytes is less the 0xF

What is the expected output? What do you see instead?
One should see a prepended zero. Example address bytes :2002: become :202:

What version of the product are you using? On what operating system?
2.0.5

Please provide any additional information below.
Solution:
in function net_addr2str_ipv6():
change: snprintf(ipv6buf, BUFFERSIZE, "%x%x" ...
to: snprintf(ipv6buf, BUFFERSIZE, "%02x%02x" ...

Original issue reported on code.google.com by vdtick1...@gmail.com on 3 Nov 2011 at 9:14

GoogleCodeExporter commented 9 years ago
Very thanks for you help, I will fix on the next version. :>

PS. I am too busy to maintain it recently, however, I will get some free time 
on December and fix it. :D 

Original comment by eolw...@gmail.com on 5 Nov 2011 at 3:43

GoogleCodeExporter commented 9 years ago
I has modified the method that calls system API to get IPv6 information,  if 
you interest it, I will upload source code to GitHub later. :>

Original comment by eolw...@gmail.com on 28 Apr 2013 at 6:58

GoogleCodeExporter commented 9 years ago

Original comment by eolw...@gmail.com on 8 May 2013 at 3:51