summaryrefslogtreecommitdiff
path: root/sys/net/if_media.h
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2007-09-17 17:34:23 +0000
committerBrad Smith <brad@cvs.openbsd.org>2007-09-17 17:34:23 +0000
commit1c27baa68a04273c33ad33b1f0bd02451d148bb9 (patch)
treeddc66f8506960d2096fc6cb33fd14dc06dfabd81 /sys/net/if_media.h
parentc1f478363d8a072b5d3942b0da9b32ebeefc1ab4 (diff)
- Use a 64-bit int for the baudrate within the ifmedia_baudrate struct and
return a 64-bit int for ifmedia_baudrate(). - Fix consumers of ifmedia_baudrate() to deal with the change. ok claudio@ dlg@
Diffstat (limited to 'sys/net/if_media.h')
-rw-r--r--sys/net/if_media.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index 16707aaaae4..ca06b448a31 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_media.h,v 1.24 2007/05/29 22:11:57 henning Exp $ */
+/* $OpenBSD: if_media.h,v 1.25 2007/09/17 17:34:22 brad Exp $ */
/* $NetBSD: if_media.h,v 1.22 2000/02/17 21:53:16 sommerfeld Exp $ */
/*-
@@ -145,7 +145,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. */
-int ifmedia_baudrate(int);
+u_int64_t ifmedia_baudrate(int);
#endif /*_KERNEL */
/*
@@ -514,7 +514,7 @@ struct ifmedia_description {
*/
struct ifmedia_baudrate {
int ifmb_word; /* media word */
- int ifmb_baudrate; /* corresponding baudrate */
+ u_int64_t ifmb_baudrate; /* corresponding baudrate */
};
#define IFM_BAUDRATE_DESCRIPTIONS { \