summaryrefslogtreecommitdiffstats
path: root/sys/netatm
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2002-06-07 05:29:13 +0000
committermdodd <mdodd@FreeBSD.org>2002-06-07 05:29:13 +0000
commit355983613bbc6fd202bee72ca1fda7bc3c0a714f (patch)
treef1859f6aa7700aebf32bfadafae584888baa1f63 /sys/netatm
parent829354162289eb08067e97dd84727d7935e13b7b (diff)
downloadFreeBSD-src-355983613bbc6fd202bee72ca1fda7bc3c0a714f.zip
FreeBSD-src-355983613bbc6fd202bee72ca1fda7bc3c0a714f.tar.gz
Use a larger data type to prevent counters wrapping so quickly.
Silence a warning.
Diffstat (limited to 'sys/netatm')
-rw-r--r--sys/netatm/atm_if.h14
-rw-r--r--sys/netatm/atm_ioctl.h14
2 files changed, 14 insertions, 14 deletions
diff --git a/sys/netatm/atm_if.h b/sys/netatm/atm_if.h
index 4388eee..90b3bde 100644
--- a/sys/netatm/atm_if.h
+++ b/sys/netatm/atm_if.h
@@ -170,13 +170,13 @@ struct atm_pif {
(int, caddr_t, caddr_t);
/* Interface statistics */
- long pif_ipdus; /* PDUs received from interface */
- long pif_opdus; /* PDUs sent to interface */
- long pif_ibytes; /* Bytes received from interface */
- long pif_obytes; /* Bytes sent to interface */
- long pif_ierrors; /* Errors receiving from interface */
- long pif_oerrors; /* Errors sending to interface */
- long pif_cmderrors; /* Interface command errors */
+ u_quad_t pif_ipdus; /* PDUs received from interface */
+ u_quad_t pif_opdus; /* PDUs sent to interface */
+ u_quad_t pif_ibytes; /* Bytes received from interface */
+ u_quad_t pif_obytes; /* Bytes sent to interface */
+ u_quad_t pif_ierrors; /* Errors receiving from interface */
+ u_quad_t pif_oerrors; /* Errors sending to interface */
+ u_quad_t pif_cmderrors; /* Interface command errors */
caddr_t pif_cardstats; /* Card specific statistics */
/* Interface capabilities */
diff --git a/sys/netatm/atm_ioctl.h b/sys/netatm/atm_ioctl.h
index a205add..f66b62e 100644
--- a/sys/netatm/atm_ioctl.h
+++ b/sys/netatm/atm_ioctl.h
@@ -376,13 +376,13 @@ struct air_version_rsp {
*/
struct air_phy_stat_rsp {
char app_intf[IFNAMSIZ]; /* Interface name */
- long app_ipdus; /* PDUs received from I/F */
- long app_opdus; /* PDUs sent to I/F */
- long app_ibytes; /* Bytes received from I/F */
- long app_obytes; /* Bytes sent to I/F */
- long app_ierrors; /* Errors receiving from I/F */
- long app_oerrors; /* Errors sending to I/F */
- long app_cmderrors; /* I/F command errors */
+ u_quad_t app_ipdus; /* PDUs received from I/F */
+ u_quad_t app_opdus; /* PDUs sent to I/F */
+ u_quad_t app_ibytes; /* Bytes received from I/F */
+ u_quad_t app_obytes; /* Bytes sent to I/F */
+ u_quad_t app_ierrors; /* Errors receiving from I/F */
+ u_quad_t app_oerrors; /* Errors sending to I/F */
+ u_quad_t app_cmderrors; /* I/F command errors */
};
OpenPOWER on IntegriCloud