Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / ntp / dist / sntp / utilities.h
blob9c0ed262e8a417a8379ca50189912a4cdb3f06b2
1 /* $NetBSD$ */
3 #ifndef UTILITIES_H
4 #define UTILITIES_H
6 #include <math.h>
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <ntp_stdlib.h>
10 #include <ntp_fp.h>
11 #include <ntp.h>
13 #define HLINE "--------------------------------------------------------------------------------\n"
14 #define PHLINE fprintf(output, HLINE);
15 #define STDLINE printf(HLINE);
18 void pkt_output (struct pkt *dpkg, int pkt_length, FILE *output);
19 void l_fp_output (l_fp *ts, FILE *output);
20 void l_fp_output_bin (l_fp *ts, FILE *output);
21 void l_fp_output_dec (l_fp *ts, FILE *output);
23 char *addrinfo_to_str (struct addrinfo *addr);
24 char *ss_to_str (sockaddr_u *saddr);
25 char *tv_to_str (struct timeval *tv);
27 #endif