From: guy Date: Wed, 1 Aug 2001 03:34:00 +0000 (+0000) Subject: Some platforms, e.g. some versions of AIX, appear not to define "struct X-Git-Tag: tcpdump-3.7.1~116 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/d3d23a38fcf73f54250c5b1aed1c214e7c78a014?ds=sidebyside Some platforms, e.g. some versions of AIX, appear not to define "struct timespec", or at least they don't do so with the headers included by "print-sctp.c". Define, instead, our own data structure for seconds/microseconds time stamps, and use that instead of "struct timespec". --- diff --git a/sctpHeader.h b/sctpHeader.h index b99a748b..e6b14c4f 100644 --- a/sctpHeader.h +++ b/sctpHeader.h @@ -1,4 +1,4 @@ -/* @(#) $Header: /tcpdump/master/tcpdump/sctpHeader.h,v 1.2 2001-06-28 10:17:24 guy Exp $ (LBL) */ +/* @(#) $Header: /tcpdump/master/tcpdump/sctpHeader.h,v 1.3 2001-08-01 03:34:00 guy Exp $ (LBL) */ /* SCTP reference Implementation Copyright (C) 1999 Cisco And Motorola * @@ -132,12 +132,17 @@ struct sctpCookiePreserve{ }; +struct sctpTimeStamp{ + u_int ts_sec; + u_int ts_usec; +}; + /* wire structure of my cookie */ struct cookieMessage{ u_int TieTag_curTag; /* copied from assoc if present */ u_int TieTag_hisTag; /* copied from assoc if present */ int cookieLife; /* life I will award this cookie */ - struct timespec timeEnteringState; /* the time I built cookie */ + struct sctpTimeStamp timeEnteringState; /* the time I built cookie */ struct sctpInitiation initAckISent; /* the INIT-ACK that I sent to my peer */ u_int addressWhereISent[4]; /* I make this 4 ints so I get 128bits for future */ int addrtype; /* address type */