summaryrefslogtreecommitdiff
path: root/timed.h
diff options
context:
space:
mode:
authorguy <guy>2008-02-05 19:46:19 +0000
committerguy <guy>2008-02-05 19:46:19 +0000
commit94a5fe907e260fdee6149d0d505043bbcd8c1f81 (patch)
treef79865b90661836568f805bfb147878e13988ab7 /timed.h
parent947533a7fc6e806ee111d33e2e2b9e5dae662b4e (diff)
downloadtcpdump-94a5fe907e260fdee6149d0d505043bbcd8c1f81.tar.gz
"struct timeval" isn't guaranteed to be two 32-bit values (consider a
64-bit time_t); create a structure that is guaranteed to be two 32-bit values.
Diffstat (limited to 'timed.h')
-rw-r--r--timed.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/timed.h b/timed.h
index 713f353a..f8d5a113 100644
--- a/timed.h
+++ b/timed.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/timed.h,v 1.5 2002-12-11 07:14:12 guy Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/timed.h,v 1.6 2008-02-05 19:46:19 guy Exp $ (LBL) */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -44,12 +44,17 @@
#define TSPVERSION 1
#define ANYADDR NULL
+struct tsp_timeval {
+ u_int32_t tv_sec;
+ u_int32_t tv_usec;
+};
+
struct tsp {
u_int8_t tsp_type;
u_int8_t tsp_vers;
u_int16_t tsp_seq;
union {
- struct timeval tspu_time;
+ struct tsp_timeval tspu_time;
int8_t tspu_hopcnt;
} tsp_u;
int8_t tsp_name[256];