 |
ISC DHCP
4.4.2b1
A reference DHCPv4 and DHCPv6 implementation
|
|
Go to the documentation of this file.
31 static 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);
struct universe * config_universe
void log_fatal(const char *,...) __attribute__((__format__(__printf__
void delete_hashed_option(struct universe *universe, struct option_state *options, int code)
int(* encapsulate)(struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *)
struct universe ** universes
int hashed_option_state_dereference(struct universe *universe, struct option_state *state, const char *file, int line)
universe_hash_t * universe_hash
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)
void save_hashed_option(struct universe *universe, struct option_state *options, struct option_cache *oc, isc_boolean_t appendp)
void putUChar(unsigned char *, u_int32_t)
int(* option_state_dereference)(struct universe *, struct option_state *, const char *, int)
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 *))
void(* save_func)(struct universe *, struct option_state *, struct option_cache *, isc_boolean_t)
struct universe client_universe
void(* delete_func)(struct universe *universe, struct option_state *, int)
struct option_cache * lookup_hashed_option(struct universe *universe, struct option_state *options, unsigned code)
void(* store_length)(unsigned char *, u_int32_t)
struct option_cache *(* lookup_func)(struct universe *, struct option_state *, unsigned)
void initialize_client_option_spaces()
option_name_hash_t * name_hash
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 *))
void(* store_tag)(unsigned char *, u_int32_t)
option_code_hash_t * code_hash