AhmedElsagher / android-os-monitor

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

IPV6 addresses are sometimes not shown due to a parsing error of /proc/%d/net/if_inet6 #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get an IPv6 address assigned
2.
3.

What is the expected output? What do you see instead?
IPV6 addresses are sometimes not shown.

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

Please provide any additional information below.
Suggested solution: in network.c:if_dump()
replace: n = fscanf(pnd, "%8X%8X%8X%8X %*d %x %*d %*d %s", 
with: n = fscanf(pnd, "%8X%8X%8X%8X %*x %x %*x %*x %s", 
Reason: if one of the %*d fields is hex: netmask and/or hostname will be 
wrongly parsed

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

GoogleCodeExporter commented 8 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:44

GoogleCodeExporter commented 8 years ago
I has modified the code on the latest beta version, it is starting to test. 
Thanks!!

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