main.h revision 1.2.6.2 1 1.2.6.2 msaitoh /* $NetBSD: main.h,v 1.2.6.2 2015/01/07 12:13:33 msaitoh Exp $ */
2 1.2.6.2 msaitoh
3 1.2.6.2 msaitoh #ifndef MAIN_H
4 1.2.6.2 msaitoh #define MAIN_H
5 1.2.6.2 msaitoh
6 1.2.6.2 msaitoh #include <stdio.h>
7 1.2.6.2 msaitoh #include <isc/result.h>
8 1.2.6.2 msaitoh #include <isc/net.h>
9 1.2.6.2 msaitoh
10 1.2.6.2 msaitoh #include <ntp.h>
11 1.2.6.2 msaitoh #include <ntp_unixtime.h>
12 1.2.6.2 msaitoh #include <ntp_stdlib.h>
13 1.2.6.2 msaitoh #include <ntp_intres.h>
14 1.2.6.2 msaitoh #include <ntp_debug.h>
15 1.2.6.2 msaitoh #include <timevalops.h>
16 1.2.6.2 msaitoh
17 1.2.6.2 msaitoh #include <sntp-opts.h>
18 1.2.6.2 msaitoh
19 1.2.6.2 msaitoh #include "crypto.h"
20 1.2.6.2 msaitoh
21 1.2.6.2 msaitoh void set_li_vn_mode(struct pkt *spkt, char leap, char version, char mode);
22 1.2.6.2 msaitoh extern int sntp_main(int argc, char **argv, const char *);
23 1.2.6.2 msaitoh int generate_pkt(struct pkt *x_pkt, const struct timeval *tv_xmt,
24 1.2.6.2 msaitoh int key_id, struct key *pkt_key);
25 1.2.6.2 msaitoh int handle_pkt(int rpktl, struct pkt *rpkt, sockaddr_u *host,
26 1.2.6.2 msaitoh const char *hostname);
27 1.2.6.2 msaitoh void offset_calculation(struct pkt *rpkt, int rpktl,
28 1.2.6.2 msaitoh struct timeval *tv_dst, double *offset,
29 1.2.6.2 msaitoh double *precision, double *root_dispersion);
30 1.2.6.2 msaitoh int on_wire(struct addrinfo *host, struct addrinfo *bcastaddr);
31 1.2.6.2 msaitoh int set_time(double offset);
32 1.2.6.2 msaitoh
33 1.2.6.2 msaitoh #endif /* MAIN_H */
34