print-ntp.c (56896) | print-ntp.c (75118) |
---|---|
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 56896 2000-01-30 01:05:24Z fenner $ | 25 * $FreeBSD: head/contrib/tcpdump/print-ntp.c 75118 2001-04-03 07:50:46Z 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.27 1999/11/21 09:36:57 fenner Exp $ (LBL)"; | 30 "@(#) $Header: /tcpdump/master/tcpdump/print-ntp.c,v 1.31 2000/10/06 04:23:13 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> 39#include <sys/socket.h> 40 | 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> 39#include <sys/socket.h> 40 |
41#if __STDC__ 42struct mbuf; 43struct rtentry; 44#endif 45#include <net/if.h> 46 | |
47#include <netinet/in.h> | 41#include <netinet/in.h> |
48#include <net/ethernet.h> | |
49 50#include <ctype.h> 51#include <stdio.h> 52#include <string.h> 53 54#include "interface.h" 55#include "addrtoname.h" 56#ifdef MODEMASK --- 236 unchanged lines hidden --- | 42 43#include <ctype.h> 44#include <stdio.h> 45#include <string.h> 46 47#include "interface.h" 48#include "addrtoname.h" 49#ifdef MODEMASK --- 236 unchanged lines hidden --- |