patch-2.1.25 linux/include/linux/if_ether.h

Next file: linux/include/linux/if_ltalk.h
Previous file: linux/include/linux/if_arp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.24/linux/include/linux/if_ether.h linux/include/linux/if_ether.h
@@ -85,35 +85,11 @@
 };
 
 /*
- *	Ethernet statistics collection data. 
+ *	We Have changed the ethernet statistics collection data. This
+ *	is just for partial compatibility for now.
  */
  
-struct enet_statistics
-{
-	int	rx_packets;		/* total packets received	*/
-	int	tx_packets;		/* total packets transmitted	*/
-	int	rx_errors;		/* bad packets received		*/
-	int	tx_errors;		/* packet transmit problems	*/
-	int	rx_dropped;		/* no space in linux buffers	*/
-	int	tx_dropped;		/* no space available in linux	*/
-	int	multicast;		/* multicast packets received	*/
-	int	collisions;
-
-	/* detailed rx_errors: */
-	int	rx_length_errors;
-	int	rx_over_errors;		/* receiver ring buff overflow	*/
-	int	rx_crc_errors;		/* recved pkt with crc error	*/
-	int	rx_frame_errors;	/* recv'd frame alignment error */
-	int	rx_fifo_errors;		/* recv'r fifo overrun		*/
-	int	rx_missed_errors;	/* receiver missed packet	*/
-
-	/* detailed tx_errors */
-	int	tx_aborted_errors;
-	int	tx_carrier_errors;
-	int	tx_fifo_errors;
-	int	tx_heartbeat_errors;
-	int	tx_window_errors;
-};
-
+ 
+#define enet_statistics net_device_stats
 
 #endif	/* _LINUX_IF_ETHER_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov