summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.h
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2011-09-21 15:41:31 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2011-09-21 15:41:31 +0000
commitdd23c199459cbbd97ea4113fc6cdab8e772366c8 (patch)
treee87799fecb60ef3d2b4e5904c3cd8dc736af8fa9 /usr.sbin/ntpd/ntpd.h
parent9047fbf9cae1cb3e3a551a40eeedccdb322a6f3c (diff)
Add rdomain support to NTPd.
This basically adds the "rtable %d" keyword to "listen on", "server", "servers" keywords, to specify which routing table to use. OK henning@ claudio@ sthen@ manpage reviewed by jmc@
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r--usr.sbin/ntpd/ntpd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h
index 9546bb33442..1140eaf24ff 100644
--- a/usr.sbin/ntpd/ntpd.h
+++ b/usr.sbin/ntpd/ntpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.h,v 1.103 2009/06/06 18:45:01 ckuethe Exp $ */
+/* $OpenBSD: ntpd.h,v 1.104 2011/09/21 15:41:30 phessler Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -81,11 +81,13 @@ struct listen_addr {
TAILQ_ENTRY(listen_addr) entry;
struct sockaddr_storage sa;
int fd;
+ int rtable;
};
struct ntp_addr {
struct ntp_addr *next;
struct sockaddr_storage ss;
+ int rtable;
};
struct ntp_addr_wrap {
@@ -132,6 +134,7 @@ struct ntp_peer {
u_int8_t weight;
int lasterror;
int senderrors;
+ int rtable;
};
struct ntp_sensor {
@@ -247,6 +250,7 @@ double lfp_to_d(struct l_fixedpt);
struct l_fixedpt d_to_lfp(double);
double sfp_to_d(struct s_fixedpt);
struct s_fixedpt d_to_sfp(double);
+char *print_rtable(int);
/* sensors.c */
void sensor_init(void);