Changeset 85307 in vbox for trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp
- Timestamp:
- Jul 13, 2020 12:38:15 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp
r85300 r85307 171 171 data = m->s; 172 172 173 m->pVirtualBox->i_onNATNetworkSetting( Bstr(m->s.strNetworkName).raw(),173 m->pVirtualBox->i_onNATNetworkSetting(m->s.strNetworkName, 174 174 m->s.fEnabled, 175 Bstr(m->s.strIPv4NetworkCidr).raw(),176 Bstr(m->IPv4Gateway).raw(),175 m->s.strIPv4NetworkCidr, 176 m->IPv4Gateway, 177 177 m->s.fAdvertiseDefaultIPv6Route, 178 178 m->s.fNeedDhcpServer); … … 180 180 /* Notify listerners listening on this network only */ 181 181 ::FireNATNetworkSettingEvent(m->pEventSource, 182 Bstr(m->s.strNetworkName).raw(),182 m->s.strNetworkName, 183 183 m->s.fEnabled, 184 Bstr(m->s.strIPv4NetworkCidr).raw(),185 Bstr(m->IPv4Gateway).raw(),184 m->s.strIPv4NetworkCidr, 185 m->IPv4Gateway, 186 186 m->s.fAdvertiseDefaultIPv6Route, 187 187 m->s.fNeedDhcpServer); … … 584 584 } 585 585 586 m->pVirtualBox->i_onNATNetworkPortForward( Bstr(m->s.strNetworkName).raw(), TRUE, aIsIpv6,587 Bstr(aPortForwardRuleName).raw(), aProto,588 Bstr(aHostIp).raw(), aHostPort,589 Bstr(aGuestIp).raw(), aGuestPort);586 m->pVirtualBox->i_onNATNetworkPortForward(m->s.strNetworkName, TRUE, aIsIpv6, 587 aPortForwardRuleName, aProto, 588 aHostIp, aHostPort, 589 aGuestIp, aGuestPort); 590 590 591 591 /* Notify listerners listening on this network only */ 592 ::FireNATNetworkPortForwardEvent(m->pEventSource, Bstr(m->s.strNetworkName).raw(), TRUE,593 aIsIpv6, Bstr(aPortForwardRuleName).raw(), aProto,594 Bstr(aHostIp).raw(), aHostPort,595 Bstr(aGuestIp).raw(), aGuestPort);592 ::FireNATNetworkPortForwardEvent(m->pEventSource, m->s.strNetworkName, TRUE, 593 aIsIpv6, aPortForwardRuleName, aProto, 594 aHostIp, aHostPort, 595 aGuestIp, aGuestPort); 596 596 597 597 return S_OK; … … 629 629 } 630 630 631 m->pVirtualBox->i_onNATNetworkPortForward(Bstr(m->s.strNetworkName).raw(), FALSE, aIsIpv6, 632 Bstr(aPortForwardRuleName).raw(), proto, 633 Bstr(strHostIP).raw(), u16HostPort, 634 Bstr(strGuestIP).raw(), u16GuestPort); 631 m->pVirtualBox->i_onNATNetworkPortForward(m->s.strNetworkName, FALSE, aIsIpv6, aPortForwardRuleName, proto, 632 strHostIP, u16HostPort, strGuestIP, u16GuestPort); 635 633 636 634 /* Notify listerners listening on this network only */ 637 ::FireNATNetworkPortForwardEvent(m->pEventSource, Bstr(m->s.strNetworkName).raw(), FALSE, 638 aIsIpv6, Bstr(aPortForwardRuleName).raw(), proto, 639 Bstr(strHostIP).raw(), u16HostPort, 640 Bstr(strGuestIP).raw(), u16GuestPort); 635 ::FireNATNetworkPortForwardEvent(m->pEventSource, m->s.strNetworkName, FALSE, aIsIpv6, aPortForwardRuleName, proto, 636 strHostIP, u16HostPort, strGuestIP, u16GuestPort); 641 637 return S_OK; 642 638 } … … 854 850 if (RT_SUCCESS(m->NATRunner.start(false /* KillProcOnStop */))) 855 851 { 856 m->pVirtualBox->i_onNATNetworkStartStop( Bstr(m->s.strNetworkName).raw(), TRUE);852 m->pVirtualBox->i_onNATNetworkStartStop(m->s.strNetworkName, TRUE); 857 853 return S_OK; 858 854 } … … 867 863 { 868 864 #ifdef VBOX_WITH_NAT_SERVICE 869 m->pVirtualBox->i_onNATNetworkStartStop( Bstr(m->s.strNetworkName).raw(), FALSE);865 m->pVirtualBox->i_onNATNetworkStartStop(m->s.strNetworkName, FALSE); 870 866 871 867 if (!m->dhcpServer.isNull())
Note:
See TracChangeset
for help on using the changeset viewer.