"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "options.h" between
nsd-4.3.6.tar.gz and nsd-4.3.7.tar.gz

About: NSD is an authoritative only, high performance, simple name server daemon.

options.h  (nsd-4.3.6):options.h  (nsd-4.3.7)
skipping to change at line 31 skipping to change at line 31
typedef struct nsd_options nsd_options_type; typedef struct nsd_options nsd_options_type;
typedef struct pattern_options pattern_options_type; typedef struct pattern_options pattern_options_type;
typedef struct zone_options zone_options_type; typedef struct zone_options zone_options_type;
typedef struct range_option range_option_type; typedef struct range_option range_option_type;
typedef struct ip_address_option ip_address_option_type; typedef struct ip_address_option ip_address_option_type;
typedef struct cpu_option cpu_option_type; typedef struct cpu_option cpu_option_type;
typedef struct cpu_map_option cpu_map_option_type; typedef struct cpu_map_option cpu_map_option_type;
typedef struct acl_options acl_options_type; typedef struct acl_options acl_options_type;
typedef struct key_options key_options_type; typedef struct key_options key_options_type;
typedef struct tls_auth_options tls_auth_options_type;
typedef struct config_parser_state config_parser_state_type; typedef struct config_parser_state config_parser_state_type;
/* /*
* Options global for nsd. * Options global for nsd.
*/ */
struct nsd_options { struct nsd_options {
/* config file name */ /* config file name */
char* configfile; char* configfile;
/* options for zones, by apex, contains zone_options */ /* options for zones, by apex, contains zone_options */
rbtree_type* zone_options; rbtree_type* zone_options;
skipping to change at line 62 skipping to change at line 63
/* tree of zonestat names and their id values, entries are struct /* tree of zonestat names and their id values, entries are struct
* zonestatname with malloced key=stringname. The number of items * zonestatname with malloced key=stringname. The number of items
* is the max statnameid, no items are freed from this. * is the max statnameid, no items are freed from this.
* kept correct in the xfrd process, and on startup. */ * kept correct in the xfrd process, and on startup. */
rbtree_type* zonestatnames; rbtree_type* zonestatnames;
/* rbtree of keys defined, by name */ /* rbtree of keys defined, by name */
rbtree_type* keys; rbtree_type* keys;
/* rbtree of tls_auth defined, by name */
rbtree_type* tls_auths;
/* list of ip addresses to bind to (or NULL for all) */ /* list of ip addresses to bind to (or NULL for all) */
struct ip_address_option* ip_addresses; struct ip_address_option* ip_addresses;
int ip_transparent; int ip_transparent;
int ip_freebind; int ip_freebind;
int send_buffer_size; int send_buffer_size;
int receive_buffer_size; int receive_buffer_size;
int debug_mode; int debug_mode;
int verbosity; int verbosity;
int hide_version; int hide_version;
skipping to change at line 120 skipping to change at line 124
int reuseport; int reuseport;
/* private key file for TLS */ /* private key file for TLS */
char* tls_service_key; char* tls_service_key;
/* ocsp stapling file for TLS */ /* ocsp stapling file for TLS */
char* tls_service_ocsp; char* tls_service_ocsp;
/* certificate file for TLS */ /* certificate file for TLS */
char* tls_service_pem; char* tls_service_pem;
/* TLS dedicated port */ /* TLS dedicated port */
const char* tls_port; const char* tls_port;
/* TLS certificate bundle */
const char* tls_cert_bundle;
/** remote control section. enable toggle. */ /** remote control section. enable toggle. */
int control_enable; int control_enable;
/** the interfaces the remote control should listen on */ /** the interfaces the remote control should listen on */
struct ip_address_option* control_interface; struct ip_address_option* control_interface;
/** port number for the control port */ /** port number for the control port */
int control_port; int control_port;
/** private key file for server */ /** private key file for server */
char* server_key_file; char* server_key_file;
/** certificate file for server */ /** certificate file for server */
skipping to change at line 166 skipping to change at line 172
int dnstap_send_version; int dnstap_send_version;
/** dnstap "identity", hostname is used if "". */ /** dnstap "identity", hostname is used if "". */
char* dnstap_identity; char* dnstap_identity;
/** dnstap "version", package version is used if "". */ /** dnstap "version", package version is used if "". */
char* dnstap_version; char* dnstap_version;
/** true to log dnstap AUTH_QUERY message events */ /** true to log dnstap AUTH_QUERY message events */
int dnstap_log_auth_query_messages; int dnstap_log_auth_query_messages;
/** true to log dnstap AUTH_RESPONSE message events */ /** true to log dnstap AUTH_RESPONSE message events */
int dnstap_log_auth_response_messages; int dnstap_log_auth_response_messages;
/** do answer with server cookie when request contained cookie option */
int answer_cookie;
/** cookie secret */
char *cookie_secret;
/** path to cookie secret store */
char const* cookie_secret_file;
region_type* region; region_type* region;
}; };
struct range_option { struct range_option {
struct range_option* next; struct range_option* next;
int first; int first;
int last; int last;
}; };
struct ip_address_option { struct ip_address_option {
skipping to change at line 305 skipping to change at line 318
acl_range_mask = 1, /* 10.20.30.40&255.255.255.0 */ acl_range_mask = 1, /* 10.20.30.40&255.255.255.0 */
acl_range_subnet = 2, /* 10.20.30.40/28 */ acl_range_subnet = 2, /* 10.20.30.40/28 */
acl_range_minmax = 3 /* 10.20.30.40-10.20.30.60 (mask=max) */ acl_range_minmax = 3 /* 10.20.30.40-10.20.30.60 (mask=max) */
} rangetype; } rangetype;
/* key */ /* key */
uint8_t nokey; uint8_t nokey;
uint8_t blocked; uint8_t blocked;
const char* key_name; const char* key_name;
struct key_options* key_options; struct key_options* key_options;
/* tls_auth for XoT */
const char* tls_auth_name;
struct tls_auth_options* tls_auth_options;
} ATTR_PACKED; } ATTR_PACKED;
/* /*
* Key definition * Key definition
*/ */
struct key_options { struct key_options {
rbnode_type node; /* key of tree is name */ rbnode_type node; /* key of tree is name */
char* name; char* name;
char* algorithm; char* algorithm;
char* secret; char* secret;
struct tsig_key* tsig_key; struct tsig_key* tsig_key;
} ATTR_PACKED; } ATTR_PACKED;
/*
* TLS Auth definition for XoT
*/
struct tls_auth_options {
rbnode_type node; /* key of tree is name */
char* name;
char* auth_domain_name;
};
/** zone list free space */ /** zone list free space */
struct zonelist_free { struct zonelist_free {
struct zonelist_free* next; struct zonelist_free* next;
off_t off; off_t off;
}; };
/** zonelist free bucket for a particular line length */ /** zonelist free bucket for a particular line length */
struct zonelist_bucket { struct zonelist_bucket {
rbnode_type node; /* key is ptr to linesize */ rbnode_type node; /* key is ptr to linesize */
int linesize; int linesize;
struct zonelist_free* list; struct zonelist_free* list;
skipping to change at line 350 skipping to change at line 376
*/ */
struct config_parser_state { struct config_parser_state {
char* filename; char* filename;
const char* chroot; const char* chroot;
int line; int line;
int errors; int errors;
struct nsd_options* opt; struct nsd_options* opt;
struct pattern_options *pattern; struct pattern_options *pattern;
struct zone_options *zone; struct zone_options *zone;
struct key_options *key; struct key_options *key;
struct tls_auth_options *tls_auth;
struct ip_address_option *ip; struct ip_address_option *ip;
void (*err)(void*,const char*); void (*err)(void*,const char*);
void* err_arg; void* err_arg;
}; };
extern config_parser_state_type* cfg_parser; extern config_parser_state_type* cfg_parser;
/* region will be put in nsd_options struct. Returns empty options struct. */ /* region will be put in nsd_options struct. Returns empty options struct. */
struct nsd_options* nsd_options_create(region_type* region); struct nsd_options* nsd_options_create(region_type* region);
/* the number of zones that are configured */ /* the number of zones that are configured */
skipping to change at line 394 skipping to change at line 421
struct pattern_options* pattern_options_unmarshal(region_type* r, struct pattern_options* pattern_options_unmarshal(region_type* r,
struct buffer* b); struct buffer* b);
struct key_options* key_options_create(region_type* region); struct key_options* key_options_create(region_type* region);
void key_options_insert(struct nsd_options* opt, struct key_options* key); void key_options_insert(struct nsd_options* opt, struct key_options* key);
struct key_options* key_options_find(struct nsd_options* opt, const char* name); struct key_options* key_options_find(struct nsd_options* opt, const char* name);
void key_options_remove(struct nsd_options* opt, const char* name); void key_options_remove(struct nsd_options* opt, const char* name);
int key_options_equal(struct key_options* p, struct key_options* q); int key_options_equal(struct key_options* p, struct key_options* q);
void key_options_add_modify(struct nsd_options* opt, struct key_options* key); void key_options_add_modify(struct nsd_options* opt, struct key_options* key);
void key_options_setup(region_type* region, struct key_options* key); void key_options_setup(region_type* region, struct key_options* key);
void key_options_desetup(region_type* region, struct key_options* key); void key_options_desetup(region_type* region, struct key_options* key);
/* TLS auth */
struct tls_auth_options* tls_auth_options_create(region_type* region);
void tls_auth_options_insert(struct nsd_options* opt, struct tls_auth_options* a
uth);
struct tls_auth_options* tls_auth_options_find(struct nsd_options* opt, const ch
ar* name);
/* read in zone list file. Returns false on failure */ /* read in zone list file. Returns false on failure */
int parse_zone_list_file(struct nsd_options* opt); int parse_zone_list_file(struct nsd_options* opt);
/* create zone entry and add to the zonelist file */ /* create zone entry and add to the zonelist file */
struct zone_options* zone_list_add(struct nsd_options* opt, const char* zname, struct zone_options* zone_list_add(struct nsd_options* opt, const char* zname,
const char* pname); const char* pname);
/* create zonelist entry, do not insert in file (called by _add) */ /* create zonelist entry, do not insert in file (called by _add) */
struct zone_options* zone_list_zone_insert(struct nsd_options* opt, struct zone_options* zone_list_zone_insert(struct nsd_options* opt,
const char* nm, const char* patnm, int linesize, off_t off); const char* nm, const char* patnm, int linesize, off_t off);
void zone_list_del(struct nsd_options* opt, struct zone_options* zone); void zone_list_del(struct nsd_options* opt, struct zone_options* zone);
void zone_list_compact(struct nsd_options* opt); void zone_list_compact(struct nsd_options* opt);
 End of changes. 8 change blocks. 
0 lines changed or deleted 33 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)