home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / IPIFCONS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  3.2 KB  |  67 lines

  1. /*++
  2.  
  3. Copyright (c) 1995 - 1997 Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     ipifcons.h
  8.  
  9. Abstract:
  10.     Constants needed for the Interface Object
  11.  
  12. --*/
  13.  
  14. #ifndef __ROUTING_IPIFCONS_H__
  15. #pragma option push -b -a8 -pc -A- /*P_O_Push_S*/
  16. #define __ROUTING_IPIFCONS_H__
  17.  
  18. #define MIB_IF_TYPE_OTHER               1
  19. #define MIB_IF_TYPE_ETHERNET            6
  20. #define MIB_IF_TYPE_TOKENRING           9
  21. #define MIB_IF_TYPE_FDDI                15
  22. #define MIB_IF_TYPE_PPP                 23
  23. #define MIB_IF_TYPE_LOOPBACK            24
  24. #define MIB_IF_TYPE_SLIP                28
  25.  
  26. #define MIB_IF_ADMIN_STATUS_UP          1
  27. #define MIB_IF_ADMIN_STATUS_DOWN        2
  28. #define MIB_IF_ADMIN_STATUS_TESTING     3
  29.  
  30. //////////////////////////////////////////////////////////////////////////////
  31. //                                                                          //
  32. // The following are the the operational states for WAN and LAN interfaces. //
  33. // The order of the states seems weird, but is done for a purpose. All      //
  34. // states >= CONNECTED can transmit data right away. States >= DISCONNECTED //
  35. // can tx data but some set up might be needed. States < DISCONNECTED can   //
  36. // not transmit data.                                                       //
  37. // A card is marked UNREACHABLE if DIM calls InterfaceUnreachable for       //
  38. // reasons other than failure to connect.                                   //
  39. //                                                                          //
  40. // NON_OPERATIONAL -- Valid for LAN Interfaces. Means the card is not       //
  41. //                      working or not plugged in or has no address.        //
  42. // UNREACHABLE     -- Valid for WAN Interfaces. Means the remote site is    //
  43. //                      not reachable at this time.                         //
  44. // DISCONNECTED    -- Valid for WAN Interfaces. Means the remote site is    //
  45. //                      not connected at this time.                         //
  46. // CONNECTING      -- Valid for WAN Interfaces. Means a connection attempt  //
  47. //                      has been initiated to the remote site.              //
  48. // CONNECTED       -- Valid for WAN Interfaces. Means the remote site is    //
  49. //                      connected.                                          //
  50. // OPERATIONAL     -- Valid for LAN Interfaces. Means the card is plugged   //
  51. //                      in and working.                                     //
  52. //                                                                          //
  53. // It is the users duty to convert these values to MIB-II values if they    //
  54. // are to be used by a subagent                                             //
  55. //                                                                          //
  56. //////////////////////////////////////////////////////////////////////////////
  57.  
  58. #define MIB_IF_OPER_STATUS_NON_OPERATIONAL      0
  59. #define MIB_IF_OPER_STATUS_UNREACHABLE          1
  60. #define MIB_IF_OPER_STATUS_DISCONNECTED         2
  61. #define MIB_IF_OPER_STATUS_CONNECTING           3
  62. #define MIB_IF_OPER_STATUS_CONNECTED            4
  63. #define MIB_IF_OPER_STATUS_OPERATIONAL          5
  64.  
  65. #pragma option pop /*P_O_Pop*/
  66. #endif //__ROUTING_IPIFCONS_H__
  67.