儲存庫 vbox 的更動 12392
- 時間撮記:
- 2008-9-11 上午07:21:51 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxVMInfoNet.cpp
r12372 r12392 36 36 } 37 37 38 39 38 char szPropPath [_MAX_PATH+1] = {0}; 39 char szTemp [_MAX_PATH+1] = {0}; 40 40 int nNumInterfaces = nBytesReturned / sizeof(INTERFACE_INFO); 41 41 42 43 42 RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/Count"); 43 vboxVMInfoWritePropInt(a_pCtx, szPropPath, nNumInterfaces); 44 44 45 45 dwCurIface = 0; … … 52 52 sockaddr_in *pAddress; 53 53 pAddress = (sockaddr_in *) & (InterfaceList[i].iiAddress); 54 55 54 RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/V4/IP", i); 55 vboxVMInfoWriteProp(a_pCtx, szPropPath, inet_ntoa(pAddress->sin_addr)); 56 56 57 57 pAddress = (sockaddr_in *) & (InterfaceList[i].iiBroadcastAddress); 58 59 58 RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/V4/Broadcast", i); 59 vboxVMInfoWriteProp(a_pCtx, szPropPath, inet_ntoa(pAddress->sin_addr)); 60 60 61 61 pAddress = (sockaddr_in *) & (InterfaceList[i].iiNetmask); 62 63 62 RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/V4/Netmask", i); 63 vboxVMInfoWriteProp(a_pCtx, szPropPath, inet_ntoa(pAddress->sin_addr)); 64 64 65 65 u_long nFlags = InterfaceList[i].iiFlags; 66 66 if (nFlags & IFF_UP) 67 68 69 67 RTStrPrintf(szTemp, sizeof(szTemp), "Up"); 68 else 69 RTStrPrintf(szTemp, sizeof(szTemp), "Down"); 70 70 71 72 71 RTStrPrintf(szPropPath, sizeof(szPropPath), "GuestInfo/Net/%d/Status", i); 72 vboxVMInfoWriteProp(a_pCtx, szPropPath, szTemp); 73 73 } 74 74
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器