sipxportlib  Version 3.3
WIndowsAdapterInfo.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _WINDOWSADAPTERINFO_H
13 #define _WINDOWSADAPTERINFO_H
14 
15 #define MAX_ADAPTERS 20 //if you have more than 20 adapters, something is wrong with you. :)
16 
17 #ifndef MAX_ADAPTER_NAME_LENGTH
18  #define MAX_ADAPTER_NAME_LENGTH 256
19 #endif
20 
21 typedef struct _AdapterInfo
22 {
23  char AdapterName[MAX_ADAPTER_NAME_LENGTH + 4]; //long adapter name
24  char IpAddress[40]; //ip address of adapter
25  BYTE MacAddress[MAX_ADAPTER_NAME_LENGTH]; //mac address of adapter
27 
28 #ifdef WIN32
29 
30 
31 //FUNCTIONS
32 
33  //pass in amac address and get out the current ip address assigned to it
34  extern int lookupIpAddressByMacAddress(char *mac_address, char *ipaddress);
35 
36  //initializes internal adapter structure
37  extern int getAdaptersInfo();
38 
39  extern int getWindowsDomainName(char *domain_name);
40 
41 
42 #endif //WIN32
43 
44 #endif //_WINDOWSADAPTERINFO_H
char AdapterName[MAX_ADAPTER_NAME_LENGTH+4]
Definition: WIndowsAdapterInfo.h:23
char IpAddress[40]
Definition: WIndowsAdapterInfo.h:24
struct _AdapterInfo AdapterInfoRec
BYTE MacAddress[MAX_ADAPTER_NAME_LENGTH]
Definition: WIndowsAdapterInfo.h:25
Definition: WIndowsAdapterInfo.h:21
struct _AdapterInfo * pAdapterInfoRec
#define MAX_ADAPTER_NAME_LENGTH
Definition: WIndowsAdapterInfo.h:18