Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Replace u_quad_t with uint64_t. u_quad_t is just a ...



details:   https://anonhg.NetBSD.org/src/rev/7f7dbedb9c9a
branches:  trunk
changeset: 747917:7f7dbedb9c9a
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Mon Oct 05 21:25:05 2009 +0000

description:
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.

diffstat:

 sys/net/if.h         |  30 +++++++++++++++---------------
 sys/net/if_media.c   |   6 +++---
 sys/net/if_media.h   |   6 +++---
 sys/net/if_spppvar.h |   4 ++--
 4 files changed, 23 insertions(+), 23 deletions(-)

diffs (117 lines):

diff -r fd6dddabadc7 -r 7f7dbedb9c9a sys/net/if.h
--- a/sys/net/if.h      Mon Oct 05 20:03:47 2009 +0000
+++ b/sys/net/if.h      Mon Oct 05 21:25:05 2009 +0000
@@ -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 @@
        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 */
 };
 
diff -r fd6dddabadc7 -r 7f7dbedb9c9a sys/net/if_media.c
--- a/sys/net/if_media.c        Mon Oct 05 20:03:47 2009 +0000
+++ b/sys/net/if_media.c        Mon Oct 05 21:25:05 2009 +0000
@@ -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 @@
 static const struct ifmedia_baudrate ifmedia_baudrate_descriptions[] =
     IFM_BAUDRATE_DESCRIPTIONS;
 
-u_quad_t
+uint64_t
 ifmedia_baudrate(int mword)
 {
        int i;
diff -r fd6dddabadc7 -r 7f7dbedb9c9a sys/net/if_media.h
--- a/sys/net/if_media.h        Mon Oct 05 20:03:47 2009 +0000
+++ b/sys/net/if_media.h        Mon Oct 05 21:25:05 2009 +0000
@@ -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 @@
 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_baudrate {
        int     ifmb_word;              /* media word */
-       u_quad_t        ifmb_baudrate;          /* corresponding baudrate */
+       uint64_t        ifmb_baudrate;          /* corresponding baudrate */
 };
 
 #define        IFM_BAUDRATE_DESCRIPTIONS {                                     \
diff -r fd6dddabadc7 -r 7f7dbedb9c9a sys/net/if_spppvar.h
--- a/sys/net/if_spppvar.h      Mon Oct 05 20:03:47 2009 +0000
+++ b/sys/net/if_spppvar.h      Mon Oct 05 21:25:05 2009 +0000
@@ -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 @@
        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



Home | Main Index | Thread Index | Old Index