From 40a67dc59f0a77b3968c88cd4a7afa0b42afa889 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 6 Jan 2001 09:42:10 +0000 Subject: Tvbuffify the NTP and time protocol dissectors. svn path=/trunk/; revision=2839 --- packet-ntp.h | 41 +---------------------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) (limited to 'packet-ntp.h') diff --git a/packet-ntp.h b/packet-ntp.h index 0e96969d24..20eb8320d6 100644 --- a/packet-ntp.h +++ b/packet-ntp.h @@ -1,7 +1,7 @@ /* packet-ntp.h * Definitions for packet disassembly structures and routines * - * $Id: packet-ntp.h,v 1.4 2000/04/08 07:07:32 guy Exp $ + * $Id: packet-ntp.h,v 1.5 2001/01/06 09:42:10 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -59,43 +59,4 @@ #define NTP_BASETIME 2208988800ul #define NTP_TS_SIZE 100 -/* packet structure based on one in xntp package */ -/* to satisfy it's requirements, even though the code isn't copied -directly: */ - -/*********************************************************************** - * * - * Copyright (c) David L. Mills 1992, 1993, 1994, 1995, 1996 * - * * - * Permission to use, copy, modify, and distribute this software and * - * its documentation for any purpose and without fee is hereby * - * granted, provided that the above copyright notice appears in all * - * copies and that both the copyright notice and this permission * - * notice appear in supporting documentation, and that the name * - * University of Delaware not be used in advertising or publicity * - * pertaining to distribution of the software without specific, * - * written prior permission. The University of Delaware makes no * - * representations about the suitability this software for any * - * purpose. It is provided "as is" without express or implied * - * warranty. * - **********************************************************************/ - -struct ntp_packet -{ - unsigned char flags[1]; /* leap indicator, version and mode */ /* 0 */ - unsigned char stratum[1]; /* peer's stratum */ - unsigned char ppoll[1]; /* the peer polling interval */ - char precision[1]; /* peer clock precision */ - unsigned char rootdelay[4]; /* distance to primary clock */ /* 4 */ - unsigned char rootdispersion[4]; /* clock dispersion */ /* 8 */ - unsigned char refid[4]; /* reference clock ID */ /* 12-15 */ - unsigned char reftime[8]; /* time peer clock was last updated */ /* 16-23 */ - unsigned char org[8]; /* originate time stamp */ /* 24 */ - unsigned char rec[8]; /* receive time stamp */ /* 32 */ - unsigned char xmt[8]; /* transmit time stamp */ - unsigned char keyid[4]; /* key identification */ /* 48 */ - unsigned char mac[16]; /* message-authentication code */ /* 52 - 60 */ - /* can also be 16, if MD5 instead of DES */ -}; - #endif -- cgit v1.2.3