DrvNetShaper.cpp revision b0af0b78d25ede09c0d23b2be9163cf43c7ca6f8
3853N/A * available from http://www.virtualbox.org. This file is free software;
3853N/Atypedef struct DRVNETSHAPER
3853N/A char * pszBwGroup;
3853N/Astatic DECLCALLBACK(int) drvNetShaperUp_BeginXmit(PPDMINETWORKUP pInterface, bool fOnWorkerThread)
3853N/A return VERR_NET_DOWN;
3853N/A return VERR_TRY_AGAIN;
3853N/Astatic DECLCALLBACK(int) drvNetShaperUp_FreeBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf)
3853N/A return VERR_NET_DOWN;
3853N/Astatic DECLCALLBACK(int) drvNetShaperUp_SendBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf, bool fOnWorkerThread)
3853N/A return VERR_NET_DOWN;
3853N/Astatic DECLCALLBACK(void) drvNetShaperUp_SetPromiscuousMode(PPDMINETWORKUP pInterface, bool fPromiscuous)
3853N/Astatic DECLCALLBACK(void) drvNetShaperUp_NotifyLinkChanged(PPDMINETWORKUP pInterface, PDMNETWORKLINKSTATE enmLinkState)
3853N/Astatic DECLCALLBACK(int) drvNetShaperDown_WaitReceiveAvail(PPDMINETWORKDOWN pInterface, RTMSINTERVAL cMillies)
3853N/Astatic DECLCALLBACK(int) drvNetShaperDown_Receive(PPDMINETWORKDOWN pInterface, const void *pvBuf, size_t cb)
3853N/A * @param pInterface Pointer to the interface structure containing the called function pointer.
3853N/Astatic DECLCALLBACK(int) drvNetShaperDownCfg_GetMac(PPDMINETWORKCONFIG pInterface, PRTMAC pMac)
3853N/A * @param pInterface Pointer to the interface structure containing the called function pointer.
3853N/Astatic DECLCALLBACK(PDMNETWORKLINKSTATE) drvNetShaperDownCfg_GetLinkState(PPDMINETWORKCONFIG pInterface)
3853N/A * @param pInterface Pointer to the interface structure containing the called function pointer.
3853N/Astatic DECLCALLBACK(int) drvNetShaperDownCfg_SetLinkState(PPDMINETWORKCONFIG pInterface, PDMNETWORKLINKSTATE enmState)
3853N/Astatic DECLCALLBACK(void *) drvNetShaperQueryInterface(PPDMIBASE pInterface, const char *pszIID)
3853N/A AssertMsgFailed(("Configuration error: the driver below didn't export the network connector interface!\n"));
3853N/A return VINF_SUCCESS;
3853N/Astatic DECLCALLBACK(int) drvNetShaperConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
3853N/A AssertMsgFailed(("Configuration error: the above device/driver didn't export the network port interface!\n"));
3853N/A AssertMsgFailed(("Configuration error: the above device/driver didn't export the network config interface!\n"));
3853N/A AssertMsgFailed(("Configuration error: the driver below didn't export the network connector interface!\n"));
3853N/A PDMDrvHlpSTAMRegCounterEx(pDrvIns, &pThis->StatXmitBytesRequested, "Bytes/Tx/Requested", STAMUNIT_BYTES, "Number of requested TX bytes.");
3853N/A PDMDrvHlpSTAMRegCounterEx(pDrvIns, &pThis->StatXmitBytesDenied, "Bytes/Tx/Denied", STAMUNIT_BYTES, "Number of denied TX bytes.");
3853N/A PDMDrvHlpSTAMRegCounterEx(pDrvIns, &pThis->StatXmitBytesGranted, "Bytes/Tx/Granted", STAMUNIT_BYTES, "Number of granted TX bytes.");
3853N/A PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitPktsRequested, "Packets/Tx/Requested", "Number of requested TX packets.");
3853N/A PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitPktsDenied, "Packets/Tx/Denied", "Number of denied TX packets.");
3853N/A PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitPktsGranted, "Packets/Tx/Granted", "Number of granted TX packets.");
3853N/A PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitPendingCalled, "Tx/WakeUp", "Number of wakeup TX calls.");
3853N/A return VINF_SUCCESS;
5130N/A sizeof(DRVNETSHAPER),