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