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__
struct universe * config_universe
universe_hash_t * universe_hash
struct universe ** universes