print-ntp.c (26183) | print-ntp.c (39300) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996 | 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 9 * this paragraph in its entirety in the documentation or other materials 10 * provided with the distribution, and (3) all advertising materials mentioning --- 9 unchanged lines hidden (view full) --- 20 * 21 * Format and print ntp packets. 22 * By Jeffrey Mogul/DECWRL 23 * loosely based on print-bootp.c 24 */ 25 26#ifndef lint 27static const char rcsid[] = | 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 9 * this paragraph in its entirety in the documentation or other materials 10 * provided with the distribution, and (3) all advertising materials mentioning --- 9 unchanged lines hidden (view full) --- 20 * 21 * Format and print ntp packets. 22 * By Jeffrey Mogul/DECWRL 23 * loosely based on print-bootp.c 24 */ 25 26#ifndef lint 27static const char rcsid[] = |
28 "@(#) $Header: print-ntp.c,v 1.25 96/11/05 13:30:37 leres Exp $ (LBL)"; | 28 "@(#) $Header: print-ntp.c,v 1.26 97/06/13 12:56:37 leres Exp $ (LBL)"; |
29#endif 30 31#include <sys/param.h> 32#include <sys/time.h> 33#include <sys/socket.h> 34 35#if __STDC__ 36struct mbuf; --- 5 unchanged lines hidden (view full) --- 42#include <net/ethernet.h> 43 44#include <ctype.h> 45#include <stdio.h> 46#include <string.h> 47 48#include "interface.h" 49#include "addrtoname.h" | 29#endif 30 31#include <sys/param.h> 32#include <sys/time.h> 33#include <sys/socket.h> 34 35#if __STDC__ 36struct mbuf; --- 5 unchanged lines hidden (view full) --- 42#include <net/ethernet.h> 43 44#include <ctype.h> 45#include <stdio.h> 46#include <string.h> 47 48#include "interface.h" 49#include "addrtoname.h" |
50#ifdef MODEMASK |
|
50#undef MODEMASK /* Solaris sucks */ | 51#undef MODEMASK /* Solaris sucks */ |
52#endif |
|
51#include "ntp.h" 52 53static void p_sfix(const struct s_fixedpt *); 54static void p_ntp_time(const struct l_fixedpt *); 55static void p_ntp_delta(const struct l_fixedpt *, const struct l_fixedpt *); 56 57/* 58 * Print ntp requests --- 226 unchanged lines hidden --- | 53#include "ntp.h" 54 55static void p_sfix(const struct s_fixedpt *); 56static void p_ntp_time(const struct l_fixedpt *); 57static void p_ntp_delta(const struct l_fixedpt *, const struct l_fixedpt *); 58 59/* 60 * Print ntp requests --- 226 unchanged lines hidden --- |