68 log_fatal (
"Can't register control object type: %s",
69 isc_result_totext (status));
72 log_fatal (
"Can't make initial control object: %s",
73 isc_result_totext (status));
89 log_fatal (
"Can't register group object type: %s",
90 isc_result_totext (status));
102 sizeof (
struct subnet), 0,
105 log_fatal (
"Can't register subnet object type: %s",
106 isc_result_totext (status));
121 log_fatal (
"Can't register shared network object type: %s",
122 isc_result_totext (status));
149 return ISC_R_NOMEMORY;
151 value -> u.buffer.value,
152 value -> u.buffer.len);
164 return ISC_R_NOMEMORY;
172 (
char *)
value->u.buffer.value,
174 "network client", 0);
190 if (h -> inner && h -> inner -> type -> set_value) {
191 status = ((*(h -> inner -> type -> set_value))
192 (h -> inner, id, name,
value));
197 return ISC_R_NOTFOUND;
217 if (h -> inner && h -> inner -> type -> get_value) {
218 status = ((*(h -> inner -> type -> get_value))
223 return ISC_R_NOTFOUND;
244 group_object_dereference (&t,
MDL);
257 const char *
name, va_list ap)
267 if (!strcmp (
name,
"updated")) {
276 sprintf (hnbuf,
"ng%08lx%08lx",
278 (
unsigned long)
group);
281 return ISC_R_NOMEMORY;
290 if (h -> inner && h -> inner -> type -> get_value) {
291 status = ((*(h -> inner -> type -> signal_handler))
292 (h -> inner,
name, ap));
298 return ISC_R_NOTFOUND;
323 if (h -> inner && h -> inner -> type -> stuff_values) {
324 status = ((*(h -> inner -> type -> stuff_values))
325 (c, id, h -> inner));
366 tv ->
value -> u.buffer.value,
367 tv ->
value -> u.buffer.len,
MDL)) {
371 group_object_dereference (&
group,
MDL);
380 group_object_dereference (&
group,
MDL);
383 return ISC_R_NOTFOUND;
393 return ISC_R_NOTFOUND;
405 status = group_object_allocate (&
group,
MDL);
410 group_object_dereference (&
group,
MDL);
426 return ISC_R_IOERROR;
441 unsigned long newstate;
453 control -> state =
value -> u.integer;
458 if (h -> inner && h -> inner -> type -> set_value) {
459 status = ((*(h -> inner -> type -> set_value))
465 return ISC_R_NOTFOUND;
482 name, (
int)control -> state,
MDL);
485 if (h -> inner && h -> inner -> type -> get_value) {
486 status = ((*(h -> inner -> type -> get_value))
491 return ISC_R_NOTFOUND;
505 const char *
name, va_list ap)
515 if (h -> inner && h -> inner -> type -> get_value) {
516 status = ((*(h -> inner -> type -> signal_handler))
517 (h -> inner,
name, ap));
521 return ISC_R_NOTFOUND;
547 if (h -> inner && h -> inner -> type -> stuff_values) {
548 status = ((*(h -> inner -> type -> stuff_values))
549 (c, id, h -> inner));
618 if (h -> inner && h -> inner -> type -> set_value) {
619 status = ((*(h -> inner -> type -> set_value))
625 return ISC_R_NOTFOUND;
643 if (h -> inner && h -> inner -> type -> get_value) {
644 status = ((*(h -> inner -> type -> get_value))
649 return ISC_R_NOTFOUND;
676 const char *name, va_list ap)
688 if (h -> inner && h -> inner -> type -> get_value) {
689 status = ((*(h -> inner -> type -> signal_handler))
690 (h -> inner, name, ap));
695 return ISC_R_NOTFOUND;
712 if (h -> inner && h -> inner -> type -> stuff_values) {
713 status = ((*(h -> inner -> type -> stuff_values))
714 (c, id, h -> inner));
762 if (h -> inner && h -> inner -> type -> set_value) {
763 status = ((*(h -> inner -> type -> set_value))
764 (h -> inner, id, name,
value));
769 return ISC_R_NOTFOUND;
788 if (h -> inner && h -> inner -> type -> get_value) {
789 status = ((*(h -> inner -> type -> get_value))
790 (h -> inner, id, name,
value));
794 return ISC_R_NOTFOUND;
825#if defined (FAILOVER_PROTOCOL)
849 if (h -> inner && h -> inner -> type -> get_value) {
850 status = ((*(h -> inner -> type -> signal_handler))
851 (h -> inner,
name, ap));
856 return ISC_R_NOTFOUND;
873 if (h -> inner && h -> inner -> type -> stuff_values) {
874 status = ((*(h -> inner -> type -> stuff_values))
875 (c, id, h -> inner));
isc_result_t omapi_connection_put_uint32(omapi_object_t *, u_int32_t)
isc_result_t dhcp_control_create(omapi_object_t **lp, omapi_object_t *id)
isc_result_t dhcp_control_signal_handler(omapi_object_t *h, const char *name, va_list ap)
isc_result_t dhcp_subnet_destroy(omapi_object_t *h, const char *file, int line)
isc_result_t dhcp_shared_network_set_value(omapi_object_t *h, omapi_object_t *id, omapi_data_string_t *name, omapi_typed_data_t *value)
isc_result_t dhcp_control_set_value(omapi_object_t *h, omapi_object_t *id, omapi_data_string_t *name, omapi_typed_data_t *value)
isc_result_t dhcp_control_get_value(omapi_object_t *h, omapi_object_t *id, omapi_data_string_t *name, omapi_value_t **value)
isc_result_t dhcp_group_create(omapi_object_t **lp, omapi_object_t *id)
isc_result_t dhcp_subnet_remove(omapi_object_t *lp, omapi_object_t *id)
isc_result_t dhcp_subnet_get_value(omapi_object_t *h, omapi_object_t *id, omapi_data_string_t *name, omapi_value_t **value)
isc_result_t dhcp_control_lookup(omapi_object_t **lp, omapi_object_t *id, omapi_object_t *ref)
isc_result_t dhcp_subnet_create(omapi_object_t **lp, omapi_object_t *id)
isc_result_t dhcp_group_lookup(omapi_object_t **lp, omapi_object_t *id, omapi_object_t *ref)
isc_result_t dhcp_subnet_stuff_values(omapi_object_t *c, omapi_object_t *id, omapi_object_t *h)
isc_result_t dhcp_shared_network_get_value(omapi_object_t *h, omapi_object_t *id, omapi_data_string_t *name, omapi_value_t **value)
isc_result_t dhcp_subnet_lookup(omapi_object_t **lp, omapi_object_t *id, omapi_object_t *ref)
isc_result_t dhcp_control_remove(omapi_object_t *lp, omapi_object_t *id)
isc_result_t dhcp_group_get_value(omapi_object_t *h, omapi_object_t *id, omapi_data_string_t *name, omapi_value_t **value)
isc_result_t dhcp_group_set_value(omapi_object_t *h, omapi_object_t *id, omapi_data_string_t *name, omapi_typed_data_t *value)
isc_result_t dhcp_shared_network_create(omapi_object_t **lp, omapi_object_t *id)
isc_result_t dhcp_subnet_signal_handler(omapi_object_t *h, const char *name, va_list ap)
isc_result_t dhcp_shared_network_stuff_values(omapi_object_t *c, omapi_object_t *id, omapi_object_t *h)
isc_result_t dhcp_group_signal_handler(omapi_object_t *h, const char *name, va_list ap)
isc_result_t dhcp_shared_network_destroy(omapi_object_t *h, const char *file, int line)
isc_result_t dhcp_control_stuff_values(omapi_object_t *c, omapi_object_t *id, omapi_object_t *h)
isc_result_t dhcp_subnet_set_value(omapi_object_t *h, omapi_object_t *id, omapi_data_string_t *name, omapi_typed_data_t *value)
isc_result_t dhcp_shared_network_remove(omapi_object_t *lp, omapi_object_t *id)
isc_result_t dhcp_shared_network_signal_handler(omapi_object_t *h, const char *name, va_list ap)
isc_result_t dhcp_group_destroy(omapi_object_t *h, const char *file, int line)
isc_result_t dhcp_shared_network_lookup(omapi_object_t **lp, omapi_object_t *id, omapi_object_t *ref)
isc_result_t dhcp_group_stuff_values(omapi_object_t *c, omapi_object_t *id, omapi_object_t *h)
isc_result_t dhcp_control_destroy(omapi_object_t *h, const char *file, int line)
isc_result_t dhcp_group_remove(omapi_object_t *lp, omapi_object_t *id)
int group_dereference(struct group **ptr, const char *file, int line)
isc_result_t end_parse(struct parse **cfile)
isc_result_t new_parse(struct parse **cfile, int file, char *inbuf, unsigned buflen, const char *name, int eolp)
int parse_executable_statements(struct executable_statement **statements, struct parse *cfile, int *lose, enum expression_context case_context)
isc_result_t dhcp_set_control_state(control_object_state_t oldstate, control_object_state_t newstate)
#define GROUP_OBJECT_DELETED
omapi_object_type_t * dhcp_type_subnet
omapi_object_type_t * dhcp_type_group
omapi_object_type_t * dhcp_type_control
dhcp_control_object_t * dhcp_control_object
void dhcp_common_objects_setup(void)
struct ipv6_pool ** pools
#define GROUP_OBJECT_DYNAMIC
omapi_object_type_t * dhcp_type_shared_network
isc_result_t interface_setup()
#define ISC_R_NOTIMPLEMENTED
int clone_group(struct group **gp, struct group *group, const char *file, int line)
struct group * root_group
int(* group_write_hook)(struct group_object *)
isc_result_t supersede_group(struct group_object *group, int writep)
group_hash_t * group_name_hash
isc_result_t omapi_value_dereference(omapi_value_t **, const char *, int)
isc_result_t omapi_connection_put_string(omapi_object_t *, const char *)
struct __omapi_object_type_t omapi_object_type_t
#define OMAPI_OBJECT_ALLOC(name, stype, type)
isc_result_t omapi_object_dereference(omapi_object_t **, const char *, int)
struct __omapi_object omapi_object_t
isc_result_t omapi_handle_td_lookup(omapi_object_t **, omapi_typed_data_t *)
isc_result_t omapi_object_type_register(omapi_object_type_t **, const char *, isc_result_t(*)(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *), isc_result_t(*)(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **), isc_result_t(*)(omapi_object_t *, const char *, int), isc_result_t(*)(omapi_object_t *, const char *, va_list), isc_result_t(*)(omapi_object_t *, omapi_object_t *, omapi_object_t *), isc_result_t(*)(omapi_object_t **, omapi_object_t *, omapi_object_t *), isc_result_t(*)(omapi_object_t **, omapi_object_t *), isc_result_t(*)(omapi_object_t *, omapi_object_t *), isc_result_t(*)(omapi_object_t *, const char *, int), isc_result_t(*)(omapi_object_t **, const char *, int), isc_result_t(*)(size_t), size_t, isc_result_t(*)(omapi_object_t *, const char *, int), int)
isc_result_t omapi_make_string_value(omapi_value_t **, omapi_data_string_t *, const char *, const char *, int)
isc_result_t omapi_object_reference(omapi_object_t **, omapi_object_t *, const char *, int)
int omapi_ds_strcmp(omapi_data_string_t *, const char *)
void * dmalloc(size_t, const char *, int)
void dfree(void *, const char *, int)
isc_result_t omapi_get_value_str(omapi_object_t *, omapi_object_t *, const char *, omapi_value_t **)
isc_result_t omapi_get_int_value(unsigned long *, omapi_typed_data_t *)
isc_result_t omapi_connection_put_name(omapi_object_t *, const char *)
isc_result_t omapi_make_int_value(omapi_value_t **, omapi_data_string_t *, int, const char *, int)
void log_fatal(const char *,...) __attribute__((__format__(__printf__
#define DHCP_R_INVALIDARG
#define DHCP_R_KEYCONFLICT
struct shared_network * next
struct interface_info * interface
dhcp_failover_state_t * failover_peer
struct subnet * next_subnet
struct interface_info * interface
struct subnet * next_sibling