int VBoxNetLwipNAT::run() { /* Father starts receiving thread and enter event loop. */ VBoxNetBaseService::run(); vboxLwipCoreFinalize(VBoxNetLwipNAT::onLwipTcpIpFini, this); m_vecPortForwardRule4.clear(); m_vecPortForwardRule6.clear(); destroyNatListener(m_NatListener, virtualbox); destroyNatListener(m_VBoxListener, virtualbox); destroyClientListener(m_VBoxClientListener, virtualboxClient); return VINF_SUCCESS; }
void VBoxNetDhcp::done() { destroyNatListener(m_VBoxListener, virtualbox); destroyClientListener(m_VBoxClientListener, virtualboxClient); }