You're trying to find the local address for an interface?  It's not pretty
but how about parsing /proc/net/if_inet6?

Are you sure your IOCTL attempt was with a ipv6 address assigned?  I'd be
surprised if that were failing, but I entered an internal bug to track the
issue.

R


On Thu, Apr 18, 2013 at 11:11 PM, suresh tummala <[email protected]>wrote:

> Hi,
>
>       I have tried the following methods to obtain IPv6 address from
> interfaces like WiFi/3G for android.
>
>
>    - IOCTL query with AF_INET6 socket. But i got IPv4 address only
>    - "getifaddrs" API not supported in Android, not available in NDK
>    - Configuring static IPv6 address, but GUI not allowing IPv6 address to
> configure.
>    - Using "route" command from adb shell, but giving error Invalid
> arguments every time
>
>
>    Let me know is there any other menthod available to query IPv6 address
> in Android.
>
> Regards
> Suresh T.
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to