Home |
Function xn_add_host_table_entry Function xn_delete_host_table_entry Function xn_interface_open_config Function xn_interface_ethernet_statistics Function xn_interface_statistics Function xn_send_ethernet_frame Function cb_wr_screen_string_fnc Function cb_rs232_connection_lost_fnc |
Function xn_interface_ethernet_statisticsThis function returns Ethernet I/O statistics of an interface. struct ether_statistics { long packets_in; long packets_out; long bytes_in; long bytes_out; long errors_in; long errors_out; long packets_lost; long one_collision; /* one collision occurred, xmit ok */ long multiple_collisions; /* more than one collision, xmit ok */ long owc_collision; /* out of window collision occurred, */ /* xmit ok */ long collision_errors; /* excessive collisions, xmit aborted */ long rx_overwrite_errors; /* ring buffer overflow */ long rx_frame_errors; /* packet to large */ long rx_crc_errors; long rx_fifo_errors; /* rx fifo overrun */ long rx_other_errors; /* other errors not counted in SNMP */ /* statistics (includes ring buffer */ /* corrupt, ring buffer overflow, */ /* frame alignment error, FIFO */ /* overrun, missed packet */ long tx_carrier_errors; /* carrier sense errors */ long tx_fifo_errors; /* fifo underrun */ long tx_delayed; /* xmit delayed due to medium busy */ long tx_sqe_errors; /* SQE Error */ long tx_other_errors; /* other errors not counted in SNMP */ /* statistics (includes xmit timeout, */ /* DMA failed to complete, */ /* bus error */ }; int xn_interface_ethernet_statistics(int iface_no, struct ether_statistics * stats); Parametersiface_noInterface number (returned from xn_interface_open or xn_interface_open_config). statspointer to an ether_statistics structure to receive the statistics. return valueReturns 1 for success or 0 on failure. Depending on the capabilities of the Ethernet controller of the specified interface, some fields of struct ether_statistics may not be applicable and will be returned as zero. Function xn_interface_statistics
|