summaryrefslogtreecommitdiffstats
path: root/include/protocols
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-11-20 06:36:09 +0000
committerjhb <jhb@FreeBSD.org>2001-11-20 06:36:09 +0000
commit9f1e9b7b8957136695856043f7f82179a65b16b4 (patch)
tree348013711bf9fb5908dff97b1ce0bd3ac962a9ab /include/protocols
parent3212bd4f7f7d6d47e087468730dbbcb390f12af9 (diff)
downloadFreeBSD-src-9f1e9b7b8957136695856043f7f82179a65b16b4.zip
FreeBSD-src-9f1e9b7b8957136695856043f7f82179a65b16b4.tar.gz
Use fixed-size fields in the structure for the timed protocol. This
includes changing a struct timeval to an explicit structure of two int32_t's. This requires using temporary timevals in several places when calling gettimeofday(), settimeofday(), etc. With this timed now works properly on 64-bit platforms such as Alpha. Obtained from: NetBSD
Diffstat (limited to 'include/protocols')
-rw-r--r--include/protocols/timed.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/protocols/timed.h b/include/protocols/timed.h
index 6c6a05e..75b27ed 100644
--- a/include/protocols/timed.h
+++ b/include/protocols/timed.h
@@ -31,6 +31,8 @@
* SUCH DAMAGE.
*
* @(#)timed.h 8.1 (Berkeley) 6/2/93
+ *
+ * $FreeBSD$
*/
#ifndef _PROTOCOLS_TIMED_H_
@@ -44,11 +46,14 @@
#define ANYADDR NULL
struct tsp {
- u_char tsp_type;
- u_char tsp_vers;
- u_short tsp_seq;
+ u_int8_t tsp_type;
+ u_int8_t tsp_vers;
+ u_int16_t tsp_seq;
union {
- struct timeval tspu_time;
+ struct {
+ int32_t tv_sec;
+ int32_t tv_usec;
+ } tspu_time;
char tspu_hopcnt;
} tsp_u;
char tsp_name[MAXHOSTNAMELEN];
OpenPOWER on IntegriCloud