Use a larger data type to prevent counters wrapping so quickly.
Silence a warning.
This commit is contained in:
parent
c44ed52b2e
commit
7224076dfe
@ -394,7 +394,7 @@ print_asrv_info(si)
|
||||
for (i = 0; i < si->asp_nprefix; i++) {
|
||||
printf("%s", inet_ntoa(*addr));
|
||||
addr++;
|
||||
printf("/0x%0lx", ntohl(addr->s_addr));
|
||||
printf("/0x%0lx", (u_long)ntohl(addr->s_addr));
|
||||
addr++;
|
||||
if (i < si->asp_nprefix -1)
|
||||
printf(", ");
|
||||
@ -690,7 +690,7 @@ print_intf_stats(pi)
|
||||
/*
|
||||
* Print the interface statistics
|
||||
*/
|
||||
printf("%-9s %7ld %8ld %5ld %7ld %8ld %5ld %5ld\n",
|
||||
printf("%-9s %7lld %8lld %5lld %7lld %8lld %5lld %5lld\n",
|
||||
pi->app_intf,
|
||||
pi->app_ipdus,
|
||||
pi->app_ibytes,
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user