Update from Paul Ionescu to set the reported length of the tvbuff for
[obnox/wireshark/wip.git] / packet-ntp.h
1 /* packet-ntp.h
2  * Definitions for packet disassembly structures and routines
3  *
4  * $Id: packet-ntp.h,v 1.5 2001/01/06 09:42:10 guy Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@zing.org>
8  * Copyright 1998 Gerald Combs
9  * Joerg Mayer <jmayer@telemation.de>
10  *
11  * 
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  * 
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  * 
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25  */
26
27 /* This is from yahoolib.h from gtkyahoo */
28
29 #ifndef PACKET_NTP_H
30 #define PACKET_NTP_H
31
32 #define NTP_LI_MASK     192
33 #define NTP_LI_NONE     0
34 #define NTP_LI_61       64
35 #define NTP_LI_59       128
36 #define NTP_LI_ALARM    192
37
38 #define NTP_VN_MASK     56
39 #define NTP_VN_R0       0
40 #define NTP_VN_R1       8
41 #define NTP_VN_R2       16
42 #define NTP_VN_3        24
43 #define NTP_VN_4        32
44 #define NTP_VN_R5       40
45 #define NTP_VN_R6       48
46 #define NTP_VN_R7       56
47
48 #define NTP_MODE_MASK   7
49 #define NTP_MODE_RSV    0
50 #define NTP_MODE_SYMACT 1
51 #define NTP_MODE_SYMPAS 2
52 #define NTP_MODE_CLIENT 3
53 #define NTP_MODE_SERVER 4
54 #define NTP_MODE_BCAST  5
55 #define NTP_MODE_CTRL   6
56 #define NTP_MODE_PRIV   7
57
58 /* NTP_BASETIME is infact epoch - ntp_start_time */
59 #define NTP_BASETIME 2208988800ul
60 #define NTP_TS_SIZE 100
61
62 #endif