VirtualBox

Changeset 12392 in vbox for trunk


Ignore:
Timestamp:
Sep 11, 2008 7:21:51 AM (16 years ago)
Author:
vboxsync
Message:

Tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxVMInfoNet.cpp

    r12372 r12392  
    3636    }
    3737
    38         char szPropPath [_MAX_PATH+1] = {0};
    39         char szTemp [_MAX_PATH+1] = {0};
     38    char szPropPath [_MAX_PATH+1] = {0};
     39    char szTemp [_MAX_PATH+1] = {0};
    4040    int nNumInterfaces = nBytesReturned / sizeof(INTERFACE_INFO);
    4141
    42         RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/Count");
    43         vboxVMInfoWritePropInt(a_pCtx, szPropPath, nNumInterfaces);
     42    RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/Count");
     43    vboxVMInfoWritePropInt(a_pCtx, szPropPath, nNumInterfaces);
    4444
    4545    dwCurIface = 0;
     
    5252        sockaddr_in *pAddress;
    5353        pAddress = (sockaddr_in *) & (InterfaceList[i].iiAddress);
    54                 RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/V4/IP", i);
    55                 vboxVMInfoWriteProp(a_pCtx, szPropPath, inet_ntoa(pAddress->sin_addr));
     54        RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/V4/IP", i);
     55        vboxVMInfoWriteProp(a_pCtx, szPropPath, inet_ntoa(pAddress->sin_addr));
    5656
    5757        pAddress = (sockaddr_in *) & (InterfaceList[i].iiBroadcastAddress);
    58                 RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/V4/Broadcast", i);
    59                 vboxVMInfoWriteProp(a_pCtx, szPropPath, inet_ntoa(pAddress->sin_addr));
     58        RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/V4/Broadcast", i);
     59        vboxVMInfoWriteProp(a_pCtx, szPropPath, inet_ntoa(pAddress->sin_addr));
    6060
    6161        pAddress = (sockaddr_in *) & (InterfaceList[i].iiNetmask);
    62                 RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/V4/Netmask", i);
    63                 vboxVMInfoWriteProp(a_pCtx, szPropPath, inet_ntoa(pAddress->sin_addr));
     62        RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/V4/Netmask", i);
     63        vboxVMInfoWriteProp(a_pCtx, szPropPath, inet_ntoa(pAddress->sin_addr));
    6464
    6565        u_long nFlags = InterfaceList[i].iiFlags;
    6666        if (nFlags & IFF_UP)
    67                         RTStrPrintf(szTemp, sizeof(szTemp), "Up");
    68                 else
    69                         RTStrPrintf(szTemp, sizeof(szTemp), "Down");
     67            RTStrPrintf(szTemp, sizeof(szTemp), "Up");
     68        else
     69            RTStrPrintf(szTemp, sizeof(szTemp), "Down");
    7070
    71                 RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/Status", i);
    72                 vboxVMInfoWriteProp(a_pCtx, szPropPath, szTemp);
     71        RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/Status", i);
     72        vboxVMInfoWriteProp(a_pCtx, szPropPath, szTemp);
    7373    }
    7474
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