Hi there Joe, A request - please don't crosspost across multiple Android lists. That means people get multiple copies of your mail, and it gets a bit annoying in the end. Please just pick the most relevant list.
To answer your question, I don't know why ifconfig itself isn't working, but I can confirm that the ioctl SIOCGIFCONF works fine on Android (at least for WLAN connections on 1.5 emulator and ADP1). I assume this is what ifconfig uses to print its information, so it should be possible just to compile a new version of something like ifconfig to report this. Or, if you search, you can find various example programmes using exactly that ioctl to print a list of interfaces and IP addresses. Regards Adrian On 7 Mar 2009, at 08:50, Joe Petruchi wrote: > Is the if config command working in Android emulator or target ? > > When i type ifconfig inside the shell of the emulator using adb it > doesnot show any network Interface ? > > My Android based phone also doesnot shows any output for ifconfig > eventhough it has a GPRS connection over which it sends and receives > data for browser application ? > > Does anybody knows why the ifconfig command is not working or is > there any alternate method to know the network interfaces and their > IP address ? > > Thanks > Joe > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" 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-framework?hl=en -~----------~----~----~----~------~----~------~--~---
