如何通过C的方式在android NDK下面查找本机的mac地址
如何通过C的方式在android NDK下面查找本机的mac地址
日期:2021-09-07 01:06:07 人气:1
bool GetMac(char *pBuffer)
{
struct ifreq *ifr;
struct ifconf ifc;
int s, i;
int numif;
// find number of interfaces.
memset(&ifc, 0, sizeof(ifc));
ifc.i
{
struct ifreq *ifr;
struct ifconf ifc;
int s, i;
int numif;
// find number of interfaces.
memset(&ifc, 0, sizeof(ifc));
ifc.i