patch-2.1.109 linux/include/linux/if_tr.h

Next file: linux/include/linux/ipx.h
Previous file: linux/include/linux/if_pppvar.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/include/linux/if_tr.h linux/include/linux/if_tr.h
@@ -59,29 +59,31 @@
 
 /* Token-Ring statistics collection data. */
 struct tr_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 transmit_collision;
+	unsigned long rx_packets;       /* total packets received	*/
+	unsigned long tx_packets;	/* total packets transmitted	*/
+	unsigned long rx_bytes;		/* total bytes received   	*/
+	unsigned long tx_bytes;		/* total bytes transmitted	*/
+	unsigned long rx_errors;	/* bad packets received		*/
+	unsigned long tx_errors;	/* packet transmit problems	*/
+	unsigned long rx_dropped;	/* no space in linux buffers	*/
+	unsigned long tx_dropped;	/* no space available in linux	*/
+	unsigned long multicast;	/* multicast packets received	*/
+	unsigned long transmit_collision;
 
 	/* detailed Token-Ring errors. See IBM Token-Ring Network
 	   Architecture for more info */
 
-	int line_errors;
-	int internal_errors;
-	int burst_errors;
-	int A_C_errors;
-	int abort_delimiters;
-	int lost_frames;
-	int recv_congest_count;
-	int frame_copied_errors;
-	int frequency_errors;
-	int token_errors;
-	int dummy1;
+	unsigned long line_errors;
+	unsigned long internal_errors;
+	unsigned long burst_errors;
+	unsigned long A_C_errors;
+	unsigned long abort_delimiters;
+	unsigned long lost_frames;
+	unsigned long recv_congest_count;
+	unsigned long frame_copied_errors;
+	unsigned long frequency_errors;
+	unsigned long token_errors;
+	unsigned long dummy1;
 };
 
 /* source routing stuff */
@@ -93,5 +95,6 @@
 #define TR_RCF_LIMITED_BROADCAST 0xC000 /* single-route broadcast */
 #define TR_RCF_FRAME2K 0x20
 #define TR_RCF_BROADCAST_MASK 0xC000
+#define TR_MAXRIFLEN 18
 
 #endif	/* _LINUX_IF_TR_H */

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