00001 /*_############################################################################ 00002 _## 00003 _## oid_def.h 00004 _## 00005 _## SNMP++v3.2.15 00006 _## ----------------------------------------------- 00007 _## Copyright (c) 2001-2004 Jochen Katz, Frank Fock 00008 _## 00009 _## This software is based on SNMP++2.6 from Hewlett Packard: 00010 _## 00011 _## Copyright (c) 1996 00012 _## Hewlett-Packard Company 00013 _## 00014 _## ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS. 00015 _## Permission to use, copy, modify, distribute and/or sell this software 00016 _## and/or its documentation is hereby granted without fee. User agrees 00017 _## to display the above copyright notice and this license notice in all 00018 _## copies of the software and any documentation of the software. User 00019 _## agrees to assume all liability for the use of the software; 00020 _## Hewlett-Packard and Jochen Katz make no representations about the 00021 _## suitability of this software for any purpose. It is provided 00022 _## "AS-IS" without warranty of any kind, either express or implied. User 00023 _## hereby grants a royalty-free license to any and all derivatives based 00024 _## upon this software code base. 00025 _## 00026 _## Stuttgart, Germany, Tue Jan 4 21:42:42 CET 2005 00027 _## 00028 _##########################################################################*/ 00029 /*=================================================================== 00030 00031 Copyright (c) 1999 00032 Hewlett-Packard Company 00033 00034 ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS. 00035 Permission to use, copy, modify, distribute and/or sell this software 00036 and/or its documentation is hereby granted without fee. User agrees 00037 to display the above copyright notice and this license notice in all 00038 copies of the software and any documentation of the software. User 00039 agrees to assume all liability for the use of the software; Hewlett-Packard 00040 makes no representations about the suitability of this software for any 00041 purpose. It is provided "AS-IS" without warranty of any kind,either express 00042 or implied. User hereby grants a royalty-free license to any and all 00043 derivatives based upon this software code base. 00044 00045 SNMP++ O I D _ D E F . H 00046 00047 OID_DEF DEFINITIONS 00048 00049 DESCRIPTION: 00050 Some common Oid definitions. 00051 00052 DESIGN + AUTHOR: 00053 Peter E Mellquist 00054 00055 LANGUAGE: 00056 ANSI C++ 00057 00058 OPERATING SYSTEMS: 00059 DOS / Windows 3.1 00060 BSD UNIX 00061 00062 =====================================================================*/ 00063 // $Id: oid_def.h,v 1.4 2004/03/03 23:11:21 katz Exp $ 00064 00065 #ifndef _OID_DEF 00066 #define _OID_DEF 00067 00068 #include "snmp_pp/oid.h" 00069 00070 #ifdef SNMP_PP_NAMESPACE 00071 namespace Snmp_pp { 00072 #endif 00073 00074 00075 /** SMI trap oid def */ 00076 class snmpTrapsOid: public Oid { 00077 public: 00078 DLLOPT snmpTrapsOid() : Oid("1.3.6.1.6.3.1.1.5") {}; 00079 }; 00080 00081 /** SMI Enterprose Oid */ 00082 class snmpTrapEnterpriseOid: public Oid { 00083 public: 00084 DLLOPT snmpTrapEnterpriseOid() : Oid("1.3.6.1.6.3.1.1.4.3.0") {}; 00085 }; 00086 00087 /** SMI Cold Start Oid */ 00088 class coldStartOid: public snmpTrapsOid { 00089 public: 00090 DLLOPT coldStartOid() { *this+=".1"; }; 00091 }; 00092 00093 /** SMI WarmStart Oid */ 00094 class warmStartOid: public snmpTrapsOid { 00095 public: 00096 DLLOPT warmStartOid() { *this+=".2"; }; 00097 }; 00098 00099 /** SMI LinkDown Oid */ 00100 class linkDownOid: public snmpTrapsOid { 00101 public: 00102 DLLOPT linkDownOid() { *this+=".3"; }; 00103 }; 00104 00105 /** SMI LinkUp Oid */ 00106 class linkUpOid: public snmpTrapsOid { 00107 public: 00108 DLLOPT linkUpOid() { *this+=".4"; }; 00109 }; 00110 00111 /** SMI Authentication Failure Oid */ 00112 class authenticationFailureOid: public snmpTrapsOid { 00113 public: 00114 DLLOPT authenticationFailureOid() { *this+=".5"; }; 00115 }; 00116 00117 /** SMI egpneighborloss Oid */ 00118 class egpNeighborLossOid: public snmpTrapsOid { 00119 public: 00120 DLLOPT egpNeighborLossOid() { *this+=".6"; }; 00121 }; 00122 00123 #ifdef SNMP_PP_NAMESPACE 00124 }; // end of namespace Snmp_pp 00125 #endif 00126 00127 #endif // _OID_DEF
1.3.2