oid_def.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*_############################################################################
  2. _##
  3. _## oid_def.h
  4. _##
  5. _## SNMP++v3.2.23
  6. _## -----------------------------------------------
  7. _## Copyright (c) 2001-2007 Jochen Katz, Frank Fock
  8. _##
  9. _## This software is based on SNMP++2.6 from Hewlett Packard:
  10. _##
  11. _## Copyright (c) 1996
  12. _## Hewlett-Packard Company
  13. _##
  14. _## ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
  15. _## Permission to use, copy, modify, distribute and/or sell this software
  16. _## and/or its documentation is hereby granted without fee. User agrees
  17. _## to display the above copyright notice and this license notice in all
  18. _## copies of the software and any documentation of the software. User
  19. _## agrees to assume all liability for the use of the software;
  20. _## Hewlett-Packard and Jochen Katz make no representations about the
  21. _## suitability of this software for any purpose. It is provided
  22. _## "AS-IS" without warranty of any kind, either express or implied. User
  23. _## hereby grants a royalty-free license to any and all derivatives based
  24. _## upon this software code base.
  25. _##
  26. _## Stuttgart, Germany, Sun Nov 11 15:10:59 CET 2007
  27. _##
  28. _##########################################################################*/
  29. /*===================================================================
  30. Copyright (c) 1999
  31. Hewlett-Packard Company
  32. ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
  33. Permission to use, copy, modify, distribute and/or sell this software
  34. and/or its documentation is hereby granted without fee. User agrees
  35. to display the above copyright notice and this license notice in all
  36. copies of the software and any documentation of the software. User
  37. agrees to assume all liability for the use of the software; Hewlett-Packard
  38. makes no representations about the suitability of this software for any
  39. purpose. It is provided "AS-IS" without warranty of any kind,either express
  40. or implied. User hereby grants a royalty-free license to any and all
  41. derivatives based upon this software code base.
  42. SNMP++ O I D _ D E F . H
  43. OID_DEF DEFINITIONS
  44. DESCRIPTION:
  45. Some common Oid definitions.
  46. DESIGN + AUTHOR:
  47. Peter E Mellquist
  48. LANGUAGE:
  49. ANSI C++
  50. OPERATING SYSTEMS:
  51. DOS / Windows 3.1
  52. BSD UNIX
  53. =====================================================================*/
  54. // $Id: oid_def.h 287 2007-03-22 22:37:09Z katz $
  55. #ifndef _OID_DEF
  56. #define _OID_DEF
  57. #include "snmp_pp/oid.h"
  58. #ifdef SNMP_PP_NAMESPACE
  59. namespace Snmp_pp {
  60. #endif
  61. /** SMI trap oid def */
  62. class snmpTrapsOid: public Oid {
  63. public:
  64. DLLOPT snmpTrapsOid() : Oid("1.3.6.1.6.3.1.1.5") {};
  65. };
  66. /** SMI Enterprose Oid */
  67. class snmpTrapEnterpriseOid: public Oid {
  68. public:
  69. DLLOPT snmpTrapEnterpriseOid() : Oid("1.3.6.1.6.3.1.1.4.3.0") {};
  70. };
  71. /** SMI Cold Start Oid */
  72. class coldStartOid: public snmpTrapsOid {
  73. public:
  74. DLLOPT coldStartOid() { *this+=".1"; };
  75. };
  76. /** SMI WarmStart Oid */
  77. class warmStartOid: public snmpTrapsOid {
  78. public:
  79. DLLOPT warmStartOid() { *this+=".2"; };
  80. };
  81. /** SMI LinkDown Oid */
  82. class linkDownOid: public snmpTrapsOid {
  83. public:
  84. DLLOPT linkDownOid() { *this+=".3"; };
  85. };
  86. /** SMI LinkUp Oid */
  87. class linkUpOid: public snmpTrapsOid {
  88. public:
  89. DLLOPT linkUpOid() { *this+=".4"; };
  90. };
  91. /** SMI Authentication Failure Oid */
  92. class authenticationFailureOid: public snmpTrapsOid {
  93. public:
  94. DLLOPT authenticationFailureOid() { *this+=".5"; };
  95. };
  96. /** SMI egpneighborloss Oid */
  97. class egpNeighborLossOid: public snmpTrapsOid {
  98. public:
  99. DLLOPT egpNeighborLossOid() { *this+=".6"; };
  100. };
  101. #ifdef SNMP_PP_NAMESPACE
  102. } // end of namespace Snmp_pp
  103. #endif
  104. #endif // _OID_DEF