aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-03-25 21:58:47 -0700
committerGuy Harris <guy@alum.mit.edu>2017-03-26 04:59:35 +0000
commitbb2ab6ac9664869eaadec1d472acb478be285168 (patch)
tree89bdcdfed887ecd579761631a9d8cfaa8db13e5d /epan/proto.h
parenta6730565f8569b0b8dafc8aebad120c5b66cf3cb (diff)
Don't speak of RTPS time_t as an "NTP" time.
It's some weird hybrid of UN*X time and NTP time stamps, using UN*X's epoch and NTP's seconds/fractions split. I'm sure they had their reasons for not using something like struct timespec or regular NTP time, and instead inventing something that's halfway in between them. Change-Id: I1f39ec1368af52b82adfa2a22677dfa6e9341309 Reviewed-on: https://code.wireshark.org/review/20711 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 155f99f51e..bf0ae5e2c9 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -386,21 +386,24 @@ WS_DLL_PUBLIC WS_NORETURN void proto_report_dissector_bug(const char *message);
* ENC_TIME_TOD - 8 bytes, as a count of microseconds since the System/3x0
* and z/Architecture epoch (1900-01-01 00:00:00 GMT).
*
- * ENC_TIME_NTP_BASE_ZERO - 4 or 8 bytes; the first 4 bytes are seconds
- * since the UN*X epoch, and, if there are 8 bytes, the next 4 bytes are
- * are 1/2^32's of a second since that second. (I.e., it's the offspring
- * of a mating between UN*X time and NTP time.)
+ * ENC_TIME_RTPS - 4 or 8 bytes; the first 4 bytes are seconds since the
+ * UN*X epoch, and, if there are 8 bytes, the next 4 bytes are are
+ * 1/2^32's of a second since that second. (I.e., it's the offspring
+ * of a mating between UN*X time and NTP time.) It's used by the Object
+ * Management Group's Real-Time Publish-Subscribe Wire Protocol for the
+ * Data Distribution Service.
*
* ENC_TIME_TIMEVAL - 8 bytes; the first 4 bytes are seconds since
* the UN*X epoch (1970-01-01 00:00:00 UTC), and, if there are 8 bytes,
* the next 4 bytes are microseconds since that second. (I.e., a UN*X
* struct timeval with a 4-byte time_t.)
*/
-#define ENC_TIME_TIMESPEC 0x00000000
-#define ENC_TIME_NTP 0x00000002
-#define ENC_TIME_TOD 0x00000004
-#define ENC_TIME_NTP_BASE_ZERO 0x00000008
-#define ENC_TIME_TIMEVAL 0x00000010
+#define ENC_TIME_TIMESPEC 0x00000000
+#define ENC_TIME_NTP 0x00000002
+#define ENC_TIME_TOD 0x00000004
+#define ENC_TIME_RTPS 0x00000008
+#define ENC_TIME_NTP_BASE_ZERO ENC_TIME_RTP /* for backwards source compatibility */
+#define ENC_TIME_TIMEVAL 0x00000010
/*
* Historically, the only place the representation mattered for strings