summaryrefslogtreecommitdiffstats
path: root/src/interface
diff options
context:
space:
mode:
authorMichael Brown2007-07-05 18:18:27 +0200
committerMichael Brown2007-07-05 18:18:27 +0200
commit539ff45fd0e8a4d4a979c28d9e5be8526a0eccaf (patch)
treed334500a329bad55622321e0dc27ee70a9672614 /src/interface
parentUse partition type 0xeb ("EtherBoot"), to avoid any attempts to mount (diff)
downloadipxe-539ff45fd0e8a4d4a979c28d9e5be8526a0eccaf.tar.gz
ipxe-539ff45fd0e8a4d4a979c28d9e5be8526a0eccaf.tar.xz
ipxe-539ff45fd0e8a4d4a979c28d9e5be8526a0eccaf.zip
Allow recording of TX and RX errors to aid in end-user debugging.
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/pxe/pxe_undi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interface/pxe/pxe_undi.c b/src/interface/pxe/pxe_undi.c
index 98c4cb104..cc23de70c 100644
--- a/src/interface/pxe/pxe_undi.c
+++ b/src/interface/pxe/pxe_undi.c
@@ -371,10 +371,10 @@ PXENV_EXIT_t pxenv_undi_get_statistics ( struct s_PXENV_UNDI_GET_STATISTICS
*undi_get_statistics ) {
DBG ( "PXENV_UNDI_GET_STATISTICS" );
- undi_get_statistics->XmtGoodFrames = pxe_netdev->stats.tx_count;
- undi_get_statistics->RcvGoodFrames = pxe_netdev->stats.rx_count;
- undi_get_statistics->RcvCRCErrors = 0;
- undi_get_statistics->RcvResourceErrors = 0;
+ undi_get_statistics->XmtGoodFrames = pxe_netdev->stats.tx_ok;
+ undi_get_statistics->RcvGoodFrames = pxe_netdev->stats.rx_ok;
+ undi_get_statistics->RcvCRCErrors = pxe_netdev->stats.rx_err;
+ undi_get_statistics->RcvResourceErrors = pxe_netdev->stats.rx_err;
undi_get_statistics->Status = PXENV_STATUS_SUCCESS;
return PXENV_EXIT_SUCCESS;