(file) Return to snmpDeliverTrap_netsnmp.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Handler / snmpIndicationHandler

Diff for /pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_netsnmp.cpp between version 1.25 and 1.28

version 1.25, 2010/12/22 12:19:06 version 1.28, 2012/08/03 03:27:09
Line 43 
Line 43 
     // loaded and loading them can cause some stderr;     // loaded and loading them can cause some stderr;
     // use environment variable MIBS to override the default MIB modules.     // use environment variable MIBS to override the default MIB modules.
     // If there is no MIBS environment variable, add it in.     // If there is no MIBS environment variable, add it in.
     char* envVar;  
     envVar = getenv("MIBS");  
  
     if (envVar == NULL)      setenv("MIBS", "", 0);
     {  
         putenv("MIBS=");  
     }  
  
     // Initialize the mib reader     // Initialize the mib reader
     netsnmp_set_mib_directory("");     netsnmp_set_mib_directory("");
Line 295 
Line 290 
                 _addCommunity(sessionPtr,securityName);                 _addCommunity(sessionPtr,securityName);
                 break;                 break;
             }             }
   #ifdef PEGASUS_ENABLE_NET_SNMPV3
             case _SNMPv3_TRAP:             case _SNMPv3_TRAP:
             {             {
                 sessionPtr->version = SNMP_VERSION_3;                 sessionPtr->version = SNMP_VERSION_3;
Line 398 
Line 394 
                 }                 }
                 break;                 break;
             }             }
   #endif // ifdef PEGASUS_ENABLE_NET_SNMPV3
             default:             default:
             {             {
                 PEG_METHOD_EXIT();                 PEG_METHOD_EXIT();
Line 405 
Line 402 
                     MessageLoaderParms(                     MessageLoaderParms(
                         _MSG_VERSION_NOT_SUPPORTED_KEY,                         _MSG_VERSION_NOT_SUPPORTED_KEY,
                         _MSG_VERSION_NOT_SUPPORTED));                         _MSG_VERSION_NOT_SUPPORTED));
                 break;  
             }             }
         }         }
  


Legend:
Removed from v.1.25  
changed lines
  Added in v.1.28

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2