title: How to identify which MAC address is a WIFI MAC address, and which IP is a WIFI IP Address?
body: <p>I have the following the functions:   </p>
  
  <p>This function will get every IP Addresses from the local machine     </p>
  
  <pre><code>void GetIP()
  {
  WORD wVersionRequested;
  WSADATA wsaData;
  char name[ 255 ];
  PHOSTENT hostinfo;
  wVersionRequested = MAKEWORD( 1, 1 );
  char *ip;
  
  if ( WSAStartup( wVersionRequested, &amp;wsaData ) == 0 )
  {
      if( gethostname ( name, sizeof( name ) ) == 0 )
      {
          if ( ( hostinfo = gethostbyname( name ) ) != NULL )
          {
              int nCount = 0;
              while ( hostinfo-&gt;h_addr_list[ nCount ] )
              {
                  ip = inet_ntoa( *(struct in_addr *)hostinfo-&gt;h_addr_list[ nCount ] );
  
                  //printf( "IP #%d: %s\n", ++nCount, ip );
                  printf( "IP                 : %s\n", ip );
                  ++nCount;
              }
          }
      }
  }
  }//GetIP
  </code></pre>
  
  <p>And here is my second function, which will get every MAC Address from the local machine:</p>
  
  <pre><code>void GetMACaddress()
  {
  IP_ADAPTER_INFO AdapterInfo[ 16 ];              // Allocate information for up to 16 NICs
  DWORD dwBufLen = sizeof( AdapterInfo );         // Save the memory size of buffer
  
  DWORD dwStatus = GetAdaptersInfo(               // Call GetAdapterInfo
                                          AdapterInfo,// [out] buffer to receive data
                                          &amp;dwBufLen   // [in] size of receive data buffer
                                      );  
  
      assert( dwStatus == ERROR_SUCCESS );            // Verify return value is valid, no buffer overflow
  
      PIP_ADAPTER_INFO pAdapterInfo = AdapterInfo;    // Contains pointer to current adapter info
  
      do 
      {
          printf( "MAC                : %02X:%02X:%02X:%02X:%02X:%02X\n", pAdapterInfo-&gt;Address[ 0 ], 
                                                                      pAdapterInfo-&gt;Address[ 1 ], 
                                                                      pAdapterInfo-&gt;Address[ 2 ], 
                                                                      pAdapterInfo-&gt;Address[ 3 ], 
                                                                      pAdapterInfo-&gt;Address[ 4 ], 
                                                                      pAdapterInfo-&gt;Address[ 5 ]  );
                      pAdapterInfo = pAdapterInfo-&gt;Next;          // Progress through linked list
  
      }while( pAdapterInfo );                         // Terminate if last adapter
  }//GetMACaddress
  </code></pre>
  
  <p>So my question is:
  How do i know if the queried MAC Address and the queried IP Address belongs to a WiFi?</p>
  
  <p>Thanks!</p>