如何通过C的方式在android NDK下面查找本机的mac地址

日期:2021-07-09 13:18:19 人气:1

如何通过C的方式在android NDK下面查找本机的mac地址

直接上代码
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.ifc_ifcu.ifcu_req
    A+
热门评论