File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / sntp / main.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

#ifndef MAIN_H
#define MAIN_H

#include <l_stdlib.h>
#include <ntp_fp.h>
#include <ntp.h>
#include <ntp_stdlib.h>
#include <ntp_unixtime.h>
#include <isc/result.h>
#include <isc/net.h>
#include <stdio.h>

#include <sntp-opts.h>

#include "crypto.h"

void set_li_vn_mode (struct pkt *spkt, char leap, char version, char mode); 
int sntp_main (int argc, char **argv);
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, struct addrinfo *host);
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 */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>