From dd23c199459cbbd97ea4113fc6cdab8e772366c8 Mon Sep 17 00:00:00 2001 From: Peter Hessler Date: Wed, 21 Sep 2011 15:41:31 +0000 Subject: 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@ --- usr.sbin/ntpd/ntpd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.sbin/ntpd/ntpd.h') 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 @@ -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); -- cgit v1.2.3