Home
last modified time | relevance | path

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

/external/ms-tpm-20-ref/Samples/TPMCmd-DeviceID/Platform/src/
DEPS.c78 int inetSocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP); in GetMacAddress() local
79 if (inetSocket == -1) in GetMacAddress()
86 if((ioctl(inetSocket, SIOCGIFCONF, &interfaceConfiguration)) == -1) in GetMacAddress()
88 close(inetSocket); in GetMacAddress()
100 if (ioctl(inetSocket, SIOCGIFFLAGS, &interfaceRequest) == 0) in GetMacAddress()
105 if (ioctl(inetSocket, SIOCGIFHWADDR, &interfaceRequest) == 0) in GetMacAddress()
124 close(inetSocket); in GetMacAddress()