Changeset 24455 in vbox
- Timestamp:
- Nov 6, 2009 3:46:29 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r24265 r24455 617 617 #endif 618 618 static void pcnetPollTimerStart(PCNetState *pThis); 619 620 /** 621 * Checks if the link is up. 622 * @returns true if the link is up. 623 * @returns false if the link is down. 624 */ 625 DECLINLINE(bool) pcnetIsLinkUp(PCNetState *pThis) 626 { 627 return pThis->pDrv && !pThis->fLinkTempDown && pThis->fLinkUp; 628 } 619 629 620 630 /** … … 1849 1859 return; 1850 1860 1861 /* 1862 * Drop packets if the cable is not connected 1863 */ 1864 if (!pcnetIsLinkUp(pThis)) 1865 return; 1866 1851 1867 Log(("#%d pcnetReceiveNoSync: size=%d\n", PCNET_INST_NR, cbToRecv)); 1852 1868 … … 2037 2053 pcnetPollRxTx(pThis); 2038 2054 pcnetUpdateIrq(pThis); 2039 }2040 2041 2042 /**2043 * Checks if the link is up.2044 * @returns true if the link is up.2045 * @returns false if the link is down.2046 */2047 DECLINLINE(bool) pcnetIsLinkUp(PCNetState *pThis)2048 {2049 return pThis->pDrv && !pThis->fLinkTempDown && pThis->fLinkUp;2050 2055 } 2051 2056
Note:
See TracChangeset
for help on using the changeset viewer.

