diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-02-09 03:24:12 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-02-09 03:24:12 +0000 |
commit | 13d8e41e0f69f86b6f7f38a149f625ef10d39173 (patch) | |
tree | de104b3427d8c0eee621a6bd8b9bf09c56b7243b /epan/dissectors/packet-ntp.h | |
parent | 92cd49b4c22920175175184afba3de4998752b26 (diff) |
A couple of dissectors have/need an NTP-to-nstime routine, so put it in
packet-ntp and export it to the other dissectors.
Move some macros (now) only used in packet-ntp.c into that file.
svn path=/trunk/; revision=35887
Diffstat (limited to 'epan/dissectors/packet-ntp.h')
-rw-r--r-- | epan/dissectors/packet-ntp.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ntp.h b/epan/dissectors/packet-ntp.h index 8906cca963..67d5714817 100644 --- a/epan/dissectors/packet-ntp.h +++ b/epan/dissectors/packet-ntp.h @@ -28,10 +28,7 @@ #ifndef PACKET_NTP_H #define PACKET_NTP_H -/* NTP_BASETIME is in fact epoch - ntp_start_time */ -#define NTP_BASETIME 2208988800ul -#define NTP_TS_SIZE 100 - extern const char *tvb_ntp_fmt_ts(tvbuff_t *tvb, gint offset); +extern void ntp_to_nstime(tvbuff_t *tvb, gint offset, nstime_t *nstime); #endif |