Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / bind / dist / contrib / zkt / rollover.h
blob084ddf116984e0b6e17ac78a8b3bfc218e11e983
1 /* $NetBSD$ */
3 /*****************************************************************
4 **
5 ** @(#) rollover.h (c) 2005 - 2008 Holger Zuleger hznet.de
6 **
7 ** Copyright (c) 2005 - 2008, Holger Zuleger HZnet. All rights reserved.
8 **
9 ** This software is open source.
11 ** Redistribution and use in source and binary forms, with or without
12 ** modification, are permitted provided that the following conditions
13 ** are met:
15 ** Redistributions of source code must retain the above copyright notice,
16 ** this list of conditions and the following disclaimer.
18 ** Redistributions in binary form must reproduce the above copyright notice,
19 ** this list of conditions and the following disclaimer in the documentation
20 ** and/or other materials provided with the distribution.
22 ** Neither the name of Holger Zuleger HZnet nor the names of its contributors may
23 ** be used to endorse or promote products derived from this software without
24 ** specific prior written permission.
26 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 ** TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 ** PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
30 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 ** POSSIBILITY OF SUCH DAMAGE.
38 *****************************************************************/
39 #ifndef ROLLOVER_H
40 # define ROLLOVER_H
41 # include <sys/types.h>
42 # include <stdarg.h>
43 # include <stdio.h>
45 #ifndef ZCONF_H
46 # include "zconf.h"
47 #endif
49 # define OFFSET ((int) (2.5 * MINSEC))
50 # define PARENT_PROPAGATION (5 * MINSEC)
51 # define ADD_HOLD_DOWN (30 * DAYSEC)
52 #if 0
53 # define REMOVE_HOLD_DOWN (30 * DAYSEC)
54 #else
55 # define REMOVE_HOLD_DOWN (10 * DAYSEC) /* reduced for testiing purposes */
56 #endif
58 extern int ksk5011status (dki_t **listp, const char *dir, const char *domain, const zconf_t *z);
59 extern int kskstatus (zone_t *zonelist, zone_t *zp);
60 extern int zskstatus (dki_t **listp, const char *dir, const char *domain, const zconf_t *z);
61 #endif