summaryrefslogtreecommitdiffstats
path: root/sys/net/if_media.h
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2007-09-17 17:34:22 +0000
committerbrad <brad@openbsd.org>2007-09-17 17:34:22 +0000
commit1d392bcc7cb5beff24272c907ff1555d0ed8b4f6 (patch)
tree77f54c9eb09a022b9f9bea8cf3c38bc03b9a69b1 /sys/net/if_media.h
parentsmall update regarding removal of process highlighting; (diff)
downloadwireguard-openbsd-1d392bcc7cb5beff24272c907ff1555d0ed8b4f6.tar.xz
wireguard-openbsd-1d392bcc7cb5beff24272c907ff1555d0ed8b4f6.zip
- 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 { \