]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Some platforms, e.g. some versions of AIX, appear not to define "struct
authorguy <guy>
Wed, 1 Aug 2001 03:34:00 +0000 (03:34 +0000)
committerguy <guy>
Wed, 1 Aug 2001 03:34:00 +0000 (03:34 +0000)
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".

sctpHeader.h

index b99a748bca87408d115a00dd86434cff85200554..e6b14c4f7c37ed49673d4d51f203c49d9eb69920 100644 (file)
@@ -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
  *
 
 /* 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 */
 /* 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 */
   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 */