Changeset 559 in vbox
- Timestamp:
- Feb 2, 2007 3:24:29 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 18178
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r1 r559 154 154 } 155 155 156 157 /** 158 * Send multiple data packets to the network. 159 * 160 * @returns VBox status code. 161 * @param pInterface Pointer to the interface structure containing the called function pointer. 162 * @param cPackets Number of packets 163 * @param paPacket Packet description array 164 * @thread EMT 165 */ 166 static DECLCALLBACK(int) drvIntNetSendEx(PPDMINETWORKCONNECTOR pInterface, uint32_t cPackets, PPDMINETWORKPACKET paPacket) 167 { 168 int rc = VERR_INVALID_PARAMETER; 169 170 for (uint32_t i=0;i<cPackets;i++) 171 { 172 rc = drvIntNetSend(pInterface, paPacket[i].pvBuf, paPacket[i].cb); 173 if (VBOX_FAILURE(rc)) 174 break; 175 } 176 return rc; 177 } 156 178 157 179 /** … … 611 633 /* INetwork */ 612 634 pThis->INetworkConnector.pfnSend = drvIntNetSend; 635 pThis->INetworkConnector.pfnSendEx = drvIntNetSendEx; 613 636 pThis->INetworkConnector.pfnSetPromiscuousMode = drvIntNetSetPromiscuousMode; 614 637 pThis->INetworkConnector.pfnNotifyLinkChanged = drvIntNetNotifyLinkChanged; -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r530 r559 99 99 100 100 /** 101 * Send multiple data packets to the network. 102 * 103 * @returns VBox status code. 104 * @param pInterface Pointer to the interface structure containing the called function pointer. 105 * @param cPackets Number of packets 106 * @param paPacket Packet description array 107 * @thread EMT 108 */ 109 static DECLCALLBACK(int) drvNATSendEx(PPDMINETWORKCONNECTOR pInterface, uint32_t cPackets, PPDMINETWORKPACKET paPacket) 110 { 111 int rc = VERR_INVALID_PARAMETER; 112 113 for (uint32_t i=0;i<cPackets;i++) 114 { 115 rc = drvNATSend(pInterface, paPacket[i].pvBuf, paPacket[i].cb); 116 if (VBOX_FAILURE(rc)) 117 break; 118 } 119 return rc; 120 } 121 122 /** 101 123 * Set promiscuous mode. 102 124 * … … 355 377 pDrvIns->IBase.pfnQueryInterface = drvNATQueryInterface; 356 378 /* INetwork */ 357 pData->INetworkConnector.pfnSend = drvNATSend; 379 pData->INetworkConnector.pfnSend = drvNATSend; 380 pData->INetworkConnector.pfnSendEx = drvNATSendEx; 358 381 pData->INetworkConnector.pfnSetPromiscuousMode = drvNATSetPromiscuousMode; 359 pData->INetworkConnector.pfnNotifyLinkChanged = drvNATNotifyLinkChanged;360 pData->INetworkConnector.pfnNotifyCanReceive = drvNATNotifyCanReceive;382 pData->INetworkConnector.pfnNotifyLinkChanged = drvNATNotifyLinkChanged; 383 pData->INetworkConnector.pfnNotifyCanReceive = drvNATNotifyCanReceive; 361 384 362 385 /* -
trunk/src/VBox/Devices/Network/DrvNetSniffer.cpp
r1 r559 149 149 150 150 /** 151 * Send multiple data packets to the network. 152 * 153 * @returns VBox status code. 154 * @param pInterface Pointer to the interface structure containing the called function pointer. 155 * @param cPackets Number of packets 156 * @param paPacket Packet description array 157 * @thread EMT 158 */ 159 static DECLCALLBACK(int) drvNetSnifferSendEx(PPDMINETWORKCONNECTOR pInterface, uint32_t cPackets, PPDMINETWORKPACKET paPacket) 160 { 161 int rc = VERR_INVALID_PARAMETER; 162 163 for (uint32_t i=0;i<cPackets;i++) 164 { 165 rc = drvNetSnifferSend(pInterface, paPacket[i].pvBuf, paPacket[i].cb); 166 if (VBOX_FAILURE(rc)) 167 break; 168 } 169 return rc; 170 } 171 172 173 /** 151 174 * Set promiscuous mode. 152 175 * … … 334 357 /* INetworkConnector */ 335 358 pData->INetworkConnector.pfnSend = drvNetSnifferSend; 359 pData->INetworkConnector.pfnSendEx = drvNetSnifferSendEx; 336 360 pData->INetworkConnector.pfnSetPromiscuousMode = drvNetSnifferSetPromiscuousMode; 337 361 pData->INetworkConnector.pfnNotifyLinkChanged = drvNetSnifferNotifyLinkChanged; -
trunk/src/VBox/Devices/Network/DrvTAP.cpp
r1 r559 157 157 } 158 158 159 /** 160 * Send multiple data packets to the network. 161 * 162 * @returns VBox status code. 163 * @param pInterface Pointer to the interface structure containing the called function pointer. 164 * @param cPackets Number of packets 165 * @param paPacket Packet description array 166 * @thread EMT 167 */ 168 static DECLCALLBACK(int) drvTAPSendEx(PPDMINETWORKCONNECTOR pInterface, uint32_t cPackets, PPDMINETWORKPACKET paPacket) 169 { 170 int rc = VERR_INVALID_PARAMETER; 171 172 for (uint32_t i=0;i<cPackets;i++) 173 { 174 rc = drvTAPSend(pInterface, paPacket[i].pvBuf, paPacket[i].cb); 175 if (VBOX_FAILURE(rc)) 176 break; 177 } 178 return rc; 179 } 159 180 160 181 /** … … 509 530 /* INetwork */ 510 531 pData->INetworkConnector.pfnSend = drvTAPSend; 532 pData->INetworkConnector.pfnSendEx = drvTAPSendEx; 511 533 pData->INetworkConnector.pfnSetPromiscuousMode = drvTAPSetPromiscuousMode; 512 534 pData->INetworkConnector.pfnNotifyLinkChanged = drvTAPNotifyLinkChanged; -
trunk/src/VBox/Devices/Network/DrvTAPWin32.cpp
r557 r559 165 165 } 166 166 167 /** 168 * Send multiple data packets to the network. 169 * 170 * @returns VBox status code. 171 * @param pInterface Pointer to the interface structure containing the called function pointer. 172 * @param cPackets Number of packets 173 * @param paPacket Packet description array 174 * @thread EMT 175 */ 176 static DECLCALLBACK(int) drvTAPW32SendEx(PPDMINETWORKCONNECTOR pInterface, uint32_t cPackets, PPDMINETWORKPACKET paPacket) 177 { 178 int rc = VERR_INVALID_PARAMETER; 179 180 for (uint32_t i=0;i<cPackets;i++) 181 { 182 rc = drvTAPW32Send(pInterface, paPacket[i].pvBuf, paPacket[i].cb); 183 if (VBOX_FAILURE(rc)) 184 break; 185 } 186 return rc; 187 } 188 167 189 168 190 /** … … 466 488 /* INetwork */ 467 489 pData->INetworkConnector.pfnSend = drvTAPW32Send; 490 pData->INetworkConnector.pfnSendEx = drvTAPW32SendEx; 468 491 pData->INetworkConnector.pfnSetPromiscuousMode = drvTAPW32SetPromiscuousMode; 469 492 pData->INetworkConnector.pfnNotifyLinkChanged = drvTAPW32NotifyLinkChanged;
Note:
See TracChangeset
for help on using the changeset viewer.