Is IPv6 over the wifi interface supported in the SDK?

by Michael Newton » Wed, 21 Apr 2010 11:32:03 GMT


Sponsored Links
 I'm hearing that IPv6 is supported by android, at least over the wifi
interface, but I cannot do anything with IPv6 through the SDK at all.
I am running Android 2.1 on an N1.

I can see that at the OS level, the wifi interface has a link local
inet6 address:

ufo:~ newton$ adb shell
$ cat /proc/net/if_inet6
00000000000000000000000000000001 01 80 10 80       lo
fe80000000000000022376fffe8d1e63 0c 40 20 80     eth0

... although ifconfig does not show it:

$ ifconfig eth0
eth0: ip 192.168.1.2 mask 255.255.255.0 flags [up broadcast running
multicast]

If in Java I call getInetAddresses on a java.net.NetworkInterface, I
only get the inet4 address.

As I'd expect from the above, I cannot connect via any Java APIs to
another link local IPv6 host on the same wifi lan

Depending on my approach I get "socket level is invalid", a bad socket
options error, host unreachable, or timeouts. Has anyone seen this
work or have any insight?

thanks
M.

--



Other Threads

1. sending c2dm: java.security.cert.CertificateException: No subject alternative DNS name matching android.apis.google.com found.

I appreciate if you kindly take a quick look of my issue of sending a C2DM
to android emulator. Now,  I am getting the following error:

java.security.cert.CertificateException: No subject alternative DNS name
matching android.apis.google.com found.

I think it might be related to:  "Header with a
ClientLogin<http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html>
Auth
token"?  I am not sure if I interpret the doc correctly?

The following are the data I got:
The response from ClientLogin:
SID=DQAAAJoAAABXme_JJsvfqYdKjD24edExH2biEinIybvxiO_eO1nuCtbUD3UuplqPcW-9ilwNnjO5yF1MUA5VrhApiNGER1sr_Cu0XyRdGvV7gv_3RytrgY35ziEyyqBy9452tQIsUJI_eJupIel53V6x6xtTS1_bxaO5vMvTxK_IOWabzKKp8kPYRSpyx315QUpyTxt9RalfzqkySjFDBMHYmtcR5jxL
LSID=DQAAAJ0AAAAohb7t7TRUOZRUBxSKe1cQsmXLfJBFjjXknKJCZVXce3lALKGKmfNLU3xAoiTJ0YC7gdZY-dnRVVsW5yMArtx4KPrS2g2hUfS2wJ5LlI8Elzb3yK23ZMr73VM_3OJ4mX_SqBtgA9bFOAw8Nga7Q2dwHFgxD5dKNvhlrW6bgUQbnBi7xvCRzfS4JODiJP62qiD2-JcZFZc37WRtnugPnseb
*
Auth=DQAAAJ0AAACbxXfajOAka6Wwq4WZCBMu8FFHLladf42XG5ADHqgVDPIxR9U4zPfVlEgVu86-iF2lp1Vx5OLh0dT7K2oIgFca6GIg9tumOr5XCMlMNfNg05rs6Mjk1pYPqbSp9LJyCkU_Z8LWbHQj3S9swJ1_QAJfihZfHvCGX7IB726vW3y20s60vXkrY1T9FnKz1V1xjaweZHnJAznrLqFjVrGdXOwV
*

The first error I got was from: connection.setRequestProperty("Authorization:
GoogleLogin auth", authToken);  // the key seems strange? is it correct?

Illegal character(s) in message header value:
DQAAAJ0AAACbxXfajOAka6Wwq4WZCBMu8FFHLladf42XG5ADHqgVDPIxR9U4zPfVlEgVu86-iF2lp1Vx5OLh0dT7K2oIgFca6GIg9tumOr5XCMlMNfNg05rs6Mjk1pYPqbSp9LJyCkU_Z8LWbHQj3S9swJ1_QAJfihZfHvCGX7IB726vW3y20s60vXkrY1T9FnKz1V1xjaweZHnJAznrLqFjVrGdXOwV

After examing the content of authToken, it has a carriage return in the end.
 I just trim it to to by pass this error, is that the right way, or
something wrong aleady?

Then, I am getting
java.security.cert.CertificateException: No subject alternative DNS name
matching android.apis.google.com found.

Any suggestion or pointer?

Thanks in advance.
Sean

-- 

2. AT&T free Q/A session on Android

The AT&T Developer Program will host a free Q/A session on Anroid
tomorrow Sep 21st at 10am PDT.

Register here http://bit.ly/cbfeTd

-- 

3. projecting the Android screen

4. EditText bug in Froyo?

5. Better Dev Tools

6. How to make a 2-dimension image gallery with both horizontal and vertical scrolling?

7. SyncManager questions -- network connectivity