(file) Return to System.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/System.cpp between version 1.53 and 1.55

version 1.53, 2007/07/10 19:59:55 version 1.55, 2007/08/03 01:04:20
Line 198 
Line 198 
     {     {
         char ipAddress[PEGASUS_INET_ADDRSTR_LEN];         char ipAddress[PEGASUS_INET_ADDRSTR_LEN];
         HostAddress::convertBinaryToText(info->ai_family,         HostAddress::convertBinaryToText(info->ai_family,
             &((struct sockaddr_in*)(info->ai_addr))->sin_addr, ipAddress,              &(reinterpret_cast<struct sockaddr_in*>(info->ai_addr))->sin_addr,
               ipAddress,
             PEGASUS_INET_ADDRSTR_LEN);             PEGASUS_INET_ADDRSTR_LEN);
         hostIP = ipAddress;         hostIP = ipAddress;
         freeaddrinfo(info);         freeaddrinfo(info);
Line 214 
Line 215 
     {     {
         char ipAddress[PEGASUS_INET6_ADDRSTR_LEN];         char ipAddress[PEGASUS_INET6_ADDRSTR_LEN];
         HostAddress::convertBinaryToText(info->ai_family,         HostAddress::convertBinaryToText(info->ai_family,
             &((struct sockaddr_in6*)(info->ai_addr))->sin6_addr, ipAddress,              &(reinterpret_cast<struct sockaddr_in6*>(info->ai_addr))->sin6_addr,
               ipAddress,
             PEGASUS_INET6_ADDRSTR_LEN);             PEGASUS_INET6_ADDRSTR_LEN);
         hostIP = ipAddress;         hostIP = ipAddress;
         freeaddrinfo(info);         freeaddrinfo(info);
Line 548 
Line 550 
     while (res1 && !isLocal)     while (res1 && !isLocal)
     {     {
         if (isLoopBack(AF_INET,         if (isLoopBack(AF_INET,
             &((struct sockaddr_in*)res1->ai_addr)->sin_addr))              &(reinterpret_cast<struct sockaddr_in*>(res1->ai_addr))->sin_addr))
         {         {
             isLocal = true;             isLocal = true;
             break;             break;
Line 557 
Line 559 
         res2 = res2root;         res2 = res2root;
         while (res2)         while (res2)
         {         {
             if (!memcmp(&((struct sockaddr_in*)res1->ai_addr)->sin_addr,              if (!memcmp(
                 &((struct sockaddr_in*)res2->ai_addr)->sin_addr,                      &(reinterpret_cast<struct sockaddr_in*>(res1->ai_addr))->
                           sin_addr,
                       &(reinterpret_cast<struct sockaddr_in*>(res2->ai_addr))->
                           sin_addr,
                 sizeof (struct in_addr)))                 sizeof (struct in_addr)))
             {             {
                 isLocal = true;                 isLocal = true;
Line 583 
Line 588 
     res1 = res1root;     res1 = res1root;
     while (res1 && !isLocal)     while (res1 && !isLocal)
     {     {
         if (isLoopBack(AF_INET6,          if (isLoopBack(
             &((struct sockaddr_in6*)res1->ai_addr)->sin6_addr))                  AF_INET6,
                   &(reinterpret_cast<struct sockaddr_in6*>(res1->ai_addr))->
                       sin6_addr))
         {         {
             isLocal = true;             isLocal = true;
             break;             break;
Line 593 
Line 600 
         res2 = res2root;         res2 = res2root;
         while (res2)         while (res2)
         {         {
             if (!memcmp(&((struct sockaddr_in6*)res1->ai_addr)->sin6_addr,              if (!memcmp(
                 &((struct sockaddr_in6*)res2->ai_addr)->sin6_addr,                      &(reinterpret_cast<struct sockaddr_in6*>(res1->ai_addr))->
                           sin6_addr,
                       &(reinterpret_cast<struct sockaddr_in6*>(res2->ai_addr))->
                           sin6_addr,
                 sizeof (struct in6_addr)))                 sizeof (struct in6_addr)))
             {             {
                 isLocal = true;                 isLocal = true;
Line 621 
Line 631 
     // Note: Platforms already supporting the inet_aton()     // Note: Platforms already supporting the inet_aton()
     //       should define their platform here,     //       should define their platform here,
     //        as this is the superior way to work     //        as this is the superior way to work
 #if defined(PEGASUS_OS_LINUX) || defined(PEGASUS_OS_AIX)  #if defined(PEGASUS_OS_LINUX) || \
       defined(PEGASUS_OS_AIX) || \
       defined(PEGASUS_OS_HPUX) || \
       defined(PEGASUS_OS_PASE)
  
     struct in_addr inaddr;     struct in_addr inaddr;
     // if inet_aton failed(return=0),     // if inet_aton failed(return=0),


Legend:
Removed from v.1.53  
changed lines
  Added in v.1.55

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2