[Toybox] IFCONFIG doubt
Rob Landley
rob at landley.net
Tue Jun 28 04:06:02 PDT 2016
On 06/28/2016 03:45 AM, Ashwini Sharma wrote:
> Hello enh,
>
> Android's original ifconfig was only showing the ip address for
> interface and flags.
>
> Otherwise ifconfig on other platforms gives out lot of other details.
> Does it do so on Android?
What details do you need? I can try to add them.
> I interested in how to get the MAC address at the ndk level. As earlier
> i saw that SIOCGIFHWADDR is not supported.
On bionic, you mean? (It's working fine on ubuntu...)
> Is there a way to get the mac address.
Does /sys/class/net/eth0/address provide it?
> Thanks,
> Ashwini
Rob
More information about the Toybox
mailing list