summaryrefslogtreecommitdiff
path: root/net/pload/patches/patch-ad
blob: 7a293c8f0f0c07e2c7a807fea2c6f801157606f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ad,v 1.2 2012/08/11 17:20:23 marino Exp $

--- pload.h.orig	2000-02-01 07:11:24.000000000 +0000
+++ pload.h
@@ -35,10 +35,17 @@ struct if_dat
 #ifdef LINUXPROC
 	FILE *file;				/* /proc/net/dev	*/
 #endif	
+#if defined(__NetBSD__) || defined(__DragonFly__)
+	u_quad_t in_bytes;			/* total bytes in 	*/
+	u_quad_t in_bytes_old;			/* last total bytes in	*/
+	u_quad_t out_bytes;			/* total bytes out 	*/
+	u_quad_t out_bytes_old;			/* last total byts out	*/
+#else
 	unsigned long in_bytes;			/* total bytes in 	*/
 	unsigned long in_bytes_old;		/* last total bytes in	*/
 	unsigned long out_bytes;		/* total bytes out 	*/
 	unsigned long out_bytes_old;		/* last total byts out	*/
+#endif
 	struct timeval prev_time;		/* last time 		*/
 	struct timeval curr_time;		/* time now		*/
 	int history_size;			/* # pts to average over*/