Home | History | Annotate | Line # | Download | only in dist
      1 /*
      2  * zonec.h -- zone compiler.
      3  *
      4  * Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
      5  *
      6  * See LICENSE for the license.
      7  *
      8  */
      9 
     10 #ifndef ZONEC_H
     11 #define ZONEC_H
     12 
     13 #include "namedb.h"
     14 
     15 #define NSEC_WINDOW_COUNT     256
     16 #define NSEC_WINDOW_BITS_COUNT 256
     17 #define NSEC_WINDOW_BITS_SIZE  (NSEC_WINDOW_BITS_COUNT / 8)
     18 
     19 #define IPSECKEY_NOGATEWAY      0       /* RFC 4025 */
     20 #define IPSECKEY_IP4            1
     21 #define IPSECKEY_IP6            2
     22 #define IPSECKEY_DNAME          3
     23 
     24 #define AMTRELAY_NOGATEWAY      0       /* RFC 8777 */
     25 #define AMTRELAY_IP4            1
     26 #define AMTRELAY_IP6            2
     27 #define AMTRELAY_DNAME          3
     28 
     29 #define LINEBUFSZ 1024
     30 
     31 #define DEFAULT_TTL 3600
     32 
     33 /* parse a zone into memory. name is origin. zonefile is file to read.
     34  * returns number of errors; failure may have read a partial zone */
     35 unsigned int zonec_read(
     36 	struct namedb *database,
     37 	struct domain_table *domains,
     38 	const char *name,
     39 	const char *zonefile,
     40 	struct zone *zone);
     41 
     42 /** check SSHFP type for failures and emit warnings */
     43 void check_sshfp(void);
     44 void apex_rrset_checks(struct namedb* db, rrset_type* rrset,
     45 	domain_type* domain);
     46 
     47 #endif /* ZONEC_H */
     48