Subversion Repositories HelenOS

Rev

Rev 4723 | Rev 4731 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4723 Rev 4728
Line 104... Line 104...
104
 
104
 
105
    if( ! stats ) return EBADMEM;
105
    if( ! stats ) return EBADMEM;
106
    ERROR_PROPAGATE( find_device( device_id, & device ));
106
    ERROR_PROPAGATE( find_device( device_id, & device ));
107
    de_stat = & (( dpeth_t * ) device->specific )->de_stat;
107
    de_stat = & (( dpeth_t * ) device->specific )->de_stat;
108
    null_device_stats( stats );
108
    null_device_stats( stats );
109
    stats->rx_errors = de_stat->ets_recvErr;
109
    stats->receive_errors = de_stat->ets_recvErr;
110
    stats->tx_errors = de_stat->ets_sendErr;
110
    stats->send_errors = de_stat->ets_sendErr;
111
    stats->rx_crc_errors = de_stat->ets_CRCerr;
111
    stats->receive_crc_errors = de_stat->ets_CRCerr;
112
    stats->rx_frame_errors = de_stat->ets_frameAll;
112
    stats->receive_frame_errors = de_stat->ets_frameAll;
113
    stats->rx_missed_errors = de_stat->ets_missedP;
113
    stats->receive_missed_errors = de_stat->ets_missedP;
114
    stats->rx_packets = de_stat->ets_packetR;
114
    stats->receive_packets = de_stat->ets_packetR;
115
    stats->tx_packets = de_stat->ets_packetT;
115
    stats->send_packets = de_stat->ets_packetT;
116
    stats->collisions = de_stat->ets_collision;
116
    stats->collisions = de_stat->ets_collision;
117
    stats->tx_aborted_errors = de_stat->ets_transAb;
117
    stats->send_aborted_errors = de_stat->ets_transAb;
118
    stats->tx_carrier_errors = de_stat->ets_carrSense;
118
    stats->send_carrier_errors = de_stat->ets_carrSense;
119
    stats->tx_heartbeat_errors = de_stat->ets_CDheartbeat;
119
    stats->send_heartbeat_errors = de_stat->ets_CDheartbeat;
120
    stats->tx_window_errors = de_stat->ets_OWC;
120
    stats->send_window_errors = de_stat->ets_OWC;
121
    return EOK;
121
    return EOK;
122
}
122
}
123
 
123
 
124
void module_print_name( void ){
124
void module_print_name( void ){
125
    printf( "%s", NAME );
125
    printf( "%s", NAME );