Deleted Added
full compact
print-ntp.c (98527) print-ntp.c (111729)
1/*
2 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 8 unchanged lines hidden (view full) ---

17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * Format and print ntp packets.
22 * By Jeffrey Mogul/DECWRL
23 * loosely based on print-bootp.c
24 *
1/*
2 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 8 unchanged lines hidden (view full) ---

17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * Format and print ntp packets.
22 * By Jeffrey Mogul/DECWRL
23 * loosely based on print-bootp.c
24 *
25 * $FreeBSD: head/contrib/tcpdump/print-ntp.c 98527 2002-06-21 00:49:02Z fenner $
25 * $FreeBSD: head/contrib/tcpdump/print-ntp.c 111729 2003-03-02 08:25:48Z fenner $
26 */
27
28#ifndef lint
29static const char rcsid[] =
26 */
27
28#ifndef lint
29static const char rcsid[] =
30 "@(#) $Header: /tcpdump/master/tcpdump/print-ntp.c,v 1.32 2001/08/20 15:36:57 fenner Exp $ (LBL)";
30 "@(#) $Header: /tcpdump/master/tcpdump/print-ntp.c,v 1.32.4.1 2002/07/10 07:13:37 guy Exp $ (LBL)";
31#endif
32
33#ifdef HAVE_CONFIG_H
34#include "config.h"
35#endif
36
37#include <sys/param.h>
38#include <sys/time.h>

--- 113 unchanged lines hidden (view full) ---

152 /* Interpretation depends on stratum */
153 switch (bp->stratum) {
154
155 case UNSPECIFIED:
156 printf("(unspec)");
157 break;
158
159 case PRIM_REF:
31#endif
32
33#ifdef HAVE_CONFIG_H
34#include "config.h"
35#endif
36
37#include <sys/param.h>
38#include <sys/time.h>

--- 113 unchanged lines hidden (view full) ---

152 /* Interpretation depends on stratum */
153 switch (bp->stratum) {
154
155 case UNSPECIFIED:
156 printf("(unspec)");
157 break;
158
159 case PRIM_REF:
160 fn_printn((char *)&(bp->refid), 4, NULL);
160 fn_printn((u_char *)&(bp->refid), 4, NULL);
161 break;
162
163 case INFO_QUERY:
164 printf("%s INFO_QUERY", ipaddr_string(&(bp->refid)));
165 /* this doesn't have more content */
166 return;
167
168 case INFO_REPLY:

--- 114 unchanged lines hidden ---
161 break;
162
163 case INFO_QUERY:
164 printf("%s INFO_QUERY", ipaddr_string(&(bp->refid)));
165 /* this doesn't have more content */
166 return;
167
168 case INFO_REPLY:

--- 114 unchanged lines hidden ---