Home
last modified time | relevance | path

Searched refs:interfaceRequest (Results 1 – 1 of 1) sorted by relevance

/external/ms-tpm-20-ref/Samples/TPMCmd-DeviceID/Platform/src/
DEPS.c74 struct ifreq interfaceRequest = {0}; in GetMacAddress() local
99 strcpy(interfaceRequest.ifr_name, intefaceRequestStart->ifr_name); in GetMacAddress()
100 if (ioctl(inetSocket, SIOCGIFFLAGS, &interfaceRequest) == 0) in GetMacAddress()
103 if ((interfaceRequest.ifr_flags & IFF_LOOPBACK) == 0) in GetMacAddress()
105 if (ioctl(inetSocket, SIOCGIFHWADDR, &interfaceRequest) == 0) in GetMacAddress()
121 memcpy(deviceID.t.buffer, interfaceRequest.ifr_hwaddr.sa_data, size); in GetMacAddress()