31static struct option client_options[] = {
34 { NULL, NULL, NULL, 0, 0 }
37#define CLIENT_HASH_SIZE (2*(sizeof(client_options) / sizeof(struct option)))
65 log_fatal (
"Can't allocate client option hash table.");
66 for (i = 0 ; client_options[i].name ; i++) {
68 &client_options[i].code, 0,
69 &client_options[i],
MDL);
71 client_options[i].name, 0,
72 &client_options[i],
MDL);
void initialize_client_option_spaces()
struct universe client_universe
void save_hashed_option(struct universe *universe, struct option_state *options, struct option_cache *oc, isc_boolean_t appendp)
int hashed_option_space_encapsulate(struct data_string *result, struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *cfg_options, struct binding_scope **scope, struct universe *universe)
int hashed_option_state_dereference(struct universe *universe, struct option_state *state, const char *file, int line)
void hashed_option_space_foreach(struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *cfg_options, struct binding_scope **scope, struct universe *u, void *stuff, void(*func)(struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *))
struct option_cache * lookup_hashed_option(struct universe *universe, struct option_state *options, unsigned code)
void delete_hashed_option(struct universe *universe, struct option_state *options, int code)
void putUChar(unsigned char *, u_int32_t)
void log_fatal(const char *,...) __attribute__((__format__(__printf__
int(*) encapsulate(struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *)
void(*) save_func(struct universe *, struct option_state *, struct option_cache *, isc_boolean_t)
void(*) foreach(struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *, void(*)(struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *))
struct option_cache *(*) lookup_func(struct universe *, struct option_state *, unsigned)
void(*) store_length(unsigned char *, u_int32_t)
void(*) store_tag(unsigned char *, u_int32_t)
option_name_hash_t * name_hash
option_code_hash_t * code_hash
void(*) delete_func(struct universe *universe, struct option_state *, int)
int(*) option_state_dereference(struct universe *, struct option_state *, const char *, int)
struct universe * config_universe
universe_hash_t * universe_hash
struct universe ** universes