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

Diff for /pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_emanate.cpp between version 1.24 and 1.25

version 1.24, 2006/11/14 18:34:53 version 1.25, 2007/09/07 18:05:46
Line 521 
Line 521 
     struct hostent* targetHostInfo;     struct hostent* targetHostInfo;
     struct in_addr in;     struct in_addr in;
  
 #if defined(PEGASUS_OS_LINUX)  
         char hostEntryBuffer[8192];         char hostEntryBuffer[8192];
         struct hostent hostEntryStruct;         struct hostent hostEntryStruct;
         int hostEntryErrno;      targetHostInfo = System::getHostByName(hostName,
           &hostEntryStruct, hostEntryBuffer, sizeof (hostEntryBuffer));
         gethostbyname_r(  
             hostName,  
             &hostEntryStruct,  
             hostEntryBuffer,  
             sizeof(hostEntryBuffer),  
             &targetHostInfo,  
             &hostEntryErrno);  
 #elif defined(PEGASUS_OS_SOLARIS)  
         char hostEntryBuffer[8192];  
         struct hostent hostEntryStruct;  
         int hostEntryErrno;  
   
         targetHostInfo = gethostbyname_r(  
             (char*)hostName,  
             &hostEntryStruct,  
             hostEntryBuffer,  
             sizeof(hostEntryBuffer),  
             &hostEntryErrno);  
 #else  
     targetHostInfo = gethostbyname(hostName);  
 #endif  
  
     if (targetHostInfo == NULL)     if (targetHostInfo == NULL)
     {     {


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2