Changeset 97078 in vbox for trunk/src/VBox/NetworkServices/NAT
- Timestamp:
- Oct 10, 2022 7:32:33 PM (2 years ago)
- Location:
- trunk/src/VBox/NetworkServices/NAT
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/Makefile.kmk
r97071 r97078 106 106 VBoxNetLwipNAT.cpp \ 107 107 ../NetLib/IntNetIf.cpp \ 108 ../NetLib/IntNetIfCtx.cpp \109 108 ../NetLib/VBoxNetPortForwardString.cpp \ 110 109 $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_SOURCES)) \ -
trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp
r96407 r97078 150 150 151 151 RTMAC m_MacAddress; 152 I ntNetIf m_IntNetIf;152 INTNETIFCTX m_hIf; 153 153 RTTHREAD m_hThrRecv; 154 154 … … 483 483 484 484 /* connect to the intnet */ 485 rc = m_IntNetIf.init(m_strNetworkName);485 rc = IntNetR3IfCreate(&m_hIf, m_strNetworkName.c_str()); 486 486 if (RT_FAILURE(rc)) 487 487 return rc; … … 1392 1392 1393 1393 /* tell the intnet input pump to terminate */ 1394 m_IntNetIf.ifAbort();1394 IntNetR3IfWaitAbort(m_hIf); 1395 1395 1396 1396 /* tell the lwIP tcpip thread to terminate */ … … 1865 1865 return VERR_GENERAL_FAILURE; 1866 1866 1867 rc = self->m_IntNetIf.setInputCallback(VBoxNetLwipNAT::processFrame, self); 1868 AssertRCReturn(rc, rc); 1869 1870 rc = self->m_IntNetIf.ifPump(); 1867 rc = IntNetR3IfPumpPkts(self->m_hIf, VBoxNetLwipNAT::processFrame, self, 1868 NULL /*pfnInputGso*/, NULL /*pvUserGso*/); 1871 1869 if (rc == VERR_SEM_DESTROYED) 1872 1870 return VINF_SUCCESS; 1873 1871 1874 LogRel(("receiveThread: ifPump: unexpected %Rrc\n", rc));1872 LogRel(("receiveThread: IntNetR3IfPumpPkts: unexpected %Rrc\n", rc)); 1875 1873 return VERR_INVALID_STATE; 1876 1874 } … … 1955 1953 1956 1954 size_t cbFrame = (size_t)pPBuf->tot_len - ETH_PAD_SIZE; 1957 I ntNetIf::Frame frame;1958 rc = self->m_IntNetIf.getOutputFrame(frame, cbFrame);1955 INTNETFRAME Frame; 1956 rc = IntNetR3IfQueryOutputFrame(self->m_hIf, cbFrame, &Frame); 1959 1957 if (RT_FAILURE(rc)) 1960 1958 return ERR_MEM; 1961 1959 1962 pbuf_copy_partial(pPBuf, frame.pvFrame, (u16_t)cbFrame, ETH_PAD_SIZE);1963 rc = self->m_IntNetIf.ifOutput(frame);1960 pbuf_copy_partial(pPBuf, Frame.pvFrame, (u16_t)cbFrame, ETH_PAD_SIZE); 1961 rc = IntNetR3IfOutputFrameCommit(self->m_hIf, &Frame); 1964 1962 if (RT_FAILURE(rc)) 1965 1963 return ERR_IF;
Note:
See TracChangeset
for help on using the changeset viewer.