VirtualBox

儲存庫 vbox 的更動 47861


忽略:
時間撮記:
2013-8-20 上午03:15:35 (11 年 以前)
作者:
vboxsync
訊息:

bound API for loopbacks and built-in services assignments.

位置:
trunk/src/VBox/Main
檔案:
修改 3 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r47858 r47861  
    13911391  -->
    13921392  <!-- This is experimental interface to LWIP based NAT server -->
     1393 
     1394  <enum
     1395    name="NATNetworkServiceType"
     1396    uuid="d19dcba6-9bec-43d5-93f2-75d25a446aa4"
     1397    >
     1398    <const name="Gateway"           value="1"/>
     1399    <const name="Dhcp"              value="2"/>
     1400    <const name="Tftp"              value="3"/>
     1401    <const name="DnsProxy"          value="4"/>
     1402  </enum>
     1403
    13931404  <interface name="INATNetwork" extends="$unknown"
    1394     uuid="03DFD6F7-1B78-48A3-8345-C785281E9523"
     1405    uuid="d09da50a-ab33-4f83-a879-00f5b74e8dfc"
    13951406    wsmap="managed">
    13961407    <attribute name="networkName" type="wstring">
     
    14381449      </desc>
    14391450    </attribute>
     1451    <attribute name="localMappings" type="wstring" readonly="yes" safearray="yes">
     1452      <desc>Array of mappings (hostid,offset) where hostid is network id 127/8, e.g.
     1453      ("0.1.1;4") maps 127.0.1.1 to networkid + 4.
     1454      </desc>
     1455    </attribute>
     1456   
     1457    <method name="addLocalMapping">
     1458      <desc>
     1459      </desc>
     1460      <param name="hostid" type="wstring" dir="in"/>
     1461      <param name="offset" type="long" dir="in"/>
     1462    </method>
     1463   
     1464    <method name="getOffsetForService">
     1465      <param name="service" type="NATNetworkServiceType" dir="in"/>
     1466      <param name="offset" type="long" dir="return"/>
     1467    </method>
     1468
     1469    <method name="setOffsetForService">
     1470      <param name="service" type="NATNetworkServiceType" dir="in"/>
     1471      <param name="offset" type="long" dir="in"/>
     1472    </method>
     1473
    14401474    <attribute name="portForwardRules6" type="wstring" readonly="yes" safearray="yes">
    14411475      <desc>Array of NAT port-forwarding rules in string representation, in the
  • trunk/src/VBox/Main/include/NATNetworkImpl.h

    r47018 r47861  
    107107    STDMETHOD(COMSETTER(NeedDhcpServer))(BOOL aEnabled);
    108108
     109    STDMETHOD(COMGETTER(LocalMappings))(ComSafeArrayOut(BSTR, aLocalMappings));
     110    STDMETHOD(AddLocalMapping)(IN_BSTR aHostId, LONG aOffset);
     111    STDMETHOD(GetOffsetForService)(NATNetworkServiceType_T service, LONG *aOffset);
     112    STDMETHOD(SetOffsetForService)(NATNetworkServiceType_T service, LONG aOffset);
     113
    109114    STDMETHOD(COMGETTER(PortForwardRules4))(ComSafeArrayOut(BSTR, aPortForwardRules4));
    110115    STDMETHOD(COMGETTER(PortForwardRules6))(ComSafeArrayOut(BSTR, aPortForwardRules6));
  • trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp

    r47691 r47861  
    474474#endif
    475475    return rc;
     476}
     477
     478STDMETHODIMP NATNetwork::COMGETTER(LocalMappings)(ComSafeArrayOut(BSTR, aLocalMappings))
     479{
     480    return E_NOTIMPL;
     481}
     482
     483STDMETHODIMP NATNetwork::AddLocalMapping(IN_BSTR aHostId, LONG aOffset)
     484{
     485    return E_NOTIMPL;
     486}
     487
     488STDMETHODIMP NATNetwork::GetOffsetForService(NATNetworkServiceType_T service, LONG *aOffset)
     489{
     490    return E_NOTIMPL;
     491}
     492
     493STDMETHODIMP NATNetwork::SetOffsetForService(NATNetworkServiceType_T service, LONG aOffset)
     494{
     495    return E_NOTIMPL;
    476496}
    477497
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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