1/*	$NetBSD: utilities.h,v 1.5 2020/05/25 20:47:32 christos Exp $	*/
2
3#ifndef UTILITIES_H
4#define UTILITIES_H
5
6#include <math.h>
7#include <stdio.h>
8#include <stdlib.h>
9
10#include "ntp.h"
11#include "ntp_stdlib.h"
12#include "lib_strbuf.h"
13
14#define HLINE "--------------------------------------------------------------------------------\n"
15#define PHLINE fprintf(output, HLINE);
16#define STDLINE printf(HLINE);
17
18
19void pkt_output(struct pkt *dpkg, int pkt_length, FILE *output);
20void l_fp_output(l_fp *ts, FILE *output);
21void l_fp_output_bin(l_fp *ts, FILE *output);
22void l_fp_output_dec(l_fp *ts, FILE *output);
23
24char *addrinfo_to_str(const struct addrinfo *addr);
25char *ss_to_str(sockaddr_u *saddr);
26char *tv_to_str(const struct timeval *tv);
27const char * hostnameaddr(const char *, const sockaddr_u *);
28
29#endif	/* UTILITIES_H */
30