(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.3.2.2 and 1.9

version 1.3.2.2, 2006/11/08 22:58:06 version 1.9, 2006/11/07 19:11:29
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Yi Zhou, Hewlett-Packard Company (Yi.Zhou@hp.com)  
 //  
 // Modified By:  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #include <Pegasus/Common/Packer.h> #include <Pegasus/Common/Packer.h>
Line 213 
Line 209 
         exceptionStr = _MSG_SESSION_OPEN_FAILED;         exceptionStr = _MSG_SESSION_OPEN_FAILED;
  
         // Get library, system errno         // Get library, system errno
         snmp_sess_error(&snmpSession, &libErr, &sysErr, &errStr);          snmp_error(&snmpSession, &libErr, &sysErr, &errStr);
  
         exceptionStr.append(errStr);         exceptionStr.append(errStr);
  
Line 258 
Line 254 
             communityName = securityName;             communityName = securityName;
         }         }
  
         if (snmpSession.peername)  
         {  
             free(snmpSession.peername);             free(snmpSession.peername);
         }  
  
         if (sessionPtr->community)  
         {  
             free(sessionPtr->community);             free(sessionPtr->community);
         }  
  
         CString communityNameCStr = communityName.getCString();         CString communityNameCStr = communityName.getCString();
         size_t communityNameLen = strlen(communityNameCStr);         size_t communityNameLen = strlen(communityNameCStr);
Line 431 
Line 421 
             throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,             throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_NOT_SUPPORTED,
                 MessageLoaderParms(_MSG_VERSION_NOT_SUPPORTED_KEY,                 MessageLoaderParms(_MSG_VERSION_NOT_SUPPORTED_KEY,
                                    _MSG_VERSION_NOT_SUPPORTED));                                    _MSG_VERSION_NOT_SUPPORTED));
             break;  
         }         }
     }     }
  
     PEG_METHOD_EXIT ();     PEG_METHOD_EXIT ();
 } }
  
   
 // Pack trap information into the PDU // Pack trap information into the PDU
 void snmpDeliverTrap_netsnmp::_packTrapInfoIntoPdu( void snmpDeliverTrap_netsnmp::_packTrapInfoIntoPdu(
     const String & trapOid,     const String & trapOid,
Line 540 
Line 530 
                 strcat(numericEntOid, oidSubIdentifiers[i]);                 strcat(numericEntOid, oidSubIdentifiers[i]);
             }             }
  
             if (oidSubIdentifiers[oidSubIdentifiers.size()-2] != "0")              if (strcmp(oidSubIdentifiers[oidSubIdentifiers.size()-2], "0") != 0)
             {             {
                 strcat(numericEntOid, ".");                 strcat(numericEntOid, ".");
                 strcat(numericEntOid,                 strcat(numericEntOid,


Legend:
Removed from v.1.3.2.2  
changed lines
  Added in v.1.9

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2