home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / ipifcons.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  3KB  |  65 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. #define __ROUTING_IPIFCONS_H__
  16.  
  17. #define MIB_IF_TYPE_OTHER               1
  18. #define MIB_IF_TYPE_ETHERNET            6
  19. #define MIB_IF_TYPE_TOKENRING           9
  20. #define MIB_IF_TYPE_FDDI                15
  21. #define MIB_IF_TYPE_PPP                 23
  22. #define MIB_IF_TYPE_LOOPBACK            24
  23. #define MIB_IF_TYPE_SLIP                28
  24.  
  25. #define MIB_IF_ADMIN_STATUS_UP          1
  26. #define MIB_IF_ADMIN_STATUS_DOWN        2
  27. #define MIB_IF_ADMIN_STATUS_TESTING     3
  28.  
  29. //////////////////////////////////////////////////////////////////////////////
  30. //                                                                          //
  31. // The following are the the operational states for WAN and LAN interfaces. //
  32. // The order of the states seems weird, but is done for a purpose. All      //
  33. // states >= CONNECTED can transmit data right away. States >= DISCONNECTED //
  34. // can tx data but some set up might be needed. States < DISCONNECTED can   //
  35. // not transmit data.                                                       //
  36. // A card is marked UNREACHABLE if DIM calls InterfaceUnreachable for       //
  37. // reasons other than failure to connect.                                   //
  38. //                                                                          //
  39. // NON_OPERATIONAL -- Valid for LAN Interfaces. Means the card is not       //
  40. //                      working or not plugged in or has no address.        //
  41. // UNREACHABLE     -- Valid for WAN Interfaces. Means the remote site is    //
  42. //                      not reachable at this time.                         //
  43. // DISCONNECTED    -- Valid for WAN Interfaces. Means the remote site is    //
  44. //                      not connected at this time.                         //
  45. // CONNECTING      -- Valid for WAN Interfaces. Means a connection attempt  //
  46. //                      has been initiated to the remote site.              //
  47. // CONNECTED       -- Valid for WAN Interfaces. Means the remote site is    //
  48. //                      connected.                                          //
  49. // OPERATIONAL     -- Valid for LAN Interfaces. Means the card is plugged   //
  50. //                      in and working.                                     //
  51. //                                                                          //
  52. // It is the users duty to convert these values to MIB-II values if they    //
  53. // are to be used by a subagent                                             //
  54. //                                                                          //
  55. //////////////////////////////////////////////////////////////////////////////
  56.  
  57. #define MIB_IF_OPER_STATUS_NON_OPERATIONAL      0
  58. #define MIB_IF_OPER_STATUS_UNREACHABLE          1
  59. #define MIB_IF_OPER_STATUS_DISCONNECTED         2
  60. #define MIB_IF_OPER_STATUS_CONNECTING           3
  61. #define MIB_IF_OPER_STATUS_CONNECTED            4
  62. #define MIB_IF_OPER_STATUS_OPERATIONAL          5
  63.  
  64. #endif //__ROUTING_IPIFCONS_H__
  65.