Hi Hughes for one case
tests.api.java.net.DatagramSocketTest#test_getLocalAddress case I am getting junit.framework.AssertionFailedError: ANY address not returned correctly (getLocalAddress) with PreferIPv6Addresses=true, preferIPv4Stack=false 0.0.0.0/0.0.0.0:41989. This I tested with preferIPv6Addresses = true. But it fails. because it is returning IPv4 address as mentioned above. If I make preferIPv4Stack=true, then this case is getting pass. It means that my phone does not support IPv6. ? Thanks Gururaja B O On Jun 29, 11:17 pm, Elliott Hughes <[email protected]> wrote: > On Jun 29, 2:45 am, guru <[email protected]> wrote: > > > Hi All > > > In Eclair code base under dalvik/vm/Properties.c I am seeing > > java.net.preferIPv6Addresses set to true. > > With this If i run CTS test cases all related to socket address and > > local address are failing. > > > Is this means that phone is not supporting ipv6? > > hard to be sure without seeing the actual failures but a kernel that > doesn't support IPv6 is probably the most likely cause. > > > If i make java.net.preferIPv4Stack to true all CTS cases are getting > > passed. > > > My understanding from the above is if we want to support IPv6 then we > > have to make it to true. > > it depends what you mean by "support". you can grep through libcore to > see where these properties take effect. > > preferIPv6Addresses basically just affects the sorting of addresses > returned by DNS lookups. if true, they're sorted before IPv4 > addresses; if false, they're sorted after IPv4 addresses. > > preferIPv4Stack doesn't do much on Android, at least not in froyo. > > > In Donut this flag is not set and also > > java.net.preferIPv4Stack. > > IPv6 support gets better with every release. iirc, donut had very > little IPv6 support... > > > I am not getting in Donut code where one of these flags are set and > > when? > > ...and these system properties were not set in donut. (nor do i think > that setting them would do anything useful.) > > --elliott > > > Please redirect me if this is not correct group to ask this question. > > > Thanks > > Gururaja B O -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
