VirtualBox

Changeset 43214 in vbox for trunk/src/VBox/ExtPacks/VNC


Ignore:
Timestamp:
Sep 6, 2012 9:16:55 AM (12 years ago)
Author:
vboxsync
Message:

RTStrIsIpAddr[46] -> RTNetIsIpv\1AddrStr; made the buggers return bool like predicate functions shall.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VNC/VBoxVNC.cpp

    r43213 r43214  
    497497    }
    498498
    499     rc = RTStrIsIpAddr4(pszTCPAddress);
    500 
    501     if (RT_SUCCESS(rc))
     499    if (RTNetIsIPv4AddrStr(pszTCPAddress))
    502500    {
    503501        pszServerAddress4 = pszTCPAddress;
     
    511509        }
    512510
    513         rc = RTStrIsIpAddr6(pszVNCAddress6, NULL, 0, true, true);
    514 
    515         if (RT_SUCCESS(rc))
    516         {
     511        if (RTNetIsIPv6AddrStr(pszVNCAddress6))
    517512            pszServerAddress6 = pszVNCAddress6;
    518 
    519         }
    520513        else
    521         {
    522514            pszServerAddress6 = szIPv6ListenAll;
    523         }
    524515
    525516        if (strlen(pszVNCPort6) > 0)
     
    534525    }
    535526
    536     rc = RTStrIsIpAddr6(pszTCPAddress, NULL, 0, true, true);
    537 
    538     if (RT_SUCCESS(rc))
     527    if (RTNetIsIPv6AddrStr(pszTCPAddress))
    539528    {
    540529        pszServerAddress6 = pszTCPAddress;
     
    548537        }
    549538
    550         rc = RTStrIsIpAddr4(pszVNCAddress4);
    551 
    552         if (RT_SUCCESS(rc))
    553         {
     539        if (RTNetIsIPv4AddrStr(pszVNCAddress4))
    554540            pszServerAddress4 = pszVNCAddress4;
    555 
    556         }
    557541        else
    558         {
    559542            pszServerAddress4 = szIPv4ListenAll;
    560         }
    561543
    562544        if (strlen(pszVNCPort4) > 0)
     
    637619    if (!pszServerAddress4)
    638620    {
    639         rc = RTStrIsIpAddr4(pszVNCAddress4);
    640 
    641         if (RT_SUCCESS(rc))
     621        if (RTNetIsIPv4AddrStr(pszVNCAddress4))
    642622            pszServerAddress4 = pszVNCAddress4;
    643623        else
     
    646626    if (!pszServerAddress6)
    647627    {
    648         rc = RTStrIsIpAddr6(pszVNCAddress6, NULL, 0, true, true);
    649 
    650         if (RT_SUCCESS(rc))
     628        if (RTNetIsIPv6AddrStr(pszVNCAddress6))
    651629            pszServerAddress6 = pszVNCAddress6;
    652630        else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette