Sounds right. That C function, getaddrinfo, is IPv6 aware. If the kernel was
compiled without v6 support, it returns an error code, which is then turned
into an exception by the Java networking library.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
12.02.2011 1:03 пользователь "捷超 王" <ee07b...@gmail.com> написал:
> Thank you very much,
>
> The Browser utilizes a class called InetAddress to deal with Internet
> address. The InetAddress class further calls getaddrinfo, which is a
> native method to resolve the URLs. This native method is implemented
> in C and will throw an exception when it is resolving a IPv6 URL when
> the "CONFIG_IPV6" is not set.
>
> On Feb 7, 1:48 am, Kostya Vasilyev <kmans...@gmail.com> wrote:
>>  From the group's description on Google Groups:
>>
>> http://groups.google.com/group/android-developers
>>
>> > Discuss developing Android applications using the Android SDK. Get
>> > help with troubleshooting apps, advice on implementation, and
>> > strategies for improving your app's speed and user experience.
>>
>> The kernel is not a part of the SDK, and rebuilding it is not a part of
>> the process of using the SDK.
>>
>> Those other lists (esp. porting) has subscribers who routinely rebuild
>> the kernel, so you'll have a higher chance of getting a good answer.
>>
>> BTW, the following link:
>>
>> http://download.oracle.com/javase/1.5.0/docs/guide/net/ipv6_guide/ind...
>>
>> says that Java applications don't need to worry about choosing a
>> specific IP version, it's automatic - although I don't know if the
>> browser uses Java for networking.
>>
>> -- Kostya
>>
>> 06.02.2011 20:34, 捷超 王 пишет:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> > OK. Thank you.
>> > But i would like to know, what problems are appropriate to post here?
>>
>> > On Feb 7, 12:04 am, Kostya Vasilyev<kmans...@gmail.com>  wrote:
>> >> Perhaps the browser always recognizes IPv6 addresses, and tries to use
>> >> them?
>>
>> >> If IPv6 is disabled in the kernel, trying to use a v6 socket should
>> >> fail, and hence you can't open a v6 site. Once kernel support is
>> >> enabled, the rest would work automatically.
>>
>> >> You might also want to post your question on a more appropriate list:
>>
>> >>http://groups.google.com/group/android-platform
>>
>> >>http://groups.google.com/group/android-porting
>>
>> >> -- Kostya
>>
>> >> 06.02.2011 18:29, 捷超 王 пишет:
>>
>> >>> Hi, everyone~
>> >>> I have been recently studying on why the Browser in the android OS
>> >>> does not support accessing IPv6 websites through IPv6 URLs.
>> >>> At first, I built the source code with "CONFIG_IPV6" not set and
tried
>> >>> IPv6 URLs in the Browser and the Browser could not access IPv6
>> >>> websites. I then built the source code with "CONFIG_IPV6" set and
>> >>> tried again, the Browser works!
>> >>> But i don't get it. I think the source code of the Browser hasn't
been
>> >>> changed, how it can be that the Browser suddenly support accessing
>> >>> websites through IPv6 URLs...? Is it the new kernel config file
>> >>> introduce some modules to be included in the final iso image so that
>> >>> the Browser which utilizes these modules is able to access websites
>> >>> through IPv6 URLs?
>> >>> I just need a hint, such as what reads the changed kernel config file
>> >>> and contributes to the changed behavior of the Browser.apk.
>> >>> Best wishes and thanks in advance!
>> >> --
>> >> Kostya Vasilyev -- WiFi Manager + pretty widget --
http://kmansoft.wordpress.com
>>
>> --
>> Kostya Vasilyev -- WiFi Manager + pretty widget --
http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to