VirtualBox

儲存庫 vbox 的更動 12392


忽略:
時間撮記:
2008-9-11 上午07:21:51 (16 年 以前)
作者:
vboxsync
訊息:

Tabs.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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