diff options
author | Alexander Guy <alexander@cvs.openbsd.org> | 2004-06-05 12:29:16 +0000 |
---|---|---|
committer | Alexander Guy <alexander@cvs.openbsd.org> | 2004-06-05 12:29:16 +0000 |
commit | d2e3bd4dc4c1efaf2d3e3eee66b498f4152b16a5 (patch) | |
tree | 13503a5673bcf332934b6442ff238e44ee7af108 /usr.sbin/ntpd/ntpd.h | |
parent | b605d26d99584dae44c5efdf479380ae4504c3e6 (diff) |
Move prototype definitions. Add multi-include protection to header.
ok henning@
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r-- | usr.sbin/ntpd/ntpd.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h index 078facd7fb2..44e75c1f25f 100644 --- a/usr.sbin/ntpd/ntpd.h +++ b/usr.sbin/ntpd/ntpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.h,v 1.4 2004/06/02 10:08:59 henning Exp $ */ +/* $OpenBSD: ntpd.h,v 1.5 2004/06/05 12:29:15 alexander Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -24,6 +24,8 @@ #include <netdb.h> #include <stdarg.h> +#include "ntp.h" + #define NTPD_USER "_ntp" #define CONFFILE "/etc/ntpd.conf" @@ -134,3 +136,11 @@ int cmdline_symset(char *); int check_file_secrecy(int, const char *); int host(const char *, struct sockaddr *, u_int8_t *); +/* ntp_msg.c */ +void get_ts(struct l_fixedpt *); +int ntp_getmsg(char *, ssize_t, struct ntp_msg *); +int ntp_sendmsg(int, struct sockaddr *, struct ntp_msg *, ssize_t, int); + +/* server.c */ +int setup_listeners(struct servent *, struct ntpd_conf *); +int ntp_reply(int, struct sockaddr *, struct ntp_msg *, int); |