* include/ipifcons.h: New header file.

* include/iprtrmib.h: Move operational states to ipifcons.h.
        * include/iphlpapi.h: Add missing parameters to GetIfTable()
        declaration.
This commit is contained in:
Corinna Vinschen 2000-10-01 20:09:53 +00:00
parent d6ced52274
commit a86ea17b8a
4 changed files with 31 additions and 7 deletions

View File

@ -1,3 +1,10 @@
Sun Oct 1 22:09:00 2000 Corinna Vinschen <corinna@vinschen.de>
* include/ipifcons.h: New header file.
* include/iprtrmib.h: Move operational states to ipifcons.h.
* include/iphlpapi.h: Add missing parameters to GetIfTable()
declaration.
Sun Oct 1 16:30:00 2000 Corinna Vinschen <corinna@vinschen.de>
* include/iprtrmib.h: Add missing MIB_IF_OPER_STATUS_xxx definitions.

View File

@ -15,7 +15,7 @@ DWORD WINAPI GetBestRoute(DWORD,DWORD,PMIB_IPFORWARDROW);
DWORD WINAPI GetFriendlyIfIndex(DWORD);
DWORD WINAPI GetIcmpStatistics(PMIB_ICMP);
DWORD WINAPI GetIfEntry(PMIB_IFROW);
DWORD WINAPI GetIfTable(PMIB_IFTABLE);
DWORD WINAPI GetIfTable(PMIB_IFTABLE,PULONG,BOOL);
DWORD WINAPI GetInterfaceInfo(PIP_INTERFACE_INFO,PULONG);
DWORD WINAPI GetIpAddrTable(PMIB_IPADDRTABLE,PULONG,BOOL);
DWORD WINAPI GetIpForwardTable(PMIB_IPFORWARDTABLE,PULONG,BOOL);

View File

@ -0,0 +1,23 @@
#ifndef _IPIFCONS_H_
#define _IPIFCONS_H_
#define MIB_IF_ADMIN_STATUS_UP 1
#define MIB_IF_ADMIN_STATUS_DOWN 2
#define MIB_IF_ADMIN_STATUS_TESTING 3
#define MIB_IF_OPER_STATUS_NON_OPERATIONAL 0
#define MIB_IF_OPER_STATUS_UNREACHABLE 1
#define MIB_IF_OPER_STATUS_DISCONNECTED 2
#define MIB_IF_OPER_STATUS_CONNECTING 3
#define MIB_IF_OPER_STATUS_CONNECTED 4
#define MIB_IF_OPER_STATUS_OPERATIONAL 5
#define MIB_IF_TYPE_OTHER 1
#define MIB_IF_TYPE_ETHERNET 6
#define MIB_IF_TYPE_TOKENRING 9
#define MIB_IF_TYPE_FDDI 15
#define MIB_IF_TYPE_PPP 23
#define MIB_IF_TYPE_LOOPBACK 24
#define MIB_IF_TYPE_SLIP 28
#endif /* _IPIFCONS_H_ */

View File

@ -14,12 +14,6 @@
#define MAX_INTERFACE_NAME_LEN 256
#endif
#define MIB_IF_OPER_STATUS_NON_OPERATIONAL 0
#define MIB_IF_OPER_STATUS_UNREACHABLE 1
#define MIB_IF_OPER_STATUS_DISCONNECTED 2
#define MIB_IF_OPER_STATUS_CONNECTING 3
#define MIB_IF_OPER_STATUS_CONNECTED 4
#define MIB_IPNET_TYPE_OTHER 1
#define MIB_IPNET_TYPE_INVALID 2
#define MIB_IPNET_TYPE_DYNAMIC 3