diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2014-12-02 09:01:21 +0000 |
---|---|---|
committer | <> | 2014-12-04 16:11:25 +0000 |
commit | bdab5265fcbf3f472545073a23f8999749a9f2b9 (patch) | |
tree | c6018dd03dea906f8f1fb5f105f05b71a7dc250a /sntp/main.h | |
download | ntp-dev-4.2.7p482.tar.gz |
Imported from /home/lorry/working-area/delta_ntp/ntp-dev-4.2.7p482.tar.gz.ntp-dev-4.2.7p482
Diffstat (limited to 'sntp/main.h')
-rw-r--r-- | sntp/main.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sntp/main.h b/sntp/main.h new file mode 100644 index 0000000..ebe1ee3 --- /dev/null +++ b/sntp/main.h @@ -0,0 +1,31 @@ +#ifndef MAIN_H +#define MAIN_H + +#include <stdio.h> +#include <isc/result.h> +#include <isc/net.h> + +#include <ntp.h> +#include <ntp_unixtime.h> +#include <ntp_stdlib.h> +#include <ntp_intres.h> +#include <ntp_debug.h> +#include <timevalops.h> + +#include <sntp-opts.h> + +#include "crypto.h" + +void set_li_vn_mode(struct pkt *spkt, char leap, char version, char mode); +extern int sntp_main(int argc, char **argv, const char *); +int generate_pkt(struct pkt *x_pkt, const struct timeval *tv_xmt, + int key_id, struct key *pkt_key); +int handle_pkt(int rpktl, struct pkt *rpkt, sockaddr_u *host, + const char *hostname); +void offset_calculation(struct pkt *rpkt, int rpktl, + struct timeval *tv_dst, double *offset, + double *precision, double *root_dispersion); +int on_wire(struct addrinfo *host, struct addrinfo *bcastaddr); +int set_time(double offset); + +#endif /* MAIN_H */ |