Replace u_quad_t with uint64_t. u_quad_t is just a typedef for

uint64_t, so no ABI/API breakage will result from this change.
This commit is contained in:
dyoung 2009-10-05 21:25:05 +00:00
parent 0fabd75b6e
commit 7b7a580067
4 changed files with 23 additions and 23 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if.h,v 1.144 2009/09/11 22:06:29 dyoung Exp $ */
/* $NetBSD: if.h,v 1.145 2009/10/05 21:25:05 dyoung Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -164,21 +164,21 @@ struct if_data {
u_char ifi_addrlen; /* media address length */
u_char ifi_hdrlen; /* media header length */
int ifi_link_state; /* current link state */
u_quad_t ifi_mtu; /* maximum transmission unit */
u_quad_t ifi_metric; /* routing metric (external only) */
u_quad_t ifi_baudrate; /* linespeed */
uint64_t ifi_mtu; /* maximum transmission unit */
uint64_t ifi_metric; /* routing metric (external only) */
uint64_t ifi_baudrate; /* linespeed */
/* volatile statistics */
u_quad_t ifi_ipackets; /* packets received on interface */
u_quad_t ifi_ierrors; /* input errors on interface */
u_quad_t ifi_opackets; /* packets sent on interface */
u_quad_t ifi_oerrors; /* output errors on interface */
u_quad_t ifi_collisions; /* collisions on csma interfaces */
u_quad_t ifi_ibytes; /* total number of octets received */
u_quad_t ifi_obytes; /* total number of octets sent */
u_quad_t ifi_imcasts; /* packets received via multicast */
u_quad_t ifi_omcasts; /* packets sent via multicast */
u_quad_t ifi_iqdrops; /* dropped on input, this interface */
u_quad_t ifi_noproto; /* destined for unsupported protocol */
uint64_t ifi_ipackets; /* packets received on interface */
uint64_t ifi_ierrors; /* input errors on interface */
uint64_t ifi_opackets; /* packets sent on interface */
uint64_t ifi_oerrors; /* output errors on interface */
uint64_t ifi_collisions; /* collisions on csma interfaces */
uint64_t ifi_ibytes; /* total number of octets received */
uint64_t ifi_obytes; /* total number of octets sent */
uint64_t ifi_imcasts; /* packets received via multicast */
uint64_t ifi_omcasts; /* packets sent via multicast */
uint64_t ifi_iqdrops; /* dropped on input, this interface */
uint64_t ifi_noproto; /* destined for unsupported protocol */
struct timespec ifi_lastchange;/* last operational state change */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_media.c,v 1.29 2008/06/15 16:33:58 christos Exp $ */
/* $NetBSD: if_media.c,v 1.30 2009/10/05 21:27:36 dyoung Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.29 2008/06/15 16:33:58 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.30 2009/10/05 21:27:36 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -429,7 +429,7 @@ ifmedia_removeall(struct ifmedia *ifm)
static const struct ifmedia_baudrate ifmedia_baudrate_descriptions[] =
IFM_BAUDRATE_DESCRIPTIONS;
u_quad_t
uint64_t
ifmedia_baudrate(int mword)
{
int i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_media.h,v 1.52 2009/08/12 11:17:17 msaitoh Exp $ */
/* $NetBSD: if_media.h,v 1.53 2009/10/05 21:27:36 dyoung Exp $ */
/*-
* Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
@ -136,7 +136,7 @@ struct ifmedia_entry *ifmedia_match(struct ifmedia *, u_int, u_int);
void ifmedia_delete_instance(struct ifmedia *, u_int);
/* Compute baudrate for a given media. */
u_quad_t ifmedia_baudrate(int);
uint64_t ifmedia_baudrate(int);
/* Remove all media */
void ifmedia_removeall(struct ifmedia *);
@ -536,7 +536,7 @@ struct ifmedia_description {
*/
struct ifmedia_baudrate {
int ifmb_word; /* media word */
u_quad_t ifmb_baudrate; /* corresponding baudrate */
uint64_t ifmb_baudrate; /* corresponding baudrate */
};
#define IFM_BAUDRATE_DESCRIPTIONS { \

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_spppvar.h,v 1.15 2008/08/22 12:13:18 martin Exp $ */
/* $NetBSD: if_spppvar.h,v 1.16 2009/10/05 21:27:36 dyoung Exp $ */
#ifndef _NET_IF_SPPPVAR_H_
#define _NET_IF_SPPPVAR_H_
@ -89,7 +89,7 @@ struct sppp {
u_int pp_maxalive; /* number or echo req. w/o reply */
u_long pp_seq[IDX_COUNT]; /* local sequence number */
u_long pp_rseq[IDX_COUNT]; /* remote sequence number */
u_quad_t pp_saved_mtu; /* saved MTU value */
uint64_t pp_saved_mtu; /* saved MTU value */
time_t pp_last_receive; /* peer's last "sign of life" */
time_t pp_max_noreceive; /* seconds since last receive before
we start to worry and send echo