#include "config.h"#include <sys/types.h>#include <netinet/in.h>#include <sys/socket.h>#include <sys/un.h>#include <arpa/inet.h>#include <errno.h>#include <netdb.h>#include <stddef.h>#include <fcntl.h>#include <stdio.h>#include <unistd.h>#include <string.h>#include <stdlib.h>#include <sys/stat.h>#include <sys/mman.h>#include <ctype.h>#include <time.h>#include <net/if.h>#include <net/route.h>#include <net/if_arp.h>#include <setjmp.h>#include "cdefs.h"#include "osdep.h"#include "arpa/nameser.h"#include "ns_name.h"#include <omapip/isclib.h>#include <omapip/result.h>#include "dhcp.h"#include "dhcp6.h"#include "statement.h"#include "tree.h"#include "inet.h"#include "dhctoken.h"#include <omapip/omapip_p.h>#include "failover.h"#include "ctrace.h"Go to the source code of this file.
Data Structures | |
| struct | ddns_fqdn_t |
| struct | parse |
| struct | string_list |
| struct | name_server |
| struct | domain_search_list |
| struct | option_tag |
| struct | agent_options |
| struct | option_cache |
| struct | option_state |
| struct | packet |
| struct | hardware |
| struct | dhcp_control_object_t |
| struct | on_star |
| struct | lease |
| struct | lease_state |
| struct | group_object |
| struct | group |
| struct | host_decl |
| struct | permit |
| struct | leasechain |
| struct | pool |
| struct | shared_network |
| struct | subnet |
| struct | collection |
| struct | class |
| struct | client_lease |
| struct | dhc6_addr |
| struct | dhc6_ia |
| struct | dhc6_lease |
| struct | client_config |
| struct | client_state |
| struct | envadd_state |
| struct | dns_update_state |
| struct | interface_info |
| struct | hardware_link |
| struct | leasequeue |
| struct | timeout |
| struct | eventqueue |
| struct | protocol |
| struct | dns_wakeup |
| struct | dns_question |
| struct | dns_answer |
| struct | dns_query |
| struct | dns_zone |
| struct | icmp_state |
| struct | iasubopt |
| struct | ia_xx |
| struct | ipv6_pool |
| ipv6_pool structure More... | |
| struct | ipv6_pond |
| ipv6_pond structure More... | |
| struct | dhcp_ddns_cb |
Typedefs | |
| typedef struct hash_table | group_hash_t |
| typedef struct hash_table | universe_hash_t |
| typedef struct hash_table | option_name_hash_t |
| typedef struct hash_table | option_code_hash_t |
| typedef struct hash_table | dns_zone_hash_t |
| typedef struct hash_table | lease_ip_hash_t |
| typedef struct hash_table | lease_id_hash_t |
| typedef struct hash_table | host_hash_t |
| typedef struct hash_table | class_hash_t |
| typedef time_t | TIME |
| typedef u_int8_t | binding_state_t |
| typedef void(* | tvref_t) (void *, void *, const char *, int) |
| typedef void(* | tvunref_t) (void *, const char *, int) |
| typedef unsigned char | option_mask[16] |
| typedef struct hash_table | ia_hash_t |
| typedef struct hash_table | iasubopt_hash_t |
| typedef void(* | ddns_action_t) (struct dhcp_ddns_cb *ddns_cb, isc_result_t result) |
| typedef struct dhcp_ddns_cb | dhcp_ddns_cb_t |
Enumerations | |
| enum | dhcp_shutdown_state { shutdown_listeners , shutdown_omapi_connections , shutdown_drop_omapi_connections , shutdown_dhcp , shutdown_done } |
| enum | control_object_state_t { server_startup = 0 , server_running = 1 , server_shutdown = 2 , server_hibernate = 3 , server_awaken = 4 , server_time_changed = 5 } |
| enum | dhcp_state { S_REBOOTING = 1 , S_INIT = 2 , S_SELECTING = 3 , S_REQUESTING = 4 , S_BOUND = 5 , S_RENEWING = 6 , S_REBINDING = 7 , S_DECLINING = 8 , S_STOPPED = 9 , S_V6ONLY = 10 } |
| enum | dhcp_pending { P_NONE = 0 , P_REBOOT = 1 , P_RELEASE = 2 } |
| enum | policy { P_IGNORE , P_ACCEPT , P_PREFER , P_REQUIRE , P_DONT } |
Functions | |
| HASH_FUNCTIONS_DECL (option_name, const char *, struct option, option_name_hash_t) HASH_FUNCTIONS_DECL(option_code | |
| option_code_hash_t | HASH_FUNCTIONS_DECL (lease_ip, const unsigned char *, struct lease, lease_ip_hash_t) HASH_FUNCTIONS_DECL(lease_id |
| int | parse_options (struct packet *) |
| int | parse_option_buffer (struct option_state *, const unsigned char *, unsigned, struct universe *) |
| struct universe * | find_option_universe (struct option *, const char *) |
| int | parse_encapsulated_suboptions (struct option_state *, struct option *, const unsigned char *, unsigned, struct universe *, const char *) |
| int | cons_options (struct packet *, struct dhcp_packet *, struct lease *, struct client_state *, int, struct option_state *, struct option_state *, struct binding_scope **, int, int, int, struct data_string *, const char *) |
| int | fqdn_universe_decode (struct option_state *, const unsigned char *, unsigned, struct universe *) |
| struct option_cache * | lookup_fqdn6_option (struct universe *universe, struct option_state *options, unsigned code) |
| void | save_fqdn6_option (struct universe *universe, struct option_state *options, struct option_cache *oc, isc_boolean_t appendp) |
| void | delete_fqdn6_option (struct universe *universe, struct option_state *options, int code) |
| void | fqdn6_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 *)) |
| int | fqdn6_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 | fqdn6_universe_decode (struct option_state *options, const unsigned char *buffer, unsigned length, struct universe *u) |
| int | append_option (struct data_string *dst, struct universe *universe, struct option *option, struct data_string *src) |
| int | store_options (int *ocount, unsigned char *buffer, unsigned buflen, unsigned index, 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, unsigned *priority_list, int priority_len, unsigned first_cutoff, int second_cutoff, int terminate, const char *vuname) |
| int | store_options6 (char *, int, struct option_state *, struct packet *, const int *, struct data_string *) |
| int | format_has_text (const char *) |
| int | format_min_length (const char *, struct option_cache *) |
| const char * | pretty_print_option (struct option *, const unsigned char *, unsigned, int, int) |
| int | pretty_escape (char **, char *, const unsigned char **, const unsigned char *) |
| int | get_option (struct data_string *, struct universe *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct option_state *, struct binding_scope **, unsigned, const char *, int) |
| int | get_option_int (int *, struct universe *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct option_state *, struct binding_scope **, unsigned, const char *, int) |
| void | set_option (struct universe *, struct option_state *, struct option_cache *, enum statement_op) |
| struct option_cache * | lookup_option (struct universe *, struct option_state *, unsigned) |
| struct option_cache * | lookup_hashed_option (struct universe *, struct option_state *, unsigned) |
| struct option_cache * | next_hashed_option (struct universe *, struct option_state *, struct option_cache *) |
| int | save_option_buffer (struct universe *, struct option_state *, struct buffer *, unsigned char *, unsigned, unsigned, int) |
| int | append_option_buffer (struct universe *, struct option_state *, struct buffer *, unsigned char *, unsigned, unsigned, int) |
| void | build_server_oro (struct data_string *, struct option_state *, const char *, int) |
| void | save_option (struct universe *, struct option_state *, struct option_cache *) |
| void | also_save_option (struct universe *, struct option_state *, struct option_cache *) |
| void | save_hashed_option (struct universe *, struct option_state *, struct option_cache *, isc_boolean_t appendp) |
| void | delete_option (struct universe *, struct option_state *, int) |
| void | delete_hashed_option (struct universe *, struct option_state *, int) |
| int | option_cache_dereference (struct option_cache **, const char *, int) |
| int | hashed_option_state_dereference (struct universe *, struct option_state *, const char *, int) |
| int | store_option (struct data_string *, struct universe *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct option_cache *) |
| int | option_space_encapsulate (struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct data_string *) |
| int | hashed_option_space_encapsulate (struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *) |
| int | nwip_option_space_encapsulate (struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *) |
| int | fqdn_option_space_encapsulate (struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *) |
| void | suboption_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 *, const char *) |
| void | option_space_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 | hashed_option_space_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 *)) |
| int | linked_option_get (struct data_string *, struct universe *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct option_state *, struct binding_scope **, unsigned) |
| int | linked_option_state_dereference (struct universe *, struct option_state *, const char *, int) |
| void | save_linked_option (struct universe *, struct option_state *, struct option_cache *, isc_boolean_t appendp) |
| void | linked_option_space_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 *)) |
| int | linked_option_space_encapsulate (struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *) |
| void | delete_linked_option (struct universe *, struct option_state *, int) |
| struct option_cache * | lookup_linked_option (struct universe *, struct option_state *, unsigned) |
| void | do_packet (struct interface_info *, struct dhcp_packet *, unsigned, unsigned int, struct iaddr, struct hardware *) |
| void | do_packet6 (struct interface_info *, const char *, int, int, const struct iaddr *, isc_boolean_t) |
| int | packet6_len_okay (const char *, int) |
| int | validate_packet (struct packet *) |
| int | add_option (struct option_state *options, unsigned int option_num, void *data, unsigned int data_len) |
| void | parse_vendor_option (struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *out_options, struct binding_scope **scope) |
| Parse a vendor option (option 43). | |
| int | main (int, char **) |
| void | postconf_initialization (int) |
| void | postdb_startup (void) |
| void | cleanup (void) |
| void | lease_pinged (struct iaddr, u_int8_t *, int) |
| void | lease_ping_timeout (void *) |
| int | dhcpd_interface_setup_hook (struct interface_info *ip, struct iaddr *ia) |
| isc_result_t | dhcp_io_shutdown (omapi_object_t *, void *) |
| isc_result_t | dhcp_set_control_state (control_object_state_t oldstate, control_object_state_t newstate) |
| isc_result_t | new_parse (struct parse **, int, char *, unsigned, const char *, int) |
| isc_result_t | end_parse (struct parse **) |
| isc_result_t | save_parse_state (struct parse *cfile) |
| isc_result_t | restore_parse_state (struct parse *cfile) |
| enum dhcp_token | next_token (const char **, unsigned *, struct parse *) |
| enum dhcp_token | peek_token (const char **, unsigned *, struct parse *) |
| enum dhcp_token | next_raw_token (const char **rval, unsigned *rlen, struct parse *cfile) |
| enum dhcp_token | peek_raw_token (const char **rval, unsigned *rlen, struct parse *cfile) |
| void | parse_trace_setup (void) |
| isc_result_t | readconf (void) |
| isc_result_t | read_conf_file (const char *, struct group *, int, int) |
| void | trace_conf_input (trace_type_t *, unsigned, char *) |
| void | trace_conf_stop (trace_type_t *ttype) |
| isc_result_t | conf_file_subparse (struct parse *, struct group *, int) |
| isc_result_t | lease_file_subparse (struct parse *) |
| int | parse_statement (struct parse *, struct group *, int, struct host_decl *, int) |
| void | parse_failover_peer (struct parse *, struct group *, int) |
| void | parse_failover_state_declaration (struct parse *, dhcp_failover_state_t *) |
| void | parse_failover_state (struct parse *, enum failover_state *, TIME *) |
| int | permit_list_match (struct permit *, struct permit *) |
| void | parse_pool_statement (struct parse *, struct group *, int) |
| Parse a pool statement. | |
| int | parse_lbrace (struct parse *) |
| void | parse_host_declaration (struct parse *, struct group *) |
| int | parse_class_declaration (struct class **, struct parse *, struct group *, int) |
| void | parse_shared_net_declaration (struct parse *, struct group *) |
| void | parse_subnet_declaration (struct parse *, struct shared_network *) |
| void | parse_subnet6_declaration (struct parse *, struct shared_network *) |
| void | parse_group_declaration (struct parse *, struct group *) |
| int | parse_fixed_addr_param (struct option_cache **, struct parse *, enum dhcp_tokendhcp_token) |
| int | parse_lease_declaration (struct lease **, struct parse *) |
| int | parse_ip6_addr (struct parse *, struct iaddr *) |
| int | parse_ip6_addr_expr (struct expression **, struct parse *) |
| int | parse_ip6_prefix (struct parse *, struct iaddr *, u_int8_t *) |
| void | parse_address_range (struct parse *, struct group *, int, struct pool *, struct lease **) |
| void | parse_address_range6 (struct parse *cfile, struct group *group, struct ipv6_pond *) |
| void | parse_prefix6 (struct parse *cfile, struct group *group, struct ipv6_pond *) |
| void | parse_fixed_prefix6 (struct parse *cfile, struct host_decl *host_decl) |
| void | parse_ia_na_declaration (struct parse *) |
| void | parse_ia_ta_declaration (struct parse *) |
| void | parse_ia_pd_declaration (struct parse *) |
| void | parse_server_duid (struct parse *cfile) |
| void | parse_server_duid_conf (struct parse *cfile) |
| void | parse_pool6_statement (struct parse *, struct group *, int) |
| uint32_t | parse_byte_order_uint32 (const void *source) |
| int | ddns_updates (struct packet *, struct lease *, struct lease *, struct iasubopt *, struct iasubopt *, struct option_state *) |
| isc_result_t | ddns_removals (struct lease *, struct iasubopt *, struct dhcp_ddns_cb *, isc_boolean_t) |
| u_int16_t | get_conflict_mask (struct option_state *input_options) |
| void | trace_ddns_init (void) |
| void | add_enumeration (struct enumeration *) |
| struct enumeration * | find_enumeration (const char *, int) |
| struct enumeration_value * | find_enumeration_value (const char *, int, unsigned *, const char *) |
| void | skip_to_semi (struct parse *) |
| void | skip_to_rbrace (struct parse *, int) |
| int | parse_semi (struct parse *) |
| int | parse_string (struct parse *, char **, unsigned *) |
| char * | parse_host_name (struct parse *) |
| int | parse_ip_addr_or_hostname (struct expression **, struct parse *, int) |
| void | parse_hardware_param (struct parse *, struct hardware *) |
| void | parse_lease_time (struct parse *, TIME *) |
| unsigned char * | parse_numeric_aggregate (struct parse *, unsigned char *, unsigned *, int, int, unsigned) |
| void | convert_num (struct parse *, unsigned char *, const char *, int, unsigned) |
| TIME | parse_date (struct parse *) |
| TIME | parse_date_core (struct parse *) |
| isc_result_t | parse_option_name (struct parse *, int, int *, struct option **) |
| void | parse_option_space_decl (struct parse *) |
| int | parse_option_code_definition (struct parse *, struct option *) |
| int | parse_base64 (struct data_string *, struct parse *) |
| int | parse_cshl (struct data_string *, struct parse *) |
| int | parse_executable_statement (struct executable_statement **, struct parse *, int *, enum expression_context) |
| int | parse_executable_statements (struct executable_statement **, struct parse *, int *, enum expression_context) |
| int | parse_zone (struct dns_zone *, struct parse *) |
| int | parse_key (struct parse *) |
| int | parse_on_statement (struct executable_statement **, struct parse *, int *) |
| int | parse_switch_statement (struct executable_statement **, struct parse *, int *) |
| int | parse_case_statement (struct executable_statement **, struct parse *, int *, enum expression_context) |
| int | parse_if_statement (struct executable_statement **, struct parse *, int *) |
| int | parse_boolean_expression (struct expression **, struct parse *, int *) |
| int | parse_boolean (struct parse *) |
| int | parse_data_expression (struct expression **, struct parse *, int *) |
| int | parse_numeric_expression (struct expression **, struct parse *, int *) |
| int | parse_dns_expression (struct expression **, struct parse *, int *) |
| int | parse_non_binary (struct expression **, struct parse *, int *, enum expression_context) |
| int | parse_expression (struct expression **, struct parse *, int *, enum expression_context, struct expression **, enum expr_opexpr_op) |
| int | parse_option_data (struct expression **expr, struct parse *cfile, int lookups, struct option *option) |
| int | parse_option_statement (struct executable_statement **, struct parse *, int, struct option *, enum statement_op) |
| int | parse_option_token (struct expression **, struct parse *, const char **, struct expression *, int, int) |
| int | parse_allow_deny (struct option_cache **, struct parse *, int) |
| int | parse_auth_key (struct data_string *, struct parse *) |
| int | parse_warn (struct parse *, const char *,...) __attribute__((__format__(__printf__ |
| int struct expression * | parse_domain_list (struct parse *cfile, int) |
| struct expression * | parse_domain_name (struct parse *cfile) |
| pair | cons (caddr_t, pair) |
| int | make_const_option_cache (struct option_cache **, struct buffer **, u_int8_t *, unsigned, struct option *, const char *, int) |
| int | make_host_lookup (struct expression **, const char *) |
| int | enter_dns_host (struct dns_host_entry **, const char *) |
| int | make_const_data (struct expression **, const unsigned char *, unsigned, int, int, const char *, int) |
| int | make_const_int (struct expression **, unsigned long) |
| int | make_concat (struct expression **, struct expression *, struct expression *) |
| int | make_encapsulation (struct expression **, struct data_string *) |
| int | make_substring (struct expression **, struct expression *, struct expression *, struct expression *) |
| int | make_limit (struct expression **, struct expression *, int) |
| int | make_let (struct executable_statement **, const char *) |
| int | option_cache (struct option_cache **, struct data_string *, struct expression *, struct option *, const char *, int) |
| int | evaluate_expression (struct binding_value **, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *, const char *, int) |
| int | binding_value_dereference (struct binding_value **, const char *, int) |
| int | evaluate_boolean_expression (int *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *) |
| int | evaluate_data_expression (struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *, const char *, int) |
| int | evaluate_numeric_expression (unsigned long *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *) |
| int | evaluate_option_cache (struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct option_cache *, const char *, int) |
| int | evaluate_boolean_option_cache (int *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct option_cache *, const char *, int) |
| int | evaluate_boolean_expression_result (int *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *) |
| void | expression_dereference (struct expression **, const char *, int) |
| int | is_dns_expression (struct expression *) |
| int | is_boolean_expression (struct expression *) |
| int | is_data_expression (struct expression *) |
| int | is_numeric_expression (struct expression *) |
| int | is_compound_expression (struct expression *) |
| int | op_precedence (enum expr_opexpr_op, enum expr_opexpr_op) |
| enum expression_context | expression_context (struct expression *) |
| enum expression_context | op_context (enum expr_op) |
| int | write_expression (FILE *, struct expression *, int, int, int) |
| struct binding * | find_binding (struct binding_scope *, const char *) |
| int | free_bindings (struct binding_scope *, const char *, int) |
| int | binding_scope_dereference (struct binding_scope **, const char *, int) |
| int | fundef_dereference (struct fundef **, const char *, int) |
| int | data_subexpression_length (int *, struct expression *) |
| int | expr_valid_for_context (struct expression *, enum expression_contextexpression_context) |
| struct binding * | create_binding (struct binding_scope **, const char *) |
| int | bind_ds_value (struct binding_scope **, const char *, struct data_string *) |
| int | find_bound_string (struct data_string *, struct binding_scope *, const char *) |
| int | unset (struct binding_scope *, const char *) |
| int | data_string_sprintfa (struct data_string *ds, const char *fmt,...) |
| int | concat_dclists (struct data_string *, struct data_string *, struct data_string *) |
| Adds two Dc-formatted lists into a single Dc-formatted list. | |
| void | dhcp (struct packet *) |
| void | dhcpdiscover (struct packet *, int) |
| void | dhcprequest (struct packet *, int, struct lease *) |
| void | dhcprelease (struct packet *, int) |
| void | dhcpdecline (struct packet *, int) |
| void | dhcpinform (struct packet *, int) |
| void | nak_lease (struct packet *, struct iaddr *cip, struct group *) |
| Constructs and sends a DHCP Nak. | |
| void | ack_lease (struct packet *, struct lease *, unsigned int, TIME, char *, int, struct host_decl *) |
| void | echo_client_id (struct packet *, struct lease *, struct option_state *, struct option_state *) |
| Adds a dhcp-client-id option to a set of options Given a set of input options, it searches for echo-client-id. If it is defined and enabled, the given packet is searched for dhcp-client-id. If the option is found it is replicated into the given set of output options. This allows us to provide compliance with RFC 6842. It is called when we ack or nak a lease. In the latter case we may or may not have created the requisite scope to lookup echo-client-id. | |
| void | dhcp_reply (struct lease *) |
| int | find_lease (struct lease **, struct packet *, struct shared_network *, int *, int *, struct lease *, const char *, int) |
| int | mockup_lease (struct lease **, struct packet *, struct shared_network *, struct host_decl *) |
| void | static_lease_dereference (struct lease *, const char *, int) |
| int | allocate_lease (struct lease **, struct packet *, struct pool *, int *) |
| int | permitted (struct packet *, struct permit *) |
| int | locate_network (struct packet *) |
| int | parse_agent_information_option (struct packet *, int, u_int8_t *) |
| unsigned | cons_agent_information_options (struct option_state *, struct dhcp_packet *, unsigned, unsigned) |
| void | get_server_source_address (struct in_addr *from, struct option_state *options, struct option_state *out_options, struct packet *packet) |
| void | eval_network_statements (struct option_state **options, struct packet *packet, struct group *network_group) |
| Builds option set from statements at the global and network scope. | |
| u_int16_t | dhcp_check_relayport (struct packet *packet) |
| void | dhcpleasequery (struct packet *, int) |
| void | dhcpv6_leasequery (struct data_string *, struct packet *) |
| isc_boolean_t | server_duid_isset (void) |
| void | copy_server_duid (struct data_string *ds, const char *file, int line) |
| void | set_server_duid (struct data_string *new_duid) |
| isc_result_t | set_server_duid_from_option (void) |
| void | set_server_duid_type (int type) |
| isc_result_t | generate_new_server_duid (void) |
| isc_result_t | get_client_id (struct packet *, struct data_string *) |
| void | dhcpv6 (struct packet *) |
| void | bootp (struct packet *) |
| void | use_host_decl_name (struct packet *, struct lease *, struct option_state *) |
| Adds hostname option when use-host-decl-names is enabled. | |
| isc_result_t | delete_group (struct group_object *, int) |
| isc_result_t | supersede_group (struct group_object *, int) |
| int | clone_group (struct group **, struct group *, const char *, int) |
| int | write_group (struct group_object *) |
| void | relinquish_lease_hunks (void) |
| struct lease * | new_leases (unsigned, const char *, int) |
| OMAPI_OBJECT_ALLOC_DECL (shared_network, struct shared_network, dhcp_type_shared_network) OMAPI_OBJECT_ALLOC_DECL(dhcp_control | |
| dhcp_type_control int | option_chain_head_allocate (struct option_chain_head **, const char *, int) |
| int | option_chain_head_reference (struct option_chain_head **, struct option_chain_head *, const char *, int) |
| int | option_chain_head_dereference (struct option_chain_head **, const char *, int) |
| int | group_allocate (struct group **, const char *, int) |
| int | group_reference (struct group **, struct group *, const char *, int) |
| int | group_dereference (struct group **, const char *, int) |
| struct dhcp_packet * | new_dhcp_packet (const char *, int) |
| struct protocol * | new_protocol (const char *, int) |
| struct lease_state * | new_lease_state (const char *, int) |
| struct domain_search_list * | new_domain_search_list (const char *, int) |
| struct name_server * | new_name_server (const char *, int) |
| void | free_name_server (struct name_server *, const char *, int) |
| struct option * | new_option (const char *, const char *, int) |
| int | option_reference (struct option **dest, struct option *src, const char *file, int line) |
| int | option_dereference (struct option **dest, const char *file, int line) |
| struct universe * | new_universe (const char *, int) |
| void | free_universe (struct universe *, const char *, int) |
| void | free_domain_search_list (struct domain_search_list *, const char *, int) |
| void | free_lease_state (struct lease_state *, const char *, int) |
| void | free_protocol (struct protocol *, const char *, int) |
| void | free_dhcp_packet (struct dhcp_packet *, const char *, int) |
| struct client_lease * | new_client_lease (const char *, int) |
| void | free_client_lease (struct client_lease *, const char *, int) |
| struct permit * | new_permit (const char *, int) |
| void | free_permit (struct permit *, const char *, int) |
| pair | new_pair (const char *, int) |
| void | free_pair (pair, const char *, int) |
| int | expression_allocate (struct expression **, const char *, int) |
| int | expression_reference (struct expression **, struct expression *, const char *, int) |
| void | free_expression (struct expression *, const char *, int) |
| int | binding_value_allocate (struct binding_value **, const char *, int) |
| int | binding_value_reference (struct binding_value **, struct binding_value *, const char *, int) |
| void | free_binding_value (struct binding_value *, const char *, int) |
| int | fundef_allocate (struct fundef **, const char *, int) |
| int | fundef_reference (struct fundef **, struct fundef *, const char *, int) |
| int | option_cache_allocate (struct option_cache **, const char *, int) |
| int | option_cache_reference (struct option_cache **, struct option_cache *, const char *, int) |
| int | buffer_allocate (struct buffer **, unsigned, const char *, int) |
| int | buffer_reference (struct buffer **, struct buffer *, const char *, int) |
| int | buffer_dereference (struct buffer **, const char *, int) |
| int | dns_host_entry_allocate (struct dns_host_entry **, const char *, const char *, int) |
| int | dns_host_entry_reference (struct dns_host_entry **, struct dns_host_entry *, const char *, int) |
| int | dns_host_entry_dereference (struct dns_host_entry **, const char *, int) |
| int | option_state_allocate (struct option_state **, const char *, int) |
| int | option_state_reference (struct option_state **, struct option_state *, const char *, int) |
| int | option_state_dereference (struct option_state **, const char *, int) |
| int | data_string_new (struct data_string *, const char *, unsigned int, const char *, int) |
| Constructs a null-terminated data_string from a char* and length. | |
| void | data_string_copy (struct data_string *, const struct data_string *, const char *, int) |
| void | data_string_forget (struct data_string *, const char *, int) |
| void | data_string_truncate (struct data_string *, int) |
| int | data_string_terminate (struct data_string *, const char *, int) |
| int | executable_statement_allocate (struct executable_statement **, const char *, int) |
| int | executable_statement_reference (struct executable_statement **, struct executable_statement *, const char *, int) |
| int | packet_allocate (struct packet **, const char *, int) |
| int | packet_reference (struct packet **, struct packet *, const char *, int) |
| int | packet_dereference (struct packet **, const char *, int) |
| int | binding_scope_allocate (struct binding_scope **, const char *, int) |
| int | binding_scope_reference (struct binding_scope **, struct binding_scope *, const char *, int) |
| int | dns_zone_allocate (struct dns_zone **, const char *, int) |
| int | dns_zone_reference (struct dns_zone **, struct dns_zone *, const char *, int) |
| char * | quotify_string (const char *, const char *, int) |
| char * | quotify_buf (const unsigned char *, unsigned, const char, const char *, int) |
| char * | print_base64 (const unsigned char *, unsigned, const char *, int) |
| char * | print_hw_addr (const int, const int, const unsigned char *) |
| void | print_lease (struct lease *) |
| void | dump_raw (const unsigned char *, unsigned) |
| void | dump_packet_option (struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *) |
| void | dump_packet (struct packet *) |
| void | hash_dump (struct hash_table *) |
| char * | print_hex (unsigned, const u_int8_t *, unsigned, unsigned) |
| void | print_hex_only (unsigned, const u_int8_t *, unsigned, char *) |
| void | print_hex_or_string (unsigned, const u_int8_t *, unsigned, char *) |
| char * | print_dotted_quads (unsigned, const u_int8_t *) |
| char * | print_dec_1 (unsigned long) |
| char * | print_dec_2 (unsigned long) |
| void | print_expression (const char *, struct expression *) |
| int | token_print_indent_concat (FILE *, int, int, const char *, const char *,...) |
| int | token_indent_data_string (FILE *, int, int, const char *, const char *, struct data_string *) |
| int | token_print_indent (FILE *, int, int, const char *, const char *, const char *) |
| void | indent_spaces (FILE *, int) |
| void | print_dns_status (int, struct dhcp_ddns_cb *, isc_result_t) |
| const char * | print_time (TIME) |
| void | get_hw_addr (struct interface_info *info) |
| void | try_hw_addr (struct interface_info *info) |
| isc_result_t | get_hw_addr2 (struct interface_info *info) |
| char * | buf_to_hex (const unsigned char *s, unsigned len, const char *file, int line) |
| char * | format_lease_id (const unsigned char *s, unsigned len, int format, const char *file, int line) |
| char * | absolute_path (const char *orgpath) |
| int | if_register_socket (struct interface_info *, int, int *, struct in6_addr *) |
| void | set_multicast_hop_limit (struct interface_info *info, int hop_limit) |
| void | if_reinitialize_fallback (struct interface_info *) |
| void | if_register_fallback (struct interface_info *) |
| ssize_t | send_fallback (struct interface_info *, struct packet *, struct dhcp_packet *, size_t, struct in_addr, struct sockaddr_in *, struct hardware *) |
| ssize_t | send_fallback6 (struct interface_info *, struct packet *, struct dhcp_packet *, size_t, struct in6_addr *, struct sockaddr_in6 *, struct hardware *) |
| ssize_t | send_packet6 (struct interface_info *, const unsigned char *, size_t, struct sockaddr_in6 *) |
| isc_result_t | fallback_discard (omapi_object_t *) |
| void | if_register6 (struct interface_info *info, int do_multicast) |
| void | if_register_linklocal6 (struct interface_info *info) |
| ssize_t | receive_packet6 (struct interface_info *interface, unsigned char *buf, size_t len, struct sockaddr_in6 *from, struct in6_addr *to_addr, unsigned int *if_index) |
| void | if_deregister6 (struct interface_info *info) |
| int | if_register_lpf (struct interface_info *) |
| void | if_reinitialize_send (struct interface_info *) |
| void | if_register_send (struct interface_info *) |
| void | if_deregister_send (struct interface_info *) |
| ssize_t | send_packet (struct interface_info *, struct packet *, struct dhcp_packet *, size_t, struct in_addr, struct sockaddr_in *, struct hardware *) |
| void | if_reinitialize_receive (struct interface_info *) |
| void | if_register_receive (struct interface_info *) |
| void | if_deregister_receive (struct interface_info *) |
| ssize_t | receive_packet (struct interface_info *, unsigned char *, size_t, struct sockaddr_in *, struct hardware *) |
| int | can_unicast_without_arp (struct interface_info *) |
| int | can_receive_unicast_unconfigured (struct interface_info *) |
| int | supports_multiple_interfaces (struct interface_info *) |
| void | maybe_setup_fallback (void) |
| isc_result_t | interface_setup (void) |
| void | interface_trace_setup (void) |
| isc_result_t | interface_initialize (omapi_object_t *, const char *, int) |
| void | discover_interfaces (int) |
| int | setup_fallback (struct interface_info **, const char *, int) |
| int | if_readsocket (omapi_object_t *) |
| void | reinitialize_interfaces (void) |
| void | set_time (TIME) |
| struct timeval * | process_outstanding_timeouts (struct timeval *) |
| void | dispatch (void) |
| isc_result_t | got_one (omapi_object_t *) |
| isc_result_t | got_one_v6 (omapi_object_t *) |
| isc_result_t | interface_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | interface_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | interface_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | interface_signal_handler (omapi_object_t *, const char *, va_list) |
| isc_result_t | interface_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| void | add_timeout (struct timeval *, void(*)(void *), void *, tvref_t, tvunref_t) |
| void | cancel_timeout (void(*)(void *), void *) |
| void | cancel_all_timeouts (void) |
| void | relinquish_timeouts (void) |
| OMAPI_OBJECT_ALLOC_DECL (interface, struct interface_info, dhcp_type_interface) extern char *default_option_format | |
| void | initialize_common_option_spaces (void) |
| void | initialize_server_option_spaces (void) |
| struct iaddr | subnet_number (struct iaddr, struct iaddr) |
| struct iaddr | ip_addr (struct iaddr, struct iaddr, u_int32_t) |
| struct iaddr | broadcast_addr (struct iaddr, struct iaddr) |
| u_int32_t | host_addr (struct iaddr, struct iaddr) |
| int | addr_eq (struct iaddr, struct iaddr) |
| int | addr_match (struct iaddr *, struct iaddrmatch *) |
| int | addr_cmp (const struct iaddr *a1, const struct iaddr *a2) |
| int | addr_or (struct iaddr *result, const struct iaddr *a1, const struct iaddr *a2) |
| int | addr_and (struct iaddr *result, const struct iaddr *a1, const struct iaddr *a2) |
| isc_boolean_t | is_cidr_mask_valid (const struct iaddr *addr, int bits) |
| isc_result_t | range2cidr (struct iaddrcidrnetlist **result, const struct iaddr *lo, const struct iaddr *hi) |
| isc_result_t | free_iaddrcidrnetlist (struct iaddrcidrnetlist **result) |
| const char * | piaddr (struct iaddr) |
| const char * | pdestdesc (struct iaddr) |
| char * | piaddrmask (struct iaddr *, struct iaddr *) |
| char * | piaddrcidr (const struct iaddr *, unsigned int) |
| u_int16_t | validate_port (char *) |
| u_int16_t | validate_port_pair (char *) |
| const char * | pin6_addr (const struct in6_addr *) |
| void | dhcpoffer (struct packet *) |
| void | dhcpack (struct packet *) |
| void | dhcpnak (struct packet *) |
| void | send_discover (void *) |
| void | send_request (void *) |
| void | send_release (void *) |
| void | send_decline (void *) |
| void | state_reboot (void *) |
| void | state_init (void *) |
| void | state_selecting (void *) |
| void | state_requesting (void *) |
| void | state_bound (void *) |
| void | state_stop (void *) |
| void | state_panic (void *) |
| uint32_t | check_v6only (struct packet *, struct client_state *) |
| void | start_v6only (struct client_state *, uint32_t) |
| void | finish_v6only (void *) |
| void | bind_lease (struct client_state *) |
| void | make_client_options (struct client_state *, struct client_lease *, u_int8_t *, struct option_cache *, struct iaddr *, struct option **, struct option_state **) |
| void | make_discover (struct client_state *, struct client_lease *) |
| void | make_request (struct client_state *, struct client_lease *) |
| void | make_decline (struct client_state *, struct client_lease *) |
| void | make_release (struct client_state *, struct client_lease *) |
| void | destroy_client_lease (struct client_lease *) |
| void | rewrite_client_leases (void) |
| void | write_lease_option (struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *) |
| int | write_client_lease (struct client_state *, struct client_lease *, int, int) |
| isc_result_t | write_client6_lease (struct client_state *client, struct dhc6_lease *lease, int rewrite, int sync) |
| int | dhcp_option_ev_name (char *, size_t, struct option *) |
| void | script_init (struct client_state *, const char *, struct string_list *) |
| Initializes basic variables for a script. | |
| void | client_option_envadd (struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *) |
| void | script_write_params (struct client_state *, const char *, struct client_lease *) |
| Adds parameters to environment variables for a script. | |
| void | script_write_requested (struct client_state *) |
| Write out the environent variable the client requested. Write out the environment variables for the objects that the client requested. If the object was requested the variable will be: requested_<option_name>=1 If it wasn't requested there won't be a variable. | |
| int | script_go (struct client_state *) |
| Calls external script. | |
| void | client_envadd (struct client_state *, const char *, const char *, const char *,...) __attribute__((__format__(__printf__ |
| void struct client_lease * | packet_to_lease (struct packet *, struct client_state *) |
| void | finish (char) |
| void | detach (void) |
| void | write_client_pid_file (void) |
| void | client_location_changed (void) |
| void | do_release (struct client_state *) |
| int | dhclient_interface_shutdown_hook (struct interface_info *) |
| int | dhclient_interface_discovery_hook (struct interface_info *) |
| isc_result_t | dhclient_interface_startup_hook (struct interface_info *) |
| void | dhclient_schedule_updates (struct client_state *client, struct iaddr *addr, int offset) |
| void | client_dns_update_timeout (void *cp) |
| isc_result_t | client_dns_update (struct client_state *client, dhcp_ddns_cb_t *ddns_cb) |
| void | client_dns_remove (struct client_state *client, struct iaddr *addr) |
| void | dhcpv4_client_assignments (void) |
| void | dhcpv6_client_assignments (void) |
| isc_result_t | form_duid (struct data_string *duid, const char *file, int line) |
| void | dhcp4o6_start (void) |
| void | dhc6_lease_destroy (struct dhc6_lease **src, const char *file, int line) |
| void | start_init6 (struct client_state *client) |
| void | start_info_request6 (struct client_state *client) |
| void | start_confirm6 (struct client_state *client) |
| void | start_release6 (struct client_state *client) |
| void | start_selecting6 (struct client_state *client) |
| void | unconfigure6 (struct client_state *client, const char *reason) |
| int | write_lease (struct lease *) |
| int | write_host (struct host_decl *) |
| int | write_server_duid (void) |
| int | write_failover_state (dhcp_failover_state_t *) |
| int | db_printable (const unsigned char *) |
| int | db_printable_len (const unsigned char *, unsigned) |
| isc_result_t | write_named_billing_class (const void *, unsigned, void *) |
| void | write_billing_classes (void) |
| int | write_billing_class (struct class *) |
| void | commit_leases_timeout (void *) |
| int | commit_leases (void) |
| int | commit_leases_timed (void) |
| void | db_startup (int) |
| int | new_lease_file (int test_mode) |
| int | group_writer (struct group_object *) |
| int | write_ia (const struct ia_xx *) |
| u_int32_t | checksum (unsigned char *, unsigned, u_int32_t) |
| u_int32_t | wrapsum (u_int32_t) |
| void | assemble_hw_header (struct interface_info *, unsigned char *, unsigned *, struct hardware *) |
| void | assemble_udp_ip_header (struct interface_info *, unsigned char *, unsigned *, u_int32_t, u_int32_t, u_int32_t, unsigned char *, unsigned) |
| ssize_t | decode_hw_header (struct interface_info *, unsigned char *, unsigned, struct hardware *) |
| ssize_t | decode_udp_ip_header (struct interface_info *, unsigned char *, unsigned, struct sockaddr_in *, unsigned, unsigned *, int) |
| void | assemble_ethernet_header (struct interface_info *, unsigned char *, unsigned *, struct hardware *) |
| ssize_t | decode_ethernet_header (struct interface_info *, unsigned char *, unsigned, struct hardware *) |
| void | assemble_tr_header (struct interface_info *, unsigned char *, unsigned *, struct hardware *) |
| ssize_t | decode_tr_header (struct interface_info *, unsigned char *, unsigned, struct hardware *) |
| void | convert_statement (struct parse *) |
| void | convert_host_statement (struct parse *, jrefproto) |
| void | convert_host_name (struct parse *, jrefproto) |
| void | convert_class_statement (struct parse *, jrefproto, int) |
| void | convert_class_decl (struct parse *, jrefproto) |
| void | convert_lease_time (struct parse *, jrefproto, char *) |
| void | convert_shared_net_statement (struct parse *, jrefproto) |
| void | convert_subnet_statement (struct parse *, jrefproto) |
| void | convert_subnet_decl (struct parse *, jrefproto) |
| void | convert_host_decl (struct parse *, jrefproto) |
| void | convert_hardware_decl (struct parse *, jrefproto) |
| void | convert_hardware_addr (struct parse *, jrefproto) |
| void | convert_filename_decl (struct parse *, jrefproto) |
| void | convert_servername_decl (struct parse *, jrefproto) |
| void | convert_ip_addr_or_hostname (struct parse *, jrefproto, int) |
| void | convert_fixed_addr_decl (struct parse *, jrefproto) |
| void | convert_option_decl (struct parse *, jrefproto) |
| void | convert_lease_statement (struct parse *, jrefproto) |
| void | convert_address_range (struct parse *, jrefproto) |
| void | convert_date (struct parse *, jrefproto, char *) |
| void | convert_numeric_aggregate (struct parse *, jrefproto, int, int, int, int) |
| void | indent (int) |
| void | add_route_direct (struct interface_info *, struct in_addr) |
| void | add_route_net (struct interface_info *, struct in_addr, struct in_addr) |
| void | add_route_default_gateway (struct interface_info *, struct in_addr) |
| void | remove_routes (struct in_addr) |
| void | remove_if_route (struct interface_info *, struct in_addr) |
| void | remove_all_if_routes (struct interface_info *) |
| void | set_netmask (struct interface_info *, struct in_addr) |
| void | set_broadcast_addr (struct interface_info *, struct in_addr) |
| void | set_ip_address (struct interface_info *, struct in_addr) |
| isc_result_t | read_client_conf (void) |
| int | read_client_conf_file (const char *, struct interface_info *, struct client_config *) |
| void | read_client_leases (void) |
| void | read_client_duid (void) |
| void | parse_client_statement (struct parse *, struct interface_info *, struct client_config *) |
| int | parse_X (struct parse *, u_int8_t *, unsigned) |
| int | parse_option_list (struct parse *, struct option ***) |
| void | parse_interface_declaration (struct parse *, struct client_config *, char *) |
| int | interface_or_dummy (struct interface_info **, const char *) |
| void | make_client_state (struct client_state **) |
| void | make_client_config (struct client_state *, struct client_config *) |
| void | parse_client_lease_statement (struct parse *, int) |
| void | parse_client_lease_declaration (struct parse *, struct client_lease *, struct interface_info **, struct client_state **) |
| int | parse_option_decl (struct option_cache **, struct parse *) |
| void | parse_string_list (struct parse *, struct string_list **, int) |
| int | parse_ip_addr (struct parse *, struct iaddr *) |
| int | parse_destination_descriptor (struct parse *, struct iaddr *) |
| int | parse_ip_addr_with_subnet (struct parse *, struct iaddrmatch *) |
| void | parse_reject_statement (struct parse *, struct client_config *) |
| void | icmp_startup (int, void(*)(struct iaddr, u_int8_t *, int)) |
| int | icmp_readsocket (omapi_object_t *) |
| int | icmp_echorequest (struct iaddr *) |
| isc_result_t | icmp_echoreply (omapi_object_t *) |
| isc_result_t | enter_dns_zone (struct dns_zone *) |
| isc_result_t | dns_zone_lookup (struct dns_zone **, const char *) |
| int | dns_zone_dereference (struct dns_zone **, const char *, int) |
| isc_result_t | find_cached_zone (dhcp_ddns_cb_t *, int) |
| void | forget_zone (struct dns_zone **) |
| void | repudiate_zone (struct dns_zone **) |
| int | get_dhcid (dhcp_ddns_cb_t *, int, const u_int8_t *, unsigned) |
| void | dhcid_tolease (struct data_string *, struct data_string *) |
| isc_result_t | dhcid_fromlease (struct data_string *, struct data_string *) |
| isc_result_t | ddns_update_fwd (struct data_string *, struct iaddr, struct data_string *, unsigned long, unsigned, unsigned) |
| isc_result_t | ddns_remove_fwd (struct data_string *, struct iaddr, struct data_string *) |
| char * | ddns_state_name (int state) |
| dhcp_ddns_cb_t * | ddns_cb_alloc (const char *file, int line) |
| void | ddns_cb_free (dhcp_ddns_cb_t *ddns_cb, const char *file, int line) |
| void | ddns_cb_forget_zone (dhcp_ddns_cb_t *ddns_cb) |
| isc_result_t | ddns_modify_fwd (dhcp_ddns_cb_t *ddns_cb, const char *file, int line) |
| isc_result_t | ddns_modify_ptr (dhcp_ddns_cb_t *ddns_cb, const char *file, int line) |
| void | ddns_cancel (dhcp_ddns_cb_t *ddns_cb, const char *file, int line) |
| void | read_resolv_conf (TIME) |
| struct name_server * | first_name_server (void) |
| void | classification_setup (void) |
| void | classify_client (struct packet *) |
| int | check_collection (struct packet *, struct lease *, struct collection *) |
| void | classify (struct packet *, struct class *) |
| isc_result_t | unlink_class (struct class **class) |
| isc_result_t | find_class (struct class **, const char *, const char *, int) |
| void | unbill_class (struct lease *) |
| int | bill_class (struct lease *, struct class *) |
| int | execute_statements (struct binding_value **result, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct executable_statement *, struct on_star *) |
| void | execute_statements_in_scope (struct binding_value **result, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct group *, struct group *, struct on_star *) |
| int | executable_statement_dereference (struct executable_statement **, const char *, int) |
| void | write_statements (FILE *, struct executable_statement *, int) |
| int | find_matching_case (struct executable_statement **, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *, struct executable_statement *) |
| int | executable_statement_foreach (struct executable_statement *, int(*)(struct executable_statement *, void *, int), void *, int) |
| void | dhcp_common_objects_setup (void) |
| isc_result_t | dhcp_group_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_group_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_group_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_group_signal_handler (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_group_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_group_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_group_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_group_remove (omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_control_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_control_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_control_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_control_signal_handler (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_control_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_control_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_control_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_control_remove (omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_subnet_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_subnet_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_subnet_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_subnet_signal_handler (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_subnet_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_subnet_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_subnet_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_subnet_remove (omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_shared_network_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_shared_network_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_shared_network_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_shared_network_signal_handler (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_shared_network_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_shared_network_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_shared_network_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_shared_network_remove (omapi_object_t *, omapi_object_t *) |
| void | dhcp_db_objects_setup (void) |
| isc_result_t | dhcp_lease_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_lease_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_lease_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_lease_signal_handler (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_lease_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_lease_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_lease_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_lease_remove (omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_host_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_host_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_host_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_host_signal_handler (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_host_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_host_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_host_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_host_remove (omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_pool_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_pool_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_pool_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_pool_signal_handler (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_pool_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_pool_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_pool_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_pool_remove (omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_class_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_class_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_class_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_class_signal_handler (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_class_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_class_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_class_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_class_remove (omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_subclass_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_subclass_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_subclass_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_subclass_signal_handler (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_subclass_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_subclass_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_subclass_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_subclass_remove (omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_interface_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_interface_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_interface_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_interface_signal_handler (omapi_object_t *, const char *, va_list ap) |
| isc_result_t | dhcp_interface_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_interface_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_interface_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_interface_remove (omapi_object_t *, omapi_object_t *) |
| void | interface_stash (struct interface_info *) |
| void | interface_snorf (struct interface_info *, int) |
| isc_result_t | binding_scope_set_value (struct binding_scope *, int, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | binding_scope_get_value (omapi_value_t **, struct binding_scope *, omapi_data_string_t *) |
| isc_result_t | binding_scope_stuff_values (omapi_object_t *, struct binding_scope *) |
| void | register_eventhandler (struct eventqueue **, void(*handler)(void *)) |
| void | unregister_eventhandler (struct eventqueue **, void(*handler)(void *)) |
| void | trigger_event (struct eventqueue **) |
| isc_result_t | enter_class (struct class *, int, int) |
| isc_result_t | delete_class (struct class *, int) |
| isc_result_t | enter_host (struct host_decl *, int, int) |
| isc_result_t | delete_host (struct host_decl *, int) |
| void | change_host_uid (struct host_decl *host, const char *data, int len) |
| int | find_hosts_by_haddr (struct host_decl **, int, const unsigned char *, unsigned, const char *, int) |
| int | find_hosts_by_uid (struct host_decl **, const unsigned char *, unsigned, const char *, int) |
| int | find_hosts_by_option (struct host_decl **, struct packet *, struct option_state *, const char *, int) |
| int | find_host_for_network (struct subnet **, struct host_decl **, struct iaddr *, struct shared_network *) |
| void | new_address_range (struct parse *, struct iaddr, struct iaddr, struct subnet *, struct pool *, struct lease **) |
| isc_result_t | dhcp_lease_free (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_lease_get (omapi_object_t **, const char *, int) |
| int | find_grouped_subnet (struct subnet **, struct shared_network *, struct iaddr, const char *, int) |
| int | find_subnet (struct subnet **, struct iaddr, const char *, int) |
| void | enter_shared_network (struct shared_network *) |
| void | new_shared_network_interface (struct parse *, struct shared_network *, const char *) |
| int | subnet_inner_than (const struct subnet *, const struct subnet *, int) |
| void | enter_subnet (struct subnet *) |
| void | enter_lease (struct lease *) |
| int | supersede_lease (struct lease *, struct lease *, int, int, int, int) |
| void | make_binding_state_transition (struct lease *) |
| int | lease_copy (struct lease **, struct lease *, const char *, int) |
| void | release_lease (struct lease *, struct packet *) |
| void | abandon_lease (struct lease *, const char *) |
| void | pool_timer (void *) |
| int | find_lease_by_uid (struct lease **, const unsigned char *, unsigned, const char *, int) |
| int | find_lease_by_hw_addr (struct lease **, const unsigned char *, unsigned, const char *, int) |
| int | find_lease_by_ip_addr (struct lease **, struct iaddr, const char *, int) |
| void | uid_hash_add (struct lease *) |
| void | uid_hash_delete (struct lease *) |
| void | hw_hash_add (struct lease *) |
| void | hw_hash_delete (struct lease *) |
| int | write_leases (void) |
| int | write_leases6 (void) |
| int | lease_enqueue (struct lease *) |
| isc_result_t | lease_instantiate (const void *, unsigned, void *) |
| void | expire_all_pools (void) |
| void | dump_subnets (void) |
| void | dhcp_failover_sanity_check (void) |
| void | dhcp_failover_startup (void) |
| int | dhcp_failover_write_all_states (void) |
| isc_result_t | enter_failover_peer (dhcp_failover_state_t *) |
| isc_result_t | find_failover_peer (dhcp_failover_state_t **, const char *, const char *, int) |
| isc_result_t | dhcp_failover_link_initiate (omapi_object_t *) |
| isc_result_t | dhcp_failover_link_signal (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_failover_link_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_failover_link_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_failover_link_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_failover_link_stuff_values (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_failover_listen (omapi_object_t *) |
| isc_result_t | dhcp_failover_listener_signal (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_failover_listener_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| isc_result_t | dhcp_failover_listener_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_failover_listener_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_failover_listener_stuff (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_failover_register (omapi_object_t *) |
| isc_result_t | dhcp_failover_state_signal (omapi_object_t *, const char *, va_list) |
| isc_result_t | dhcp_failover_state_transition (dhcp_failover_state_t *, const char *) |
| isc_result_t | dhcp_failover_set_service_state (dhcp_failover_state_t *state) |
| void | dhcp_failover_rescind_updates (dhcp_failover_state_t *) |
| isc_result_t | dhcp_failover_set_state (dhcp_failover_state_t *, enum failover_statefailover_state) |
| isc_result_t | dhcp_failover_peer_state_changed (dhcp_failover_state_t *, failover_message_t *) |
| void | dhcp_failover_pool_rebalance (void *) |
| void | dhcp_failover_pool_check (struct pool *) |
| int | dhcp_failover_state_pool_check (dhcp_failover_state_t *) |
| void | dhcp_failover_timeout (void *) |
| void | dhcp_failover_send_contact (void *) |
| isc_result_t | dhcp_failover_send_state (dhcp_failover_state_t *) |
| isc_result_t | dhcp_failover_send_updates (dhcp_failover_state_t *) |
| int | dhcp_failover_queue_update (struct lease *, int) |
| int | dhcp_failover_send_acks (dhcp_failover_state_t *) |
| void | dhcp_failover_toack_queue_timeout (void *) |
| int | dhcp_failover_queue_ack (dhcp_failover_state_t *, failover_message_t *msg) |
| void | dhcp_failover_ack_queue_remove (dhcp_failover_state_t *, struct lease *) |
| isc_result_t | dhcp_failover_state_set_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *) |
| void | dhcp_failover_keepalive (void *) |
| void | dhcp_failover_reconnect (void *) |
| void | dhcp_failover_startup_timeout (void *) |
| void | dhcp_failover_link_startup_timeout (void *) |
| void | dhcp_failover_listener_restart (void *) |
| void | dhcp_failover_auto_partner_down (void *vs) |
| isc_result_t | dhcp_failover_state_get_value (omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **) |
| isc_result_t | dhcp_failover_state_destroy (omapi_object_t *, const char *, int) |
| isc_result_t | dhcp_failover_state_stuff (omapi_object_t *, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_failover_state_lookup (omapi_object_t **, omapi_object_t *, omapi_object_t *) |
| isc_result_t | dhcp_failover_state_create (omapi_object_t **, omapi_object_t *) |
| isc_result_t | dhcp_failover_state_remove (omapi_object_t *, omapi_object_t *) |
| int | dhcp_failover_state_match (dhcp_failover_state_t *, u_int8_t *, unsigned) |
| int | dhcp_failover_state_match_by_name (dhcp_failover_state_t *, failover_option_t *) |
| const char * | dhcp_failover_reject_reason_print (int) |
| const char * | dhcp_failover_state_name_print (enum failover_statefailover_state) |
| const char * | dhcp_failover_message_name (unsigned) |
| const char * | dhcp_failover_option_name (unsigned) |
| failover_option_t * | dhcp_failover_option_printf (unsigned, char *, unsigned *, unsigned, const char *,...) __attribute__((__format__(__printf__ |
| failover_option_t failover_option_t * | dhcp_failover_make_option (unsigned, char *, unsigned *, unsigned,...) |
| isc_result_t | dhcp_failover_put_message (dhcp_failover_link_t *, omapi_object_t *, int, u_int32_t,...) |
| isc_result_t | dhcp_failover_send_connect (omapi_object_t *) |
| isc_result_t | dhcp_failover_send_connectack (omapi_object_t *, dhcp_failover_state_t *, int, const char *) |
| isc_result_t | dhcp_failover_send_disconnect (omapi_object_t *, int, const char *) |
| isc_result_t | dhcp_failover_send_bind_update (dhcp_failover_state_t *, struct lease *) |
| isc_result_t | dhcp_failover_send_bind_ack (dhcp_failover_state_t *, failover_message_t *, int, const char *) |
| isc_result_t | dhcp_failover_send_poolreq (dhcp_failover_state_t *) |
| isc_result_t | dhcp_failover_send_poolresp (dhcp_failover_state_t *, int) |
| isc_result_t | dhcp_failover_send_update_request (dhcp_failover_state_t *) |
| isc_result_t | dhcp_failover_send_update_request_all (dhcp_failover_state_t *) |
| isc_result_t | dhcp_failover_send_update_done (dhcp_failover_state_t *) |
| isc_result_t | dhcp_failover_process_bind_update (dhcp_failover_state_t *, failover_message_t *) |
| isc_result_t | dhcp_failover_process_bind_ack (dhcp_failover_state_t *, failover_message_t *) |
| isc_result_t | dhcp_failover_generate_update_queue (dhcp_failover_state_t *, int) |
| isc_result_t | dhcp_failover_process_update_request (dhcp_failover_state_t *, failover_message_t *) |
| isc_result_t | dhcp_failover_process_update_request_all (dhcp_failover_state_t *, failover_message_t *) |
| isc_result_t | dhcp_failover_process_update_done (dhcp_failover_state_t *, failover_message_t *) |
| void | ia_remove_all_lease (struct ia_xx *ia, const char *file, int line) |
| void | dhcp_failover_recover_done (void *) |
| void | failover_print (char *, unsigned *, unsigned, const char *) |
| void | update_partner (struct lease *) |
| int | load_balance_mine (struct packet *, dhcp_failover_state_t *) |
| int | peer_wants_lease (struct lease *) |
| binding_state_t | normal_binding_state_transition_check (struct lease *, dhcp_failover_state_t *, binding_state_t, u_int32_t) |
| binding_state_t | conflict_binding_state_transition_check (struct lease *, dhcp_failover_state_t *, binding_state_t, u_int32_t) |
| int | lease_mine_to_reallocate (struct lease *) |
| OMAPI_OBJECT_ALLOC_DECL (dhcp_failover_state, dhcp_failover_state_t, dhcp_type_failover_state) OMAPI_OBJECT_ALLOC_DECL(dhcp_failover_listener | |
| dhcp_type_failover_listener | OMAPI_OBJECT_ALLOC_DECL (dhcp_failover_link, dhcp_failover_link_t, dhcp_type_failover_link) const char *binding_state_print(enum failover_state) |
| HASH_FUNCTIONS_DECL (iasubopt, struct in6_addr *, struct iasubopt, iasubopt_hash_t) isc_result_t iasubopt_allocate(struct iasubopt **iasubopt | |
| isc_result_t | iasubopt_reference (struct iasubopt **iasubopt, struct iasubopt *src, const char *file, int line) |
| isc_result_t | iasubopt_dereference (struct iasubopt **iasubopt, const char *file, int line) |
| isc_result_t | ia_make_key (struct data_string *key, u_int32_t iaid, const char *duid, unsigned int duid_len, const char *file, int line) |
| isc_result_t | ia_allocate (struct ia_xx **ia, u_int32_t iaid, const char *duid, unsigned int duid_len, const char *file, int line) |
| isc_result_t | ia_reference (struct ia_xx **ia, struct ia_xx *src, const char *file, int line) |
| isc_result_t | ia_dereference (struct ia_xx **ia, const char *file, int line) |
| isc_result_t | ia_add_iasubopt (struct ia_xx *ia, struct iasubopt *iasubopt, const char *file, int line) |
| void | ia_remove_iasubopt (struct ia_xx *ia, struct iasubopt *iasubopt, const char *file, int line) |
| isc_boolean_t | ia_equal (const struct ia_xx *a, const struct ia_xx *b) |
| isc_result_t | ipv6_pool_allocate (struct ipv6_pool **pool, u_int16_t type, const struct in6_addr *start_addr, int bits, int units, const char *file, int line) |
| Create a new IPv6 lease pool structure. | |
| isc_result_t | ipv6_pool_reference (struct ipv6_pool **pool, struct ipv6_pool *src, const char *file, int line) |
| reference an IPv6 pool structure. | |
| isc_result_t | ipv6_pool_dereference (struct ipv6_pool **pool, const char *file, int line) |
| de-reference an IPv6 pool structure. | |
| isc_result_t | create_lease6 (struct ipv6_pool *pool, struct iasubopt **addr, unsigned int *attempts, const struct data_string *uid, time_t soft_lifetime_end_time) |
| isc_result_t | add_lease6 (struct ipv6_pool *pool, struct iasubopt *lease, time_t valid_lifetime_end_time) |
| isc_result_t | renew_lease6 (struct ipv6_pool *pool, struct iasubopt *lease) |
| Renew a lease in the pool. | |
| isc_result_t | expire_lease6 (struct iasubopt **leasep, struct ipv6_pool *pool, time_t now) |
| isc_result_t | release_lease6 (struct ipv6_pool *pool, struct iasubopt *lease) |
| isc_result_t | decline_lease6 (struct ipv6_pool *pool, struct iasubopt *lease) |
| isc_boolean_t | lease6_exists (const struct ipv6_pool *pool, const struct in6_addr *addr) |
| isc_boolean_t | lease6_usable (struct iasubopt *lease) |
| Check if address is available to a lease. | |
| isc_result_t | cleanup_lease6 (ia_hash_t *ia_table, struct ipv6_pool *pool, struct iasubopt *lease, struct ia_xx *ia) |
| Cleans up leases when reading from a lease file. | |
| isc_result_t | mark_lease_unavailble (struct ipv6_pool *pool, const struct in6_addr *addr) |
| isc_result_t | create_prefix6 (struct ipv6_pool *pool, struct iasubopt **pref, unsigned int *attempts, const struct data_string *uid, time_t soft_lifetime_end_time) |
| isc_boolean_t | prefix6_exists (const struct ipv6_pool *pool, const struct in6_addr *pref, u_int8_t plen) |
| isc_result_t | add_ipv6_pool (struct ipv6_pool *pool) |
| isc_result_t | find_ipv6_pool (struct ipv6_pool **pool, u_int16_t type, const struct in6_addr *addr) |
| isc_boolean_t | ipv6_in_pool (const struct in6_addr *addr, const struct ipv6_pool *pool) |
| isc_result_t | ipv6_pond_allocate (struct ipv6_pond **pond, const char *file, int line) |
| Create a new IPv6 pond structure. | |
| isc_result_t | ipv6_pond_reference (struct ipv6_pond **pond, struct ipv6_pond *src, const char *file, int line) |
| reference an IPv6 pond structure. | |
| isc_result_t | ipv6_pond_dereference (struct ipv6_pond **pond, const char *file, int line) |
| de-reference an IPv6 pond structure. | |
| isc_result_t | renew_leases (struct ia_xx *ia) |
| isc_result_t | release_leases (struct ia_xx *ia) |
| isc_result_t | decline_leases (struct ia_xx *ia) |
| void | schedule_lease_timeout (struct ipv6_pool *pool) |
| void | schedule_all_ipv6_lease_timeouts () |
| void | mark_hosts_unavailable (void) |
| void | mark_phosts_unavailable (void) |
| void | mark_interfaces_unavailable (void) |
| void | report_jumbo_ranges () |
| int | find_hosts6 (struct host_decl **host, struct packet *packet, const struct data_string *client_id, char *file, int line) |
| int | lc_not_empty (struct leasechain *lc) |
| void | lc_add_sorted_lease (struct leasechain *lc, struct lease *lp) |
| void | lc_unlink_lease (struct leasechain *lc, struct lease *lp) |
| struct lease * | lc_get_first_lease (struct leasechain *lc) |
| struct lease * | lc_get_next (struct leasechain *lc, struct lease *lp) |
| void | lc_init_growth (struct leasechain *lc, size_t growth) |
| void | lc_delete_all (struct leasechain *lc) |
| #define _PATH_DHCRELAY6_PID LOCALSTATEDIR"/run/dhcrelay6.pid" |
| #define BYTE_CODE_HASH_SIZE 254 /* Default would be ridiculous. */ |
| #define BYTE_NAME_HASH_SIZE 401 /* Default would be ridiculous. */ |
| #define CL_DEFAULT_REQUESTED_OPTIONS |
| #define compute_option_hash | ( | x | ) |
| #define CONFLICT_BITS |
| #define DEFAULT_ACK_DELAY_USECS 250000 /* 1/4 of a second */ |
| #define DEFAULT_DELAYED_ACK 0 /* default 0 disables delayed acking */ |
| #define DEFAULT_MIN_ACK_DELAY_USECS 10000 /* 1/100 second */ |
| #define EPHEMERAL_FLAGS |
| #define FIND_PERCENT | ( | count, | |
| percent ) |
| #define FIND_POND6_PERCENT | ( | count, | |
| percent ) |
| #define FTS_LAST FTS_BACKUP |
| #define INTERFACE_STREAMS (INTERFACE_DOWNSTREAM | INTERFACE_UPSTREAM) |
| #define LEASE_GET_FIRST | ( | LQ | ) |
| #define LEASE_GET_FIRSTP | ( | LQ | ) |
| #define LEASE_GET_NEXT | ( | LQ, | |
| LEASE ) |
| #define LEASE_GET_NEXTP | ( | LQ, | |
| LEASE ) |
| #define LEASE_INSERTP | ( | LQ, | |
| LEASE ) |
| #define LEASE_NOT_EMPTY | ( | LQ | ) |
| #define LEASE_NOT_EMPTYP | ( | LQ | ) |
| #define LEASE_REMOVEP | ( | LQ, | |
| LEASE ) |
| #define LEASE_STRUCT struct leasechain |
| #define LEASE_STRUCT_PTR struct leasechain * |
| #define MAX_ADDRESS_STRING_LEN (sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")) |
| #define ON_QUEUE (ON_UPDATE_QUEUE | ON_ACK_QUEUE) |
| #define OPTION_CLR | ( | mask, | |
| bit ) |
| #define OPTION_HASH_EXP 5 /* The exponent for that power of two. */ |
| #define OPTION_HASH_PTWO 32 /* Next power of two above option hash. */ |
| #define OPTION_ISCLR | ( | mask, | |
| bit ) |
| #define OPTION_ISSET | ( | mask, | |
| bit ) |
| #define OPTION_SET | ( | mask, | |
| bit ) |
| #define OPTION_SPACE | ( | x | ) |
| #define PERSISTENT_FLAGS (ON_ACK_QUEUE | ON_UPDATE_QUEUE) |
| #define POOL_DESTROYP | ( | LQ | ) |
| #define print_hex_1 | ( | len, | |
| data, | |||
| limit ) |
| #define print_hex_2 | ( | len, | |
| data, | |||
| limit ) |
| #define print_hex_3 | ( | len, | |
| data, | |||
| limit ) |
| #define QUAD_CODE_HASH_SIZE WORD_CODE_HASH_SIZE |
| #define QUAD_NAME_HASH_SIZE WORD_NAME_HASH_SIZE |
| #define SERVER_HASH_SIZE (2*(sizeof(server_options) / sizeof(struct option))) |
| #define SHARED_IMPLICIT 1 /* This network was synthesized. */ |
| #define skip_token | ( | a, | |
| b, | |||
| c ) |
| #define VIV_ISC_HASH_SIZE 3 /* An incredulously small table. */ |
| #define VIVSO_HASH_SIZE VIVCO_HASH_SIZE |
| #define VSIO_HASH_SIZE VIVCO_HASH_SIZE |
| typedef u_int8_t binding_state_t |
| typedef struct hash_table class_hash_t |
| typedef void(* ddns_action_t) (struct dhcp_ddns_cb *ddns_cb, isc_result_t result) |
| typedef struct dhcp_ddns_cb dhcp_ddns_cb_t |
| typedef struct hash_table dns_zone_hash_t |
| typedef struct hash_table group_hash_t |
| typedef struct hash_table host_hash_t |
| typedef struct hash_table ia_hash_t |
| typedef struct hash_table iasubopt_hash_t |
| typedef struct hash_table lease_id_hash_t |
| typedef struct hash_table lease_ip_hash_t |
| typedef struct hash_table option_code_hash_t |
| typedef struct hash_table option_name_hash_t |
| typedef void(* tvref_t) (void *, void *, const char *, int) |
| typedef struct hash_table universe_hash_t |
| enum dhcp_pending |
| enum dhcp_shutdown_state |
| enum dhcp_state |
| enum policy |
| void abandon_lease | ( | struct lease * | lease, |
| const char * | message ) |
| void add_enumeration | ( | struct enumeration * | enumeration | ) |
| int add_option | ( | struct option_state * | options, |
| unsigned int | option_num, | ||
| void * | data, | ||
| unsigned int | data_len ) |
| void add_route_default_gateway | ( | struct interface_info * | , |
| struct in_addr | ) |
| void add_route_direct | ( | struct interface_info * | , |
| struct in_addr | ) |
| void add_route_net | ( | struct interface_info * | , |
| struct in_addr | , | ||
| struct in_addr | ) |
| int addr_match | ( | struct iaddr * | addr, |
| struct iaddrmatch * | match ) |
| void also_save_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| struct option_cache * | oc ) |
| int append_option | ( | struct data_string * | dst, |
| struct universe * | universe, | ||
| struct option * | option, | ||
| struct data_string * | src ) |
| int append_option_buffer | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| struct buffer * | bp, | ||
| unsigned char * | buffer, | ||
| unsigned | length, | ||
| unsigned | code, | ||
| int | terminatep ) |
| void assemble_ethernet_header | ( | struct interface_info * | , |
| unsigned char * | , | ||
| unsigned * | , | ||
| struct hardware * | ) |
| void assemble_hw_header | ( | struct interface_info * | , |
| unsigned char * | , | ||
| unsigned * | , | ||
| struct hardware * | ) |
| void assemble_tr_header | ( | struct interface_info * | , |
| unsigned char * | , | ||
| unsigned * | , | ||
| struct hardware * | ) |
| void assemble_udp_ip_header | ( | struct interface_info * | , |
| unsigned char * | , | ||
| unsigned * | , | ||
| u_int32_t | , | ||
| u_int32_t | , | ||
| u_int32_t | , | ||
| unsigned char * | , | ||
| unsigned | ) |
| int bind_ds_value | ( | struct binding_scope ** | scope, |
| const char * | name, | ||
| struct data_string * | value ) |
| void bind_lease | ( | struct client_state * | client | ) |
Definition at line 2071 of file dhclient.c.
| int binding_scope_allocate | ( | struct binding_scope ** | ptr, |
| const char * | file, | ||
| int | line ) |
| int binding_scope_dereference | ( | struct binding_scope ** | ptr, |
| const char * | file, | ||
| int | line ) |
| isc_result_t binding_scope_get_value | ( | omapi_value_t ** | value, |
| struct binding_scope * | scope, | ||
| omapi_data_string_t * | name ) |
| int binding_scope_reference | ( | struct binding_scope ** | ptr, |
| struct binding_scope * | bp, | ||
| const char * | file, | ||
| int | line ) |
| isc_result_t binding_scope_set_value | ( | struct binding_scope * | scope, |
| int | createp, | ||
| omapi_data_string_t * | name, | ||
| omapi_typed_data_t * | value ) |
| isc_result_t binding_scope_stuff_values | ( | omapi_object_t * | c, |
| struct binding_scope * | scope ) |
| int binding_value_allocate | ( | struct binding_value ** | cptr, |
| const char * | file, | ||
| int | line ) |
| int binding_value_dereference | ( | struct binding_value ** | v, |
| const char * | file, | ||
| int | line ) |
| int binding_value_reference | ( | struct binding_value ** | ptr, |
| struct binding_value * | src, | ||
| const char * | file, | ||
| int | line ) |
| void bootp | ( | struct packet * | packet | ) |
Definition at line 2256 of file dhclient.c.
| char * buf_to_hex | ( | const unsigned char * | s, |
| unsigned | len, | ||
| const char * | file, | ||
| int | line ) |
| void build_server_oro | ( | struct data_string * | server_oro, |
| struct option_state * | options, | ||
| const char * | file, | ||
| int | line ) |
| int can_receive_unicast_unconfigured | ( | struct interface_info * | ) |
| int can_unicast_without_arp | ( | struct interface_info * | ) |
| void cancel_all_timeouts | ( | void | ) |
| void cancel_timeout | ( | void(* | )(void *), |
| void * | ) |
| int check_collection | ( | struct packet * | packet, |
| struct lease * | lease, | ||
| struct collection * | collection ) |
Definition at line 1548 of file dhclient.c.
| uint32_t check_v6only | ( | struct packet * | packet, |
| struct client_state * | client ) |
Definition at line 1703 of file dhclient.c.
| u_int32_t checksum | ( | unsigned char * | buf, |
| unsigned | nbytes, | ||
| u_int32_t | sum ) |
Definition at line 1556 of file dhclient.c.
| void cleanup | ( | void | ) |
| isc_result_t cleanup_lease6 | ( | ia_hash_t * | ia_table, |
| struct ipv6_pool * | pool, | ||
| struct iasubopt * | lease, | ||
| struct ia_xx * | ia ) |
Cleans up leases when reading from a lease file.
This function is only expected to be run when reading leases in from a file. It checks to see if a lease already exists for the new leases's address. We don't add expired leases to the structures when reading a lease file which limits what can happen. We have two variables the owners of the leases being the same or different and the new lease being active or non-active: Owners active same no remove old lease and its connections same yes nothing to do, other code will update the structures. diff no nothing to do diff yes this combination shouldn't happen, we should only have a single active lease per address at a time and that lease should move to non-active before any other lease can become active for that address. Currently we delete the previous lease and pass an error to the caller who should log an error.
When we remove a lease we remove it from the hash table and active heap (remember only active leases are in the structures at this time) for the pool, and from the IA's array. If, after we've removed the pointer from IA's array to the lease, the IA has no more pointers we remove it from the appropriate hash table as well.
| [in] | ia_table | = the hash table for the IA |
| [in] | pool | = the pool to update |
| [in] | lease | = the new lease we want to add |
| [in] | ia | = the new ia we are building |
| void client_dns_remove | ( | struct client_state * | client, |
| struct iaddr * | addr ) |
| isc_result_t client_dns_update | ( | struct client_state * | client, |
| dhcp_ddns_cb_t * | ddns_cb ) |
| void client_dns_update_timeout | ( | void * | cp | ) |
| void client_envadd | ( | struct client_state * | , |
| const char * | , | ||
| const char * | , | ||
| const char * | , | ||
| ... ) |
| void client_location_changed | ( | void | ) |
Definition at line 5302 of file dhclient.c.
| void client_option_envadd | ( | struct option_cache * | oc, |
| 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 ) |
Definition at line 4844 of file dhclient.c.
| int commit_leases | ( | void | ) |
Definition at line 2234 of file dhclient.c.
| int concat_dclists | ( | struct data_string * | result, |
| struct data_string * | list1, | ||
| struct data_string * | list2 ) |
Adds two Dc-formatted lists into a single Dc-formatted list.
Given two data_strings containing compressed lists, it constructs a third data_string containing a single compressed list:
If either list is empty, the result will be the equal to the compressed content of the non-empty list. If both lists are empty, the result will be an "empty" list: a 1 byte buffer containing 0x00.
It relies on two functions to decompress and compress:
| result | data_string which will contain the combined list in Dc format |
| list1 | data_string containing first Dc formatted list |
| list2 | data_string containing second Dc formatted list |
Definition at line 250 of file confpars.c.
| binding_state_t conflict_binding_state_transition_check | ( | struct lease * | , |
| dhcp_failover_state_t * | , | ||
| binding_state_t | , | ||
| u_int32_t | ) |
| unsigned cons_agent_information_options | ( | struct option_state * | cfg_options, |
| struct dhcp_packet * | outpacket, | ||
| unsigned | agentix, | ||
| unsigned | length ) |
Definition at line 5528 of file dhclient.c.
| int cons_options | ( | struct packet * | inpacket, |
| struct dhcp_packet * | outpacket, | ||
| struct lease * | lease, | ||
| struct client_state * | client_state, | ||
| int | mms, | ||
| struct option_state * | in_options, | ||
| struct option_state * | cfg_options, | ||
| struct binding_scope ** | scope, | ||
| int | overload_avail, | ||
| int | terminate, | ||
| int | bootpp, | ||
| struct data_string * | prl, | ||
| const char * | vuname ) |
| void convert_statement | ( | struct parse * | ) |
| void copy_server_duid | ( | struct data_string * | ds, |
| const char * | file, | ||
| int | line ) |
| struct binding * create_binding | ( | struct binding_scope ** | scope, |
| const char * | name ) |
| isc_result_t create_lease6 | ( | struct ipv6_pool * | pool, |
| struct iasubopt ** | addr, | ||
| unsigned int * | attempts, | ||
| const struct data_string * | uid, | ||
| time_t | soft_lifetime_end_time ) |
| isc_result_t create_prefix6 | ( | struct ipv6_pool * | pool, |
| struct iasubopt ** | pref, | ||
| unsigned int * | attempts, | ||
| const struct data_string * | uid, | ||
| time_t | soft_lifetime_end_time ) |
| void data_string_copy | ( | struct data_string * | dest, |
| const struct data_string * | src, | ||
| const char * | file, | ||
| int | line ) |
| void data_string_forget | ( | struct data_string * | data, |
| const char * | file, | ||
| int | line ) |
| int data_string_new | ( | struct data_string * | new_string, |
| const char * | src, | ||
| unsigned int | len, | ||
| const char * | file, | ||
| int | line ) |
Constructs a null-terminated data_string from a char* and length.
Allocates a data_string and copies into it the given length of bytes from the given source, adding a terminating null if not present in the source at length-1.
| new_string | pointer to the data_string to construct. Cannot be NULL. Note that its contents will be overwritten. Passing in the address of an allocated data_string will result in memory leaks. |
| src | data to be copied. Cannot be NULL. |
| len | length of the data to copied |
| int data_string_sprintfa | ( | struct data_string * | ds, |
| const char * | fmt, | ||
| ... ) |
| int data_string_terminate | ( | struct data_string * | str, |
| const char * | file, | ||
| int | line ) |
| void data_string_truncate | ( | struct data_string * | dp, |
| int | len ) |
| int data_subexpression_length | ( | int * | , |
| struct expression * | ) |
| int db_printable | ( | const unsigned char * | ) |
| int db_printable_len | ( | const unsigned char * | , |
| unsigned | ) |
| void db_startup | ( | int | testp | ) |
Definition at line 2251 of file dhclient.c.
| void ddns_cancel | ( | dhcp_ddns_cb_t * | ddns_cb, |
| const char * | file, | ||
| int | line ) |
| dhcp_ddns_cb_t * ddns_cb_alloc | ( | const char * | file, |
| int | line ) |
| void ddns_cb_forget_zone | ( | dhcp_ddns_cb_t * | ddns_cb | ) |
| void ddns_cb_free | ( | dhcp_ddns_cb_t * | ddns_cb, |
| const char * | file, | ||
| int | line ) |
| isc_result_t ddns_modify_fwd | ( | dhcp_ddns_cb_t * | ddns_cb, |
| const char * | file, | ||
| int | line ) |
| isc_result_t ddns_modify_ptr | ( | dhcp_ddns_cb_t * | ddns_cb, |
| const char * | file, | ||
| int | line ) |
| isc_result_t ddns_removals | ( | struct lease * | , |
| struct iasubopt * | , | ||
| struct dhcp_ddns_cb * | , | ||
| isc_boolean_t | ) |
| isc_result_t ddns_remove_fwd | ( | struct data_string * | , |
| struct iaddr | , | ||
| struct data_string * | ) |
| char * ddns_state_name | ( | int | state | ) |
| isc_result_t ddns_update_fwd | ( | struct data_string * | , |
| struct iaddr | , | ||
| struct data_string * | , | ||
| unsigned long | , | ||
| unsigned | , | ||
| unsigned | ) |
| int ddns_updates | ( | struct packet * | , |
| struct lease * | , | ||
| struct lease * | , | ||
| struct iasubopt * | , | ||
| struct iasubopt * | , | ||
| struct option_state * | ) |
| ssize_t decode_ethernet_header | ( | struct interface_info * | , |
| unsigned char * | , | ||
| unsigned | , | ||
| struct hardware * | ) |
| ssize_t decode_hw_header | ( | struct interface_info * | , |
| unsigned char * | , | ||
| unsigned | , | ||
| struct hardware * | ) |
| ssize_t decode_tr_header | ( | struct interface_info * | , |
| unsigned char * | , | ||
| unsigned | , | ||
| struct hardware * | ) |
| ssize_t decode_udp_ip_header | ( | struct interface_info * | , |
| unsigned char * | , | ||
| unsigned | , | ||
| struct sockaddr_in * | , | ||
| unsigned | , | ||
| unsigned * | , | ||
| int | ) |
| void delete_fqdn6_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| int | code ) |
| isc_result_t delete_group | ( | struct group_object * | group, |
| int | writep ) |
| void delete_hashed_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| int | code ) |
| void delete_linked_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| int | code ) |
| void delete_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| int | code ) |
| void destroy_client_lease | ( | struct client_lease * | lease | ) |
Definition at line 4181 of file dhclient.c.
| void detach | ( | void | ) |
Definition at line 5233 of file dhclient.c.
| void dhc6_lease_destroy | ( | struct dhc6_lease ** | src, |
| const char * | file, | ||
| int | line ) |
| isc_result_t dhcid_fromlease | ( | struct data_string * | , |
| struct data_string * | ) |
| void dhcid_tolease | ( | struct data_string * | , |
| struct data_string * | ) |
| int dhclient_interface_discovery_hook | ( | struct interface_info * | tmp | ) |
Definition at line 5423 of file dhclient.c.
| int dhclient_interface_shutdown_hook | ( | struct interface_info * | interface | ) |
Definition at line 5416 of file dhclient.c.
| isc_result_t dhclient_interface_startup_hook | ( | struct interface_info * | interface | ) |
Definition at line 5466 of file dhclient.c.
| void dhclient_schedule_updates | ( | struct client_state * | client, |
| struct iaddr * | addr, | ||
| int | offset ) |
| void dhcp | ( | struct packet * | packet | ) |
Definition at line 2289 of file dhclient.c.
| void dhcp4o6_start | ( | void | ) |
| u_int16_t dhcp_check_relayport | ( | struct packet * | packet | ) |
| isc_result_t dhcp_class_create | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_class_destroy | ( | omapi_object_t * | h, |
| const char * | file, | ||
| int | line ) |
| isc_result_t dhcp_class_get_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_value_t ** | value ) |
| isc_result_t dhcp_class_lookup | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id, | ||
| omapi_object_t * | ref ) |
| isc_result_t dhcp_class_remove | ( | omapi_object_t * | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_class_set_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_typed_data_t * | value ) |
| isc_result_t dhcp_class_signal_handler | ( | omapi_object_t * | h, |
| const char * | name, | ||
| va_list | ap ) |
| isc_result_t dhcp_class_stuff_values | ( | omapi_object_t * | c, |
| omapi_object_t * | id, | ||
| omapi_object_t * | h ) |
| void dhcp_common_objects_setup | ( | void | ) |
| isc_result_t dhcp_control_create | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_control_destroy | ( | omapi_object_t * | h, |
| const char * | file, | ||
| int | line ) |
| 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_control_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_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_signal_handler | ( | omapi_object_t * | h, |
| const char * | name, | ||
| va_list | ap ) |
| isc_result_t dhcp_control_stuff_values | ( | omapi_object_t * | c, |
| omapi_object_t * | id, | ||
| omapi_object_t * | h ) |
| void dhcp_failover_ack_queue_remove | ( | dhcp_failover_state_t * | , |
| struct lease * | ) |
| void dhcp_failover_auto_partner_down | ( | void * | vs | ) |
| isc_result_t dhcp_failover_generate_update_queue | ( | dhcp_failover_state_t * | , |
| int | ) |
| void dhcp_failover_keepalive | ( | void * | ) |
| isc_result_t dhcp_failover_link_destroy | ( | omapi_object_t * | , |
| const char * | , | ||
| int | ) |
| isc_result_t dhcp_failover_link_get_value | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_data_string_t * | , | ||
| omapi_value_t ** | ) |
| isc_result_t dhcp_failover_link_initiate | ( | omapi_object_t * | ) |
| isc_result_t dhcp_failover_link_set_value | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_data_string_t * | , | ||
| omapi_typed_data_t * | ) |
| isc_result_t dhcp_failover_link_signal | ( | omapi_object_t * | , |
| const char * | , | ||
| va_list | ) |
| void dhcp_failover_link_startup_timeout | ( | void * | ) |
| isc_result_t dhcp_failover_link_stuff_values | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_object_t * | ) |
| isc_result_t dhcp_failover_listen | ( | omapi_object_t * | ) |
| isc_result_t dhcp_failover_listener_destroy | ( | omapi_object_t * | , |
| const char * | , | ||
| int | ) |
| isc_result_t dhcp_failover_listener_get_value | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_data_string_t * | , | ||
| omapi_value_t ** | ) |
| void dhcp_failover_listener_restart | ( | void * | ) |
| isc_result_t dhcp_failover_listener_set_value | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_data_string_t * | , | ||
| omapi_typed_data_t * | ) |
| isc_result_t dhcp_failover_listener_signal | ( | omapi_object_t * | , |
| const char * | , | ||
| va_list | ) |
| isc_result_t dhcp_failover_listener_stuff | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_object_t * | ) |
| failover_option_t failover_option_t * dhcp_failover_make_option | ( | unsigned | , |
| char * | , | ||
| unsigned * | , | ||
| unsigned | , | ||
| ... ) |
| const char * dhcp_failover_message_name | ( | unsigned | ) |
| const char * dhcp_failover_option_name | ( | unsigned | ) |
| failover_option_t * dhcp_failover_option_printf | ( | unsigned | , |
| char * | , | ||
| unsigned * | , | ||
| unsigned | , | ||
| const char * | , | ||
| ... ) |
| isc_result_t dhcp_failover_peer_state_changed | ( | dhcp_failover_state_t * | , |
| failover_message_t * | ) |
| void dhcp_failover_pool_check | ( | struct pool * | ) |
| void dhcp_failover_pool_rebalance | ( | void * | ) |
| isc_result_t dhcp_failover_process_bind_ack | ( | dhcp_failover_state_t * | , |
| failover_message_t * | ) |
| isc_result_t dhcp_failover_process_bind_update | ( | dhcp_failover_state_t * | , |
| failover_message_t * | ) |
| isc_result_t dhcp_failover_process_update_done | ( | dhcp_failover_state_t * | , |
| failover_message_t * | ) |
| isc_result_t dhcp_failover_process_update_request | ( | dhcp_failover_state_t * | , |
| failover_message_t * | ) |
| isc_result_t dhcp_failover_process_update_request_all | ( | dhcp_failover_state_t * | , |
| failover_message_t * | ) |
| isc_result_t dhcp_failover_put_message | ( | dhcp_failover_link_t * | , |
| omapi_object_t * | , | ||
| int | , | ||
| u_int32_t | , | ||
| ... ) |
| int dhcp_failover_queue_ack | ( | dhcp_failover_state_t * | , |
| failover_message_t * | msg ) |
| void dhcp_failover_reconnect | ( | void * | ) |
| void dhcp_failover_recover_done | ( | void * | ) |
| isc_result_t dhcp_failover_register | ( | omapi_object_t * | ) |
| const char * dhcp_failover_reject_reason_print | ( | int | ) |
| void dhcp_failover_rescind_updates | ( | dhcp_failover_state_t * | ) |
| void dhcp_failover_sanity_check | ( | void | ) |
| int dhcp_failover_send_acks | ( | dhcp_failover_state_t * | ) |
| isc_result_t dhcp_failover_send_bind_ack | ( | dhcp_failover_state_t * | , |
| failover_message_t * | , | ||
| int | , | ||
| const char * | ) |
| isc_result_t dhcp_failover_send_bind_update | ( | dhcp_failover_state_t * | , |
| struct lease * | ) |
| isc_result_t dhcp_failover_send_connect | ( | omapi_object_t * | ) |
| isc_result_t dhcp_failover_send_connectack | ( | omapi_object_t * | , |
| dhcp_failover_state_t * | , | ||
| int | , | ||
| const char * | ) |
| void dhcp_failover_send_contact | ( | void * | ) |
| isc_result_t dhcp_failover_send_disconnect | ( | omapi_object_t * | , |
| int | , | ||
| const char * | ) |
| isc_result_t dhcp_failover_send_poolreq | ( | dhcp_failover_state_t * | ) |
| isc_result_t dhcp_failover_send_poolresp | ( | dhcp_failover_state_t * | , |
| int | ) |
| isc_result_t dhcp_failover_send_state | ( | dhcp_failover_state_t * | ) |
| isc_result_t dhcp_failover_send_update_done | ( | dhcp_failover_state_t * | ) |
| isc_result_t dhcp_failover_send_update_request | ( | dhcp_failover_state_t * | ) |
| isc_result_t dhcp_failover_send_update_request_all | ( | dhcp_failover_state_t * | ) |
| isc_result_t dhcp_failover_send_updates | ( | dhcp_failover_state_t * | ) |
| isc_result_t dhcp_failover_set_service_state | ( | dhcp_failover_state_t * | state | ) |
| isc_result_t dhcp_failover_set_state | ( | dhcp_failover_state_t * | , |
| enum | failover_state ) |
| void dhcp_failover_startup | ( | void | ) |
| void dhcp_failover_startup_timeout | ( | void * | ) |
| isc_result_t dhcp_failover_state_create | ( | omapi_object_t ** | , |
| omapi_object_t * | ) |
| isc_result_t dhcp_failover_state_destroy | ( | omapi_object_t * | , |
| const char * | , | ||
| int | ) |
| isc_result_t dhcp_failover_state_get_value | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_data_string_t * | , | ||
| omapi_value_t ** | ) |
| isc_result_t dhcp_failover_state_lookup | ( | omapi_object_t ** | , |
| omapi_object_t * | , | ||
| omapi_object_t * | ) |
| int dhcp_failover_state_match | ( | dhcp_failover_state_t * | , |
| u_int8_t * | , | ||
| unsigned | ) |
| int dhcp_failover_state_match_by_name | ( | dhcp_failover_state_t * | , |
| failover_option_t * | ) |
| const char * dhcp_failover_state_name_print | ( | enum | failover_state | ) |
| int dhcp_failover_state_pool_check | ( | dhcp_failover_state_t * | ) |
| isc_result_t dhcp_failover_state_remove | ( | omapi_object_t * | , |
| omapi_object_t * | ) |
| isc_result_t dhcp_failover_state_set_value | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_data_string_t * | , | ||
| omapi_typed_data_t * | ) |
| isc_result_t dhcp_failover_state_signal | ( | omapi_object_t * | , |
| const char * | , | ||
| va_list | ) |
| isc_result_t dhcp_failover_state_stuff | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_object_t * | ) |
| isc_result_t dhcp_failover_state_transition | ( | dhcp_failover_state_t * | , |
| const char * | ) |
| void dhcp_failover_timeout | ( | void * | ) |
| void dhcp_failover_toack_queue_timeout | ( | void * | ) |
| int dhcp_failover_write_all_states | ( | void | ) |
| isc_result_t dhcp_group_create | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_group_destroy | ( | omapi_object_t * | h, |
| const char * | file, | ||
| int | line ) |
| 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_lookup | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id, | ||
| omapi_object_t * | ref ) |
| isc_result_t dhcp_group_remove | ( | omapi_object_t * | lp, |
| omapi_object_t * | id ) |
| 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_group_signal_handler | ( | omapi_object_t * | h, |
| const char * | name, | ||
| va_list | ap ) |
| isc_result_t dhcp_group_stuff_values | ( | omapi_object_t * | c, |
| omapi_object_t * | id, | ||
| omapi_object_t * | h ) |
| isc_result_t dhcp_host_create | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_host_destroy | ( | omapi_object_t * | h, |
| const char * | file, | ||
| int | line ) |
| isc_result_t dhcp_host_get_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_value_t ** | value ) |
| isc_result_t dhcp_host_lookup | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id, | ||
| omapi_object_t * | ref ) |
| isc_result_t dhcp_host_remove | ( | omapi_object_t * | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_host_set_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_typed_data_t * | value ) |
| isc_result_t dhcp_host_signal_handler | ( | omapi_object_t * | h, |
| const char * | name, | ||
| va_list | ap ) |
| isc_result_t dhcp_host_stuff_values | ( | omapi_object_t * | c, |
| omapi_object_t * | id, | ||
| omapi_object_t * | h ) |
| isc_result_t dhcp_interface_create | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id ) |
Definition at line 1453 of file discover.c.
| isc_result_t dhcp_interface_destroy | ( | omapi_object_t * | h, |
| const char * | file, | ||
| int | line ) |
Definition at line 1270 of file discover.c.
| isc_result_t dhcp_interface_get_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_value_t ** | value ) |
Definition at line 1262 of file discover.c.
| isc_result_t dhcp_interface_lookup | ( | omapi_object_t ** | ip, |
| omapi_object_t * | id, | ||
| omapi_object_t * | ref ) |
Definition at line 1369 of file discover.c.
| isc_result_t dhcp_interface_remove | ( | omapi_object_t * | lp, |
| omapi_object_t * | id ) |
Definition at line 1469 of file discover.c.
| isc_result_t dhcp_interface_set_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_typed_data_t * | value ) |
Definition at line 1225 of file discover.c.
| isc_result_t dhcp_interface_signal_handler | ( | omapi_object_t * | h, |
| const char * | name, | ||
| va_list | ap ) |
Definition at line 1299 of file discover.c.
| isc_result_t dhcp_interface_stuff_values | ( | omapi_object_t * | c, |
| omapi_object_t * | id, | ||
| omapi_object_t * | h ) |
Definition at line 1335 of file discover.c.
| isc_result_t dhcp_io_shutdown | ( | omapi_object_t * | obj, |
| void * | foo ) |
| isc_result_t dhcp_lease_create | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_lease_destroy | ( | omapi_object_t * | h, |
| const char * | file, | ||
| int | line ) |
| isc_result_t dhcp_lease_free | ( | omapi_object_t * | , |
| const char * | , | ||
| int | ) |
| isc_result_t dhcp_lease_get | ( | omapi_object_t ** | , |
| const char * | , | ||
| int | ) |
| isc_result_t dhcp_lease_get_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_value_t ** | value ) |
| isc_result_t dhcp_lease_lookup | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id, | ||
| omapi_object_t * | ref ) |
| isc_result_t dhcp_lease_remove | ( | omapi_object_t * | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_lease_set_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_typed_data_t * | value ) |
| isc_result_t dhcp_lease_signal_handler | ( | omapi_object_t * | h, |
| const char * | name, | ||
| va_list | ap ) |
| isc_result_t dhcp_lease_stuff_values | ( | omapi_object_t * | c, |
| omapi_object_t * | id, | ||
| omapi_object_t * | h ) |
Definition at line 5182 of file dhclient.c.
| isc_result_t dhcp_pool_create | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_pool_destroy | ( | omapi_object_t * | h, |
| const char * | file, | ||
| int | line ) |
| isc_result_t dhcp_pool_get_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_value_t ** | value ) |
| isc_result_t dhcp_pool_lookup | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id, | ||
| omapi_object_t * | ref ) |
| isc_result_t dhcp_pool_remove | ( | omapi_object_t * | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_pool_set_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_typed_data_t * | value ) |
| isc_result_t dhcp_pool_signal_handler | ( | omapi_object_t * | h, |
| const char * | name, | ||
| va_list | ap ) |
| isc_result_t dhcp_pool_stuff_values | ( | omapi_object_t * | c, |
| omapi_object_t * | id, | ||
| omapi_object_t * | h ) |
| isc_result_t dhcp_set_control_state | ( | control_object_state_t | oldstate, |
| control_object_state_t | newstate ) |
Definition at line 5616 of file dhclient.c.
| isc_result_t dhcp_shared_network_create | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_shared_network_destroy | ( | omapi_object_t * | h, |
| const char * | file, | ||
| int | line ) |
| 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_shared_network_lookup | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id, | ||
| omapi_object_t * | ref ) |
| isc_result_t dhcp_shared_network_remove | ( | omapi_object_t * | lp, |
| omapi_object_t * | id ) |
| 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_shared_network_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_subclass_create | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_subclass_destroy | ( | omapi_object_t * | , |
| const char * | , | ||
| int | ) |
| isc_result_t dhcp_subclass_get_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_value_t ** | value ) |
| isc_result_t dhcp_subclass_lookup | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id, | ||
| omapi_object_t * | ref ) |
| isc_result_t dhcp_subclass_remove | ( | omapi_object_t * | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_subclass_set_value | ( | omapi_object_t * | h, |
| omapi_object_t * | id, | ||
| omapi_data_string_t * | name, | ||
| omapi_typed_data_t * | value ) |
| isc_result_t dhcp_subclass_signal_handler | ( | omapi_object_t * | h, |
| const char * | name, | ||
| va_list | ap ) |
| isc_result_t dhcp_subclass_stuff_values | ( | omapi_object_t * | c, |
| omapi_object_t * | id, | ||
| omapi_object_t * | h ) |
| isc_result_t dhcp_subnet_create | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id ) |
| isc_result_t dhcp_subnet_destroy | ( | omapi_object_t * | h, |
| const char * | file, | ||
| int | line ) |
| 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_subnet_lookup | ( | omapi_object_t ** | lp, |
| omapi_object_t * | id, | ||
| omapi_object_t * | ref ) |
| isc_result_t dhcp_subnet_remove | ( | omapi_object_t * | lp, |
| omapi_object_t * | id ) |
| 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_subnet_signal_handler | ( | omapi_object_t * | h, |
| const char * | name, | ||
| va_list | ap ) |
| isc_result_t dhcp_subnet_stuff_values | ( | omapi_object_t * | c, |
| omapi_object_t * | id, | ||
| omapi_object_t * | h ) |
| void dhcpack | ( | struct packet * | packet | ) |
Definition at line 1888 of file dhclient.c.
| int dhcpd_interface_setup_hook | ( | struct interface_info * | ip, |
| struct iaddr * | ia ) |
Definition at line 128 of file dhcpleasequery.c.
| void dhcpnak | ( | struct packet * | packet | ) |
Definition at line 2848 of file dhclient.c.
| void dhcpoffer | ( | struct packet * | packet | ) |
Definition at line 2576 of file dhclient.c.
| void dhcpv4_client_assignments | ( | void | ) |
Definition at line 6012 of file dhclient.c.
| void dhcpv6 | ( | struct packet * | ) |
| void dhcpv6_client_assignments | ( | void | ) |
| void dhcpv6_leasequery | ( | struct data_string * | , |
| struct packet * | ) |
| void discover_interfaces | ( | int | state | ) |
Definition at line 571 of file discover.c.
| void dispatch | ( | void | ) |
Definition at line 109 of file dispatch.c.
| int dns_host_entry_allocate | ( | struct dns_host_entry ** | ptr, |
| const char * | hostname, | ||
| const char * | file, | ||
| int | line ) |
| int dns_host_entry_dereference | ( | struct dns_host_entry ** | ptr, |
| const char * | file, | ||
| int | line ) |
| int dns_host_entry_reference | ( | struct dns_host_entry ** | ptr, |
| struct dns_host_entry * | bp, | ||
| const char * | file, | ||
| int | line ) |
| isc_result_t dns_zone_lookup | ( | struct dns_zone ** | zone, |
| const char * | name ) |
| void do_packet | ( | struct interface_info * | interface, |
| struct dhcp_packet * | packet, | ||
| unsigned | len, | ||
| unsigned int | from_port, | ||
| struct iaddr | from, | ||
| struct hardware * | hfrom ) |
| void do_packet6 | ( | struct interface_info * | , |
| const char * | , | ||
| int | , | ||
| int | , | ||
| const struct iaddr * | , | ||
| isc_boolean_t | ) |
| void do_release | ( | struct client_state * | client | ) |
Definition at line 5337 of file dhclient.c.
| void dump_packet | ( | struct packet * | ) |
| void dump_packet_option | ( | struct option_cache * | , |
| struct packet * | , | ||
| struct lease * | , | ||
| struct client_state * | , | ||
| struct option_state * | , | ||
| struct option_state * | , | ||
| struct binding_scope ** | , | ||
| struct universe * | , | ||
| void * | ) |
| void dump_raw | ( | const unsigned char * | , |
| unsigned | ) |
| void echo_client_id | ( | struct packet * | packet, |
| struct lease * | lease, | ||
| struct option_state * | in_options, | ||
| struct option_state * | out_options ) |
Adds a dhcp-client-id option to a set of options Given a set of input options, it searches for echo-client-id. If it is defined and enabled, the given packet is searched for dhcp-client-id. If the option is found it is replicated into the given set of output options. This allows us to provide compliance with RFC 6842. It is called when we ack or nak a lease. In the latter case we may or may not have created the requisite scope to lookup echo-client-id.
Note the flag packet.sv_echo_client_id is set to reflect the configuration option. This bypases inaccessiblity of server_universe in cons_options() which must amend the PRL (when not empty) if echoing is enabled.
| packet | inbound packet received from the client |
| lease | lease associated with this client (if one) |
| in_options | options in which to search for echo-client-id |
| out_options | options to which to save the client-id |
| int enter_dns_host | ( | struct dns_host_entry ** | dh, |
| const char * | name ) |
| isc_result_t enter_failover_peer | ( | dhcp_failover_state_t * | ) |
| void enter_shared_network | ( | struct shared_network * | share | ) |
| void eval_network_statements | ( | struct option_state ** | network_options, |
| struct packet * | packet, | ||
| struct group * | network_group ) |
Builds option set from statements at the global and network scope.
Set up an option state list based on the global and network scopes. These are primarily used by NAK logic to locate dhcp-server-id and echo-client-id.
We don't go through all possible options - in particualr we skip the hosts and we don't include the lease to avoid making changes to it. This means that using these, we won't get the correct server id if the admin puts them on hosts or builds the server id with information from the lease.
As this is a fallback function (used to handle NAKs or sort out server id mismatch in failover) and requires configuration by the admin, it should be okay.
| network_options | option_state to which options will be added. If it refers to NULL, it will be allocated. Caller is responsible to delete it. |
| packet | inbound packet |
| network_group | scope group to use if packet->shared_network is null. |
| int evaluate_boolean_expression | ( | int * | 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 expression * | expr ) |
| int evaluate_boolean_expression_result | ( | int * | ignorep, |
| 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 expression * | expr ) |
| int evaluate_boolean_option_cache | ( | int * | ignorep, |
| 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 option_cache * | oc, | ||
| const char * | file, | ||
| int | line ) |
| int evaluate_data_expression | ( | 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 expression * | expr, | ||
| const char * | file, | ||
| int | line ) |
| int evaluate_expression | ( | struct binding_value ** | 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 expression * | expr, | ||
| const char * | file, | ||
| int | line ) |
| int evaluate_numeric_expression | ( | unsigned long * | 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 expression * | expr ) |
| int evaluate_option_cache | ( | 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 option_cache * | oc, | ||
| const char * | file, | ||
| int | line ) |
| int executable_statement_allocate | ( | struct executable_statement ** | ptr, |
| const char * | file, | ||
| int | line ) |
| int executable_statement_dereference | ( | struct executable_statement ** | ptr, |
| const char * | file, | ||
| int | line ) |
| int executable_statement_foreach | ( | struct executable_statement * | stmt, |
| int(* | callback )(struct executable_statement *, void *, int), | ||
| void * | vp, | ||
| int | condp ) |
| int executable_statement_reference | ( | struct executable_statement ** | ptr, |
| struct executable_statement * | bp, | ||
| const char * | file, | ||
| int | line ) |
| int execute_statements | ( | struct binding_value ** | result, |
| struct packet * | packet, | ||
| struct lease * | lease, | ||
| struct client_state * | client_state, | ||
| struct option_state * | in_options, | ||
| struct option_state * | out_options, | ||
| struct binding_scope ** | scope, | ||
| struct executable_statement * | statements, | ||
| struct on_star * | on_star ) |
| void execute_statements_in_scope | ( | struct binding_value ** | result, |
| struct packet * | packet, | ||
| struct lease * | lease, | ||
| struct client_state * | client_state, | ||
| struct option_state * | in_options, | ||
| struct option_state * | out_options, | ||
| struct binding_scope ** | scope, | ||
| struct group * | group, | ||
| struct group * | limiting_group, | ||
| struct on_star * | on_star ) |
| int expr_valid_for_context | ( | struct expression * | , |
| enum | expression_context ) |
| int expression_allocate | ( | struct expression ** | cptr, |
| const char * | file, | ||
| int | line ) |
| enum expression_context expression_context | ( | struct expression * | expr | ) |
| void expression_dereference | ( | struct expression ** | eptr, |
| const char * | file, | ||
| int | line ) |
| int expression_reference | ( | struct expression ** | ptr, |
| struct expression * | src, | ||
| const char * | file, | ||
| int | line ) |
| void failover_print | ( | char * | , |
| unsigned * | , | ||
| unsigned | , | ||
| const char * | ) |
| isc_result_t fallback_discard | ( | omapi_object_t * | ) |
| struct binding * find_binding | ( | struct binding_scope * | scope, |
| const char * | name ) |
| int find_bound_string | ( | struct data_string * | value, |
| struct binding_scope * | scope, | ||
| const char * | name ) |
| isc_result_t find_cached_zone | ( | dhcp_ddns_cb_t * | , |
| int | ) |
Definition at line 1542 of file dhclient.c.
| struct enumeration * find_enumeration | ( | const char * | name, |
| int | length ) |
| struct enumeration_value * find_enumeration_value | ( | const char * | name, |
| int | length, | ||
| unsigned * | widthp, | ||
| const char * | value ) |
| isc_result_t find_failover_peer | ( | dhcp_failover_state_t ** | , |
| const char * | , | ||
| const char * | , | ||
| int | ) |
| int find_grouped_subnet | ( | struct subnet ** | sp, |
| struct shared_network * | share, | ||
| struct iaddr | addr, | ||
| const char * | file, | ||
| int | line ) |
| int find_host_for_network | ( | struct subnet ** | sp, |
| struct host_decl ** | host, | ||
| struct iaddr * | addr, | ||
| struct shared_network * | share ) |
| int find_hosts6 | ( | struct host_decl ** | host, |
| struct packet * | packet, | ||
| const struct data_string * | client_id, | ||
| char * | file, | ||
| int | line ) |
| int find_hosts_by_option | ( | struct host_decl ** | hp, |
| struct packet * | packet, | ||
| struct option_state * | opt_state, | ||
| const char * | file, | ||
| int | line ) |
| isc_result_t find_ipv6_pool | ( | struct ipv6_pool ** | pool, |
| u_int16_t | type, | ||
| const struct in6_addr * | addr ) |
| int find_matching_case | ( | struct executable_statement ** | ep, |
| struct packet * | packet, | ||
| struct lease * | lease, | ||
| struct client_state * | client_state, | ||
| struct option_state * | in_options, | ||
| struct option_state * | out_options, | ||
| struct binding_scope ** | scope, | ||
| struct expression * | expr, | ||
| struct executable_statement * | stmt ) |
Definition at line 1567 of file dhclient.c.
| void finish | ( | char | ret | ) |
Definition at line 5222 of file dhclient.c.
| void finish_v6only | ( | void * | cpp | ) |
Definition at line 1755 of file dhclient.c.
| struct name_server * first_name_server | ( | void | ) |
| void forget_zone | ( | struct dns_zone ** | ) |
| isc_result_t form_duid | ( | struct data_string * | duid, |
| const char * | file, | ||
| int | line ) |
Definition at line 4381 of file dhclient.c.
| int format_has_text | ( | const char * | ) |
| int format_min_length | ( | const char * | , |
| struct option_cache * | ) |
| int fqdn6_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 fqdn6_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 *) ) |
| int fqdn6_universe_decode | ( | struct option_state * | options, |
| const unsigned char * | buffer, | ||
| unsigned | length, | ||
| struct universe * | u ) |
| int fqdn_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 fqdn_universe_decode | ( | struct option_state * | options, |
| const unsigned char * | buffer, | ||
| unsigned | length, | ||
| struct universe * | u ) |
| void free_binding_value | ( | struct binding_value * | bv, |
| const char * | file, | ||
| int | line ) |
| int free_bindings | ( | struct binding_scope * | scope, |
| const char * | file, | ||
| int | line ) |
| void free_client_lease | ( | struct client_lease * | lease, |
| const char * | file, | ||
| int | line ) |
| void free_dhcp_packet | ( | struct dhcp_packet * | ptr, |
| const char * | file, | ||
| int | line ) |
| void free_domain_search_list | ( | struct domain_search_list * | ptr, |
| const char * | file, | ||
| int | line ) |
| void free_expression | ( | struct expression * | expr, |
| const char * | file, | ||
| int | line ) |
| isc_result_t free_iaddrcidrnetlist | ( | struct iaddrcidrnetlist ** | result | ) |
| void free_lease_state | ( | struct lease_state * | ptr, |
| const char * | file, | ||
| int | line ) |
| void free_name_server | ( | struct name_server * | ptr, |
| const char * | file, | ||
| int | line ) |
| isc_result_t generate_new_server_duid | ( | void | ) |
| isc_result_t get_client_id | ( | struct packet * | , |
| struct data_string * | ) |
| u_int16_t get_conflict_mask | ( | struct option_state * | input_options | ) |
| int get_dhcid | ( | dhcp_ddns_cb_t * | , |
| int | , | ||
| const u_int8_t * | , | ||
| unsigned | ) |
| void get_hw_addr | ( | struct interface_info * | info | ) |
| isc_result_t get_hw_addr2 | ( | struct interface_info * | info | ) |
| int get_option | ( | struct data_string * | result, |
| struct universe * | universe, | ||
| struct packet * | packet, | ||
| struct lease * | lease, | ||
| struct client_state * | client_state, | ||
| struct option_state * | in_options, | ||
| struct option_state * | cfg_options, | ||
| struct option_state * | options, | ||
| struct binding_scope ** | scope, | ||
| unsigned | code, | ||
| const char * | file, | ||
| int | line ) |
| int get_option_int | ( | int * | result, |
| struct universe * | universe, | ||
| struct packet * | packet, | ||
| struct lease * | lease, | ||
| struct client_state * | client_state, | ||
| struct option_state * | in_options, | ||
| struct option_state * | cfg_options, | ||
| struct option_state * | options, | ||
| struct binding_scope ** | scope, | ||
| unsigned | code, | ||
| const char * | file, | ||
| int | line ) |
| void get_server_source_address | ( | struct in_addr * | from, |
| struct option_state * | options, | ||
| struct option_state * | out_options, | ||
| struct packet * | packet ) |
| isc_result_t got_one | ( | omapi_object_t * | h | ) |
Definition at line 1093 of file discover.c.
| isc_result_t got_one_v6 | ( | omapi_object_t * | ) |
| int group_writer | ( | struct group_object * | group | ) |
| void hash_dump | ( | struct hash_table * | table | ) |
| HASH_FUNCTIONS_DECL | ( | iasubopt | , |
| struct in6_addr * | , | ||
| struct iasubopt | , | ||
| iasubopt_hash_t | ) |
| option_code_hash_t HASH_FUNCTIONS_DECL | ( | lease_ip | , |
| const unsigned char * | , | ||
| struct lease | , | ||
| lease_ip_hash_t | ) |
| HASH_FUNCTIONS_DECL | ( | option_name | , |
| const char * | , | ||
| struct option | , | ||
| option_name_hash_t | ) |
| 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 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 *) ) |
| int hashed_option_state_dereference | ( | struct universe * | universe, |
| struct option_state * | state, | ||
| const char * | file, | ||
| int | line ) |
| isc_boolean_t ia_equal | ( | const struct ia_xx * | a, |
| const struct ia_xx * | b ) |
| isc_result_t ia_make_key | ( | struct data_string * | key, |
| u_int32_t | iaid, | ||
| const char * | duid, | ||
| unsigned int | duid_len, | ||
| const char * | file, | ||
| int | line ) |
| isc_result_t icmp_echoreply | ( | omapi_object_t * | h | ) |
| int icmp_readsocket | ( | omapi_object_t * | h | ) |
| void if_deregister6 | ( | struct interface_info * | info | ) |
| void if_deregister_receive | ( | struct interface_info * | ) |
| void if_deregister_send | ( | struct interface_info * | ) |
| int if_readsocket | ( | omapi_object_t * | h | ) |
Definition at line 1048 of file discover.c.
| void if_register6 | ( | struct interface_info * | info, |
| int | do_multicast ) |
| void if_register_fallback | ( | struct interface_info * | ) |
| void if_register_linklocal6 | ( | struct interface_info * | info | ) |
| int if_register_lpf | ( | struct interface_info * | ) |
| void if_register_receive | ( | struct interface_info * | ) |
| void if_register_send | ( | struct interface_info * | ) |
| int if_register_socket | ( | struct interface_info * | , |
| int | , | ||
| int * | , | ||
| struct in6_addr * | ) |
| void if_reinitialize_fallback | ( | struct interface_info * | ) |
| void if_reinitialize_receive | ( | struct interface_info * | ) |
| void if_reinitialize_send | ( | struct interface_info * | ) |
| void indent | ( | int | ) |
| isc_result_t interface_destroy | ( | omapi_object_t * | , |
| const char * | , | ||
| int | ) |
| isc_result_t interface_get_value | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_data_string_t * | , | ||
| omapi_value_t ** | ) |
| isc_result_t interface_initialize | ( | omapi_object_t * | ipo, |
| const char * | file, | ||
| int | line ) |
Definition at line 133 of file discover.c.
| int interface_or_dummy | ( | struct interface_info ** | pi, |
| const char * | name ) |
| isc_result_t interface_set_value | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_data_string_t * | , | ||
| omapi_typed_data_t * | ) |
| isc_result_t interface_setup | ( | void | ) |
Definition at line 95 of file discover.c.
| isc_result_t interface_signal_handler | ( | omapi_object_t * | , |
| const char * | , | ||
| va_list | ) |
| void interface_snorf | ( | struct interface_info * | tmp, |
| int | ir ) |
Definition at line 1574 of file discover.c.
| void interface_stash | ( | struct interface_info * | tptr | ) |
Definition at line 1531 of file discover.c.
| isc_result_t interface_stuff_values | ( | omapi_object_t * | , |
| omapi_object_t * | , | ||
| omapi_object_t * | ) |
| void interface_trace_setup | ( | void | ) |
| isc_boolean_t ipv6_in_pool | ( | const struct in6_addr * | addr, |
| const struct ipv6_pool * | pool ) |
Create a new IPv6 pond structure.
Allocate space for a new ipv6_pond structure and return a reference to it, includes setting the reference count to 1.
| pond | = space for returning a referenced pointer to the pond. This must point to a space that has been initialzied to NULL by the caller. |
de-reference an IPv6 pond structure.
This function decrements the reference count in an ipv6_pond structure. If this was the last reference then the memory for the structure is freed.
| [in] | pond | = A pointer to the pointer to the pond that should be de-referenced. On success the pointer to the pond is cleared. It must not be NULL and must not point to NULL. |
| isc_result_t ipv6_pond_reference | ( | struct ipv6_pond ** | pond, |
| struct ipv6_pond * | src, | ||
| const char * | file, | ||
| int | line ) |
reference an IPv6 pond structure.
This function genreates a reference to an ipv6_pond structure and increments the reference count on the structure.
| [out] | pond | = space for returning a referenced pointer to the pond. This must point to a space that has been initialzied to NULL by the caller. |
| [in] | src | = A pointer to the pond to reference. This must not be NULL. |
| isc_result_t ipv6_pool_allocate | ( | struct ipv6_pool ** | pool, |
| u_int16_t | type, | ||
| const struct in6_addr * | start_addr, | ||
| int | bits, | ||
| int | units, | ||
| const char * | file, | ||
| int | line ) |
Create a new IPv6 lease pool structure.
Allocate space for a new ipv6_pool structure and return a reference to it, includes setting the reference count to 1.
| pool | = space for returning a referenced pointer to the pool. This must point to a space that has been initialzied to NULL by the caller. | |
| [in] | type | = The type of the pool NA, TA or PD |
| [in] | start_addr | = The first address in the range for the pool |
| [in] | bits | = The contiguous bits of the pool |
de-reference an IPv6 pool structure.
This function decrements the reference count in an ipv6_pool structure. If this was the last reference then the memory for the structure is freed.
| [in] | pool | = A pointer to the pointer to the pool that should be de-referenced. On success the pointer to the pool is cleared. It must not be NULL and must not point to NULL. |
| isc_result_t ipv6_pool_reference | ( | struct ipv6_pool ** | pool, |
| struct ipv6_pool * | src, | ||
| const char * | file, | ||
| int | line ) |
reference an IPv6 pool structure.
This function genreates a reference to an ipv6_pool structure and increments the reference count on the structure.
| [out] | pool | = space for returning a referenced pointer to the pool. This must point to a space that has been initialzied to NULL by the caller. |
| [in] | src | = A pointer to the pool to reference. This must not be NULL. |
| int is_boolean_expression | ( | struct expression * | expr | ) |
| isc_boolean_t is_cidr_mask_valid | ( | const struct iaddr * | addr, |
| int | bits ) |
| int is_compound_expression | ( | struct expression * | expr | ) |
| int is_data_expression | ( | struct expression * | expr | ) |
| int is_dns_expression | ( | struct expression * | ) |
| int is_numeric_expression | ( | struct expression * | expr | ) |
| void lc_add_sorted_lease | ( | struct leasechain * | lc, |
| struct lease * | lp ) |
| void lc_delete_all | ( | struct leasechain * | lc | ) |
| struct lease * lc_get_first_lease | ( | struct leasechain * | lc | ) |
| struct lease * lc_get_next | ( | struct leasechain * | lc, |
| struct lease * | lp ) |
| void lc_init_growth | ( | struct leasechain * | lc, |
| size_t | growth ) |
| int lc_not_empty | ( | struct leasechain * | lc | ) |
| void lc_unlink_lease | ( | struct leasechain * | lc, |
| struct lease * | lp ) |
| isc_boolean_t lease6_exists | ( | const struct ipv6_pool * | pool, |
| const struct in6_addr * | addr ) |
| isc_boolean_t lease6_usable | ( | struct iasubopt * | lease | ) |
Check if address is available to a lease.
Determine if the address in the lease is available to that lease. Either the address isn't in use or it is in use but by that lease.
| [in] | lease | = lease to check |
| isc_result_t lease_file_subparse | ( | struct parse * | cfile | ) |
Definition at line 277 of file confpars.c.
| isc_result_t lease_instantiate | ( | const void * | key, |
| unsigned | len, | ||
| void * | object ) |
| int linked_option_get | ( | struct data_string * | , |
| struct universe * | , | ||
| struct packet * | , | ||
| struct lease * | , | ||
| struct client_state * | , | ||
| struct option_state * | , | ||
| struct option_state * | , | ||
| struct option_state * | , | ||
| struct binding_scope ** | , | ||
| unsigned | ) |
| int linked_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 linked_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 *) ) |
| int linked_option_state_dereference | ( | struct universe * | universe, |
| struct option_state * | state, | ||
| const char * | file, | ||
| int | line ) |
| struct option_cache * lookup_fqdn6_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| unsigned | code ) |
| struct option_cache * lookup_hashed_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| unsigned | code ) |
| struct option_cache * lookup_linked_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| unsigned | code ) |
| struct option_cache * lookup_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| unsigned | code ) |
Definition at line 241 of file dhclient.c.
| void make_client_config | ( | struct client_state * | client, |
| struct client_config * | config ) |
| void make_client_options | ( | struct client_state * | client, |
| struct client_lease * | lease, | ||
| u_int8_t * | type, | ||
| struct option_cache * | sid, | ||
| struct iaddr * | rip, | ||
| struct option ** | prl, | ||
| struct option_state ** | op ) |
Definition at line 3759 of file dhclient.c.
| void make_client_state | ( | struct client_state ** | state | ) |
| int make_concat | ( | struct expression ** | expr, |
| struct expression * | left, | ||
| struct expression * | right ) |
| int make_const_data | ( | struct expression ** | expr, |
| const unsigned char * | data, | ||
| unsigned | len, | ||
| int | terminated, | ||
| int | allocate, | ||
| const char * | file, | ||
| int | line ) |
| int make_const_int | ( | struct expression ** | expr, |
| unsigned long | val ) |
| int make_const_option_cache | ( | struct option_cache ** | oc, |
| struct buffer ** | buffer, | ||
| u_int8_t * | data, | ||
| unsigned | len, | ||
| struct option * | option, | ||
| const char * | file, | ||
| int | line ) |
| void make_decline | ( | struct client_state * | client, |
| struct client_lease * | lease ) |
Definition at line 4064 of file dhclient.c.
| void make_discover | ( | struct client_state * | client, |
| struct client_lease * | lease ) |
Definition at line 3909 of file dhclient.c.
| int make_encapsulation | ( | struct expression ** | expr, |
| struct data_string * | name ) |
| int make_host_lookup | ( | struct expression ** | expr, |
| const char * | name ) |
| int make_let | ( | struct executable_statement ** | result, |
| const char * | name ) |
| int make_limit | ( | struct expression ** | new, |
| struct expression * | expr, | ||
| int | limit ) |
| void make_release | ( | struct client_state * | client, |
| struct client_lease * | lease ) |
Definition at line 4124 of file dhclient.c.
| void make_request | ( | struct client_state * | client, |
| struct client_lease * | lease ) |
Definition at line 3974 of file dhclient.c.
| int make_substring | ( | struct expression ** | new, |
| struct expression * | expr, | ||
| struct expression * | offset, | ||
| struct expression * | length ) |
| isc_result_t mark_lease_unavailble | ( | struct ipv6_pool * | pool, |
| const struct in6_addr * | addr ) |
| void maybe_setup_fallback | ( | void | ) |
| int mockup_lease | ( | struct lease ** | lp, |
| struct packet * | packet, | ||
| struct shared_network * | share, | ||
| struct host_decl * | hp ) |
Constructs and sends a DHCP Nak.
In order to populate options such as dhcp-server-id and dhcp-client-identifier, the function creates a temporary option cache and evaluates options based on the packet's shared-network or the network_group in its absence, as well as the packet->clasess (if any).
| packet | inbound packet received from the client |
| cip | address requested by the client |
| network_group | optional scope for use in setting up options |
| struct client_lease * new_client_lease | ( | const char * | , |
| int | ) |
| struct dhcp_packet * new_dhcp_packet | ( | const char * | , |
| int | ) |
| struct domain_search_list * new_domain_search_list | ( | const char * | , |
| int | ) |
| struct lease_state * new_lease_state | ( | const char * | , |
| int | ) |
| struct name_server * new_name_server | ( | const char * | , |
| int | ) |
| void new_shared_network_interface | ( | struct parse * | cfile, |
| struct shared_network * | share, | ||
| const char * | name ) |
| struct option_cache * next_hashed_option | ( | struct universe * | , |
| struct option_state * | , | ||
| struct option_cache * | ) |
| enum dhcp_token next_raw_token | ( | const char ** | rval, |
| unsigned * | rlen, | ||
| struct parse * | cfile ) |
| enum dhcp_token next_token | ( | const char ** | rval, |
| unsigned * | rlen, | ||
| struct parse * | cfile ) |
| binding_state_t normal_binding_state_transition_check | ( | struct lease * | , |
| dhcp_failover_state_t * | , | ||
| binding_state_t | , | ||
| u_int32_t | ) |
| int nwip_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 ) |
| dhcp_type_failover_listener OMAPI_OBJECT_ALLOC_DECL | ( | dhcp_failover_link | , |
| dhcp_failover_link_t | , | ||
| dhcp_type_failover_link | ) const |
| OMAPI_OBJECT_ALLOC_DECL | ( | dhcp_failover_state | , |
| dhcp_failover_state_t | , | ||
| dhcp_type_failover_state | ) |
| OMAPI_OBJECT_ALLOC_DECL | ( | interface | , |
| struct interface_info | , | ||
| dhcp_type_interface | ) |
| OMAPI_OBJECT_ALLOC_DECL | ( | shared_network | , |
| struct shared_network | , | ||
| dhcp_type_shared_network | ) |
| enum expression_context op_context | ( | enum | expr_op | ) |
| int option_cache | ( | struct option_cache ** | oc, |
| struct data_string * | dp, | ||
| struct expression * | expr, | ||
| struct option * | option, | ||
| const char * | file, | ||
| int | line ) |
| int option_cache_allocate | ( | struct option_cache ** | cptr, |
| const char * | file, | ||
| int | line ) |
| int option_cache_dereference | ( | struct option_cache ** | ptr, |
| const char * | file, | ||
| int | line ) |
| int option_cache_reference | ( | struct option_cache ** | ptr, |
| struct option_cache * | src, | ||
| const char * | file, | ||
| int | line ) |
| dhcp_type_control int option_chain_head_allocate | ( | struct option_chain_head ** | ptr, |
| const char * | file, | ||
| int | line ) |
| int option_chain_head_dereference | ( | struct option_chain_head ** | ptr, |
| const char * | file, | ||
| int | line ) |
| int option_chain_head_reference | ( | struct option_chain_head ** | ptr, |
| struct option_chain_head * | bp, | ||
| const char * | file, | ||
| int | line ) |
| int 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 data_string * | name ) |
| void 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 *) ) |
| int option_state_allocate | ( | struct option_state ** | ptr, |
| const char * | file, | ||
| int | line ) |
| int option_state_dereference | ( | struct option_state ** | ptr, |
| const char * | file, | ||
| int | line ) |
| int option_state_reference | ( | struct option_state ** | ptr, |
| struct option_state * | bp, | ||
| const char * | file, | ||
| int | line ) |
| void struct client_lease * packet_to_lease | ( | struct packet * | packet, |
| struct client_state * | client ) |
Definition at line 2725 of file dhclient.c.
| void parse_address_range | ( | struct parse * | cfile, |
| struct group * | group, | ||
| int | type, | ||
| struct pool * | inpool, | ||
| struct lease ** | lpchain ) |
Definition at line 3787 of file confpars.c.
Definition at line 5518 of file dhclient.c.
| int parse_allow_deny | ( | struct option_cache ** | oc, |
| struct parse * | cfile, | ||
| int | flag ) |
| int parse_auth_key | ( | struct data_string * | , |
| struct parse * | ) |
| int parse_base64 | ( | struct data_string * | data, |
| struct parse * | cfile ) |
| int parse_boolean_expression | ( | struct expression ** | expr, |
| struct parse * | cfile, | ||
| int * | lose ) |
| uint32_t parse_byte_order_uint32 | ( | const void * | source | ) |
| int parse_case_statement | ( | struct executable_statement ** | result, |
| struct parse * | cfile, | ||
| int * | lose, | ||
| enum | expression_context ) |
| int parse_class_declaration | ( | struct class ** | cp, |
| struct parse * | cfile, | ||
| struct group * | group, | ||
| int | type ) |
Definition at line 2226 of file confpars.c.
| void parse_client_lease_declaration | ( | struct parse * | cfile, |
| struct client_lease * | lease, | ||
| struct interface_info ** | ipp, | ||
| struct client_state ** | clientp ) |
| void parse_client_statement | ( | struct parse * | cfile, |
| struct interface_info * | ip, | ||
| struct client_config * | config ) |
| int parse_cshl | ( | struct data_string * | data, |
| struct parse * | cfile ) |
| int parse_data_expression | ( | struct expression ** | expr, |
| struct parse * | cfile, | ||
| int * | lose ) |
| int parse_dns_expression | ( | struct expression ** | , |
| struct parse * | , | ||
| int * | ) |
| int struct expression * parse_domain_list | ( | struct parse * | cfile, |
| int | compress ) |
| struct expression * parse_domain_name | ( | struct parse * | cfile | ) |
| int parse_encapsulated_suboptions | ( | struct option_state * | options, |
| struct option * | eopt, | ||
| const unsigned char * | buffer, | ||
| unsigned | len, | ||
| struct universe * | eu, | ||
| const char * | uname ) |
| int parse_executable_statement | ( | struct executable_statement ** | result, |
| struct parse * | cfile, | ||
| int * | lose, | ||
| enum | expression_context ) |
| int parse_executable_statements | ( | struct executable_statement ** | statements, |
| struct parse * | cfile, | ||
| int * | lose, | ||
| enum | expression_context ) |
| int parse_expression | ( | struct expression ** | expr, |
| struct parse * | cfile, | ||
| int * | lose, | ||
| enum | expression_context, | ||
| struct expression ** | plhs, | ||
| enum | expr_op ) |
| void parse_failover_state | ( | struct parse * | , |
| enum failover_state * | , | ||
| TIME * | ) |
| void parse_failover_state_declaration | ( | struct parse * | , |
| dhcp_failover_state_t * | ) |
| int parse_fixed_addr_param | ( | struct option_cache ** | oc, |
| struct parse * | cfile, | ||
| enum | dhcp_token ) |
Definition at line 3070 of file confpars.c.
Definition at line 2977 of file confpars.c.
Definition at line 1959 of file confpars.c.
| void parse_ia_na_declaration | ( | struct parse * | cfile | ) |
Definition at line 4752 of file confpars.c.
| void parse_ia_pd_declaration | ( | struct parse * | cfile | ) |
Definition at line 5637 of file confpars.c.
| void parse_ia_ta_declaration | ( | struct parse * | cfile | ) |
Definition at line 5200 of file confpars.c.
| int parse_if_statement | ( | struct executable_statement ** | result, |
| struct parse * | cfile, | ||
| int * | lose ) |
| void parse_interface_declaration | ( | struct parse * | cfile, |
| struct client_config * | outer_config, | ||
| char * | name ) |
| int parse_ip6_addr_expr | ( | struct expression ** | expr, |
| struct parse * | cfile ) |
| int parse_ip_addr_or_hostname | ( | struct expression ** | expr, |
| struct parse * | cfile, | ||
| int | uniform ) |
| int parse_ip_addr_with_subnet | ( | struct parse * | cfile, |
| struct iaddrmatch * | match ) |
Definition at line 1269 of file confparse.c.
Definition at line 3141 of file confpars.c.
| int parse_non_binary | ( | struct expression ** | expr, |
| struct parse * | cfile, | ||
| int * | lose, | ||
| enum | expression_context ) |
| int parse_numeric_expression | ( | struct expression ** | expr, |
| struct parse * | cfile, | ||
| int * | lose ) |
| int parse_on_statement | ( | struct executable_statement ** | result, |
| struct parse * | cfile, | ||
| int * | lose ) |
| int parse_option_buffer | ( | struct option_state * | options, |
| const unsigned char * | buffer, | ||
| unsigned | length, | ||
| struct universe * | universe ) |
| int parse_option_data | ( | struct expression ** | expr, |
| struct parse * | cfile, | ||
| int | lookups, | ||
| struct option * | option ) |
| int parse_option_decl | ( | struct option_cache ** | oc, |
| struct parse * | cfile ) |
| int parse_option_statement | ( | struct executable_statement ** | result, |
| struct parse * | cfile, | ||
| int | lookups, | ||
| struct option * | option, | ||
| enum | statement_op ) |
| int parse_option_token | ( | struct expression ** | rv, |
| struct parse * | cfile, | ||
| const char ** | fmt, | ||
| struct expression * | expr, | ||
| int | uniform, | ||
| int | lookups ) |
Parse a pool statement.
Pool statements are used to group declarations and permit & deny information with a specific address range. They must be declared within a shared network or subnet and there may be multiple pools withing a shared network or subnet. Each pool may have a different set of permit or deny options.
| [in] | cfile | = the configuration file being parsed |
| [in] | group | = the group structure for this pool |
| [in] | type | = the type of the enclosing statement. This must be SHARED_NET_DECL or SUBNET_DECL for this function. |
Definition at line 1732 of file confpars.c.
| void parse_reject_statement | ( | struct parse * | cfile, |
| struct client_config * | config ) |
| void parse_server_duid | ( | struct parse * | cfile | ) |
| void parse_server_duid_conf | ( | struct parse * | cfile | ) |
Definition at line 3790 of file confparse.c.
Definition at line 2606 of file confpars.c.
| int parse_statement | ( | struct parse * | cfile, |
| struct group * | group, | ||
| int | type, | ||
| struct host_decl * | host_decl, | ||
| int | declaration ) |
Definition at line 364 of file confpars.c.
| void parse_string_list | ( | struct parse * | cfile, |
| struct string_list ** | lp, | ||
| int | multiple ) |
| void parse_subnet6_declaration | ( | struct parse * | cfile, |
| struct shared_network * | share ) |
Definition at line 2852 of file confpars.c.
| void parse_subnet_declaration | ( | struct parse * | cfile, |
| struct shared_network * | share ) |
Definition at line 2763 of file confpars.c.
| int parse_switch_statement | ( | struct executable_statement ** | result, |
| struct parse * | cfile, | ||
| int * | lose ) |
| void parse_trace_setup | ( | void | ) |
| void parse_vendor_option | ( | struct packet * | packet, |
| struct lease * | lease, | ||
| struct client_state * | client_state, | ||
| struct option_state * | in_options, | ||
| struct option_state * | out_options, | ||
| struct binding_scope ** | scope ) |
Parse a vendor option (option 43).
After the server has parsed most of the options and presented the result to the user the user can set the proper vendor option space using vendor-option-space in the config file and then cause this routine to be called via parse-vendor-option in the config file. This routine will then try and find the proper universe for the vendor-option-space and parse the vendor option string based on that universe.
If the information isn't available (no vendor space, no universe for the vendor space, no vendor option in the options) or the decode fails we simply ignore the option and continue processing.
| packet | - structure to hold information about the packet being processed |
| lease | - lease structure |
| client_state | |
| in_options | - The incoming options, we expect to find the vendor-option (option 43, containing the string to parse) there. We shall attach decoded options there. |
| out_options | - The options we have added as we process the packet. We expect to find the vendor-option-space there and use that to find the name of the vendor universe to use |
| scope |
| enum dhcp_token peek_raw_token | ( | const char ** | rval, |
| unsigned * | rlen, | ||
| struct parse * | cfile ) |
| enum dhcp_token peek_token | ( | const char ** | rval, |
| unsigned * | rlen, | ||
| struct parse * | cfile ) |
Definition at line 1688 of file confpars.c.
| const char * pin6_addr | ( | const struct in6_addr * | ) |
| isc_boolean_t prefix6_exists | ( | const struct ipv6_pool * | pool, |
| const struct in6_addr * | pref, | ||
| u_int8_t | plen ) |
| int pretty_escape | ( | char ** | dst, |
| char * | dend, | ||
| const unsigned char ** | src, | ||
| const unsigned char * | send ) |
| char * print_base64 | ( | const unsigned char * | buf, |
| unsigned | len, | ||
| const char * | file, | ||
| int | line ) |
| void print_dns_status | ( | int | , |
| struct dhcp_ddns_cb * | , | ||
| isc_result_t | ) |
| char * print_dotted_quads | ( | unsigned | len, |
| const u_int8_t * | data ) |
| void print_expression | ( | const char * | , |
| struct expression * | ) |
| char * print_hex | ( | unsigned | len, |
| const u_int8_t * | data, | ||
| unsigned | limit, | ||
| unsigned | buf_num ) |
| void print_hex_only | ( | unsigned | len, |
| const u_int8_t * | data, | ||
| unsigned | limit, | ||
| char * | buf ) |
| void print_hex_or_string | ( | unsigned | len, |
| const u_int8_t * | data, | ||
| unsigned | limit, | ||
| char * | buf ) |
| struct timeval * process_outstanding_timeouts | ( | struct timeval * | tvp | ) |
Definition at line 46 of file dispatch.c.
| char * quotify_buf | ( | const unsigned char * | s, |
| unsigned | len, | ||
| const char | enclose_char, | ||
| const char * | file, | ||
| int | line ) |
| char * quotify_string | ( | const char * | s, |
| const char * | file, | ||
| int | line ) |
| isc_result_t range2cidr | ( | struct iaddrcidrnetlist ** | result, |
| const struct iaddr * | lo, | ||
| const struct iaddr * | hi ) |
| int read_client_conf_file | ( | const char * | name, |
| struct interface_info * | ip, | ||
| struct client_config * | client ) |
| isc_result_t read_conf_file | ( | const char * | filename, |
| struct group * | group, | ||
| int | group_type, | ||
| int | leasep ) |
Definition at line 79 of file confpars.c.
| isc_result_t readconf | ( | void | ) |
Definition at line 64 of file confpars.c.
| ssize_t receive_packet | ( | struct interface_info * | , |
| unsigned char * | , | ||
| size_t | , | ||
| struct sockaddr_in * | , | ||
| struct hardware * | ) |
| ssize_t receive_packet6 | ( | struct interface_info * | interface, |
| unsigned char * | buf, | ||
| size_t | len, | ||
| struct sockaddr_in6 * | from, | ||
| struct in6_addr * | to_addr, | ||
| unsigned int * | if_index ) |
| void register_eventhandler | ( | struct eventqueue ** | , |
| void(* | handler )(void *) ) |
| void reinitialize_interfaces | ( | void | ) |
Definition at line 1078 of file discover.c.
| void relinquish_lease_hunks | ( | void | ) |
| void relinquish_timeouts | ( | void | ) |
| void remove_all_if_routes | ( | struct interface_info * | ) |
| void remove_if_route | ( | struct interface_info * | , |
| struct in_addr | ) |
| void remove_routes | ( | struct in_addr | ) |
Renew a lease in the pool.
The hard_lifetime_end_time of the lease should be set to the current expiration time. The soft_lifetime_end_time of the lease should be set to the desired expiration time.
This routine will compare the two and call the correct heap routine to move the lease. If the lease is active and the new expiration time is greater (the normal case) then we call isc_heap_decreased() as a larger time is a lower priority. If the new expiration time is less then we call isc_heap_increased().
If the lease is abandoned then it will be on the active list and we will always call isc_heap_increased() as the previous expiration would have been all 1s (as close as we can get to infinite).
If the lease is moving to active we call that routine which will move it from the inactive list to the active list.
| pool | = a pool the lease belongs to |
| lease | = the lease to be renewed |
| void repudiate_zone | ( | struct dns_zone ** | ) |
| void rewrite_client_leases | ( | void | ) |
Definition at line 4195 of file dhclient.c.
| void save_fqdn6_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| struct option_cache * | oc, | ||
| isc_boolean_t | appendp ) |
| void save_hashed_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| struct option_cache * | oc, | ||
| isc_boolean_t | appendp ) |
| void save_linked_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| struct option_cache * | oc, | ||
| isc_boolean_t | appendp ) |
| void save_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| struct option_cache * | oc ) |
| int save_option_buffer | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| struct buffer * | bp, | ||
| unsigned char * | buffer, | ||
| unsigned | length, | ||
| unsigned | code, | ||
| int | terminatep ) |
| int script_go | ( | struct client_state * | client | ) |
Calls external script.
External script is specified either using -sf command line or script parameter in the configuration file.
| client | specifies client information (environment variables, and other parameters will be extracted and passed to the script. |
Definition at line 5058 of file dhclient.c.
| void script_init | ( | struct client_state * | client, |
| const char * | reason, | ||
| struct string_list * | medium ) |
Initializes basic variables for a script.
This function is called as an initial preparation for calling a script. It sets up a number of common env. variables that will be passed to the script. For actual script calling, see script_go .
| client | variables will be stored here (if null, the whole function is no-op) |
| reason | specified the reason for calling a script (must be non-null) |
| medium | if specified, defines medium type (may be null) |
Definition at line 4811 of file dhclient.c.
| void script_write_params | ( | struct client_state * | client, |
| const char * | prefix, | ||
| struct client_lease * | lease ) |
Adds parameters to environment variables for a script.
This function add details of specified lease to a list of env. variables to be passed to a script. The lease details will be prepended with specified prefix (e.g. "old_") and added to the list stored in client. Following variables may be set:
| client | env. variables will be stored here |
| prefix | textual prefix to be added to each variable (e.g. "old_") |
| lease | lease details will be extracted from here |
Definition at line 4905 of file dhclient.c.
| void script_write_requested | ( | struct client_state * | client | ) |
Write out the environent variable the client requested. Write out the environment variables for the objects that the client requested. If the object was requested the variable will be: requested_<option_name>=1 If it wasn't requested there won't be a variable.
| client | client structure |
Definition at line 5028 of file dhclient.c.
| void send_decline | ( | void * | cpp | ) |
Definition at line 3477 of file dhclient.c.
| void send_discover | ( | void * | cpp | ) |
Definition at line 2927 of file dhclient.c.
| ssize_t send_fallback | ( | struct interface_info * | , |
| struct packet * | , | ||
| struct dhcp_packet * | , | ||
| size_t | , | ||
| struct in_addr | , | ||
| struct sockaddr_in * | , | ||
| struct hardware * | ) |
| ssize_t send_fallback6 | ( | struct interface_info * | , |
| struct packet * | , | ||
| struct dhcp_packet * | , | ||
| size_t | , | ||
| struct in6_addr * | , | ||
| struct sockaddr_in6 * | , | ||
| struct hardware * | ) |
| ssize_t send_packet | ( | struct interface_info * | , |
| struct packet * | , | ||
| struct dhcp_packet * | , | ||
| size_t | , | ||
| struct in_addr | , | ||
| struct sockaddr_in * | , | ||
| struct hardware * | ) |
| ssize_t send_packet6 | ( | struct interface_info * | , |
| const unsigned char * | , | ||
| size_t | , | ||
| struct sockaddr_in6 * | ) |
| void send_release | ( | void * | cpp | ) |
Definition at line 3519 of file dhclient.c.
| void send_request | ( | void * | cpp | ) |
Definition at line 3265 of file dhclient.c.
| isc_boolean_t server_duid_isset | ( | void | ) |
| void set_broadcast_addr | ( | struct interface_info * | , |
| struct in_addr | ) |
| void set_ip_address | ( | struct interface_info * | , |
| struct in_addr | ) |
| void set_multicast_hop_limit | ( | struct interface_info * | info, |
| int | hop_limit ) |
| void set_netmask | ( | struct interface_info * | , |
| struct in_addr | ) |
| void set_option | ( | struct universe * | universe, |
| struct option_state * | options, | ||
| struct option_cache * | option, | ||
| enum | statement_op ) |
| void set_server_duid | ( | struct data_string * | new_duid | ) |
| isc_result_t set_server_duid_from_option | ( | void | ) |
| void set_server_duid_type | ( | int | type | ) |
| void set_time | ( | TIME | t | ) |
Definition at line 36 of file dispatch.c.
| int setup_fallback | ( | struct interface_info ** | fp, |
| const char * | file, | ||
| int | line ) |
Definition at line 1059 of file discover.c.
| void start_confirm6 | ( | struct client_state * | client | ) |
| void start_info_request6 | ( | struct client_state * | client | ) |
| void start_init6 | ( | struct client_state * | client | ) |
| void start_release6 | ( | struct client_state * | client | ) |
| void start_selecting6 | ( | struct client_state * | client | ) |
| void start_v6only | ( | struct client_state * | client, |
| uint32_t | v6only_wait ) |
Definition at line 1769 of file dhclient.c.
| void state_bound | ( | void * | cpp | ) |
Definition at line 2167 of file dhclient.c.
| void state_init | ( | void * | cpp | ) |
Definition at line 1678 of file dhclient.c.
| void state_panic | ( | void * | cpp | ) |
Definition at line 3150 of file dhclient.c.
| void state_reboot | ( | void * | cpp | ) |
Definition at line 1625 of file dhclient.c.
| void state_requesting | ( | void * | ) |
| void state_selecting | ( | void * | cpp | ) |
Definition at line 1803 of file dhclient.c.
| void state_stop | ( | void * | cpp | ) |
Definition at line 2209 of file dhclient.c.
| int store_option | ( | struct data_string * | result, |
| struct universe * | universe, | ||
| 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 option_cache * | oc ) |
| int store_options | ( | int * | ocount, |
| unsigned char * | buffer, | ||
| unsigned | buflen, | ||
| unsigned | index, | ||
| 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, | ||
| unsigned * | priority_list, | ||
| int | priority_len, | ||
| unsigned | first_cutoff, | ||
| int | second_cutoff, | ||
| int | terminate, | ||
| const char * | vuname ) |
| int store_options6 | ( | char * | buf, |
| int | buflen, | ||
| struct option_state * | opt_state, | ||
| struct packet * | packet, | ||
| const int * | required_opts, | ||
| struct data_string * | oro ) |
| void suboption_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 * | oc, | ||
| const char * | vsname ) |
| isc_result_t supersede_group | ( | struct group_object * | group, |
| int | writep ) |
| int supports_multiple_interfaces | ( | struct interface_info * | ) |
| int token_indent_data_string | ( | FILE * | file, |
| int | col, | ||
| int | indent, | ||
| const char * | prefix, | ||
| const char * | suffix, | ||
| struct data_string * | data ) |
| void trace_conf_input | ( | trace_type_t * | , |
| unsigned | , | ||
| char * | ) |
| void trace_conf_stop | ( | trace_type_t * | ttype | ) |
| void trace_ddns_init | ( | void | ) |
| void trigger_event | ( | struct eventqueue ** | queue | ) |
Definition at line 91 of file dispatch.c.
| void try_hw_addr | ( | struct interface_info * | info | ) |
| void unbill_class | ( | struct lease * | lease | ) |
Definition at line 1562 of file dhclient.c.
| void unconfigure6 | ( | struct client_state * | client, |
| const char * | reason ) |
| void unregister_eventhandler | ( | struct eventqueue ** | queue, |
| void(* | handler )(void *) ) |
Definition at line 70 of file dispatch.c.
| int unset | ( | struct binding_scope * | scope, |
| const char * | name ) |
| void update_partner | ( | struct lease * | ) |
| void use_host_decl_name | ( | struct packet * | packet, |
| struct lease * | lease, | ||
| struct option_state * | options ) |
Adds hostname option when use-host-decl-names is enabled.
Constructs a hostname option from the name of the host declaration if there is one and no hostname has otherwise been provided and the use-host-decl-names flag is set, then adds the new option to the given option_state. This funciton is used for both bootp and dhcp.
| packet | inbound packet received from the client |
| lease | lease associated with the client |
| options | option state to search and update |
| isc_result_t write_client6_lease | ( | struct client_state * | client, |
| struct dhc6_lease * | lease, | ||
| int | rewrite, | ||
| int | sync ) |
Definition at line 4501 of file dhclient.c.
| int write_client_lease | ( | struct client_state * | client, |
| struct client_lease * | lease, | ||
| int | rewrite, | ||
| int | makesure ) |
Definition at line 4655 of file dhclient.c.
| void write_client_pid_file | ( | void | ) |
Definition at line 5275 of file dhclient.c.
| int write_expression | ( | FILE * | file, |
| struct expression * | expr, | ||
| int | col, | ||
| int | indent, | ||
| int | firstp ) |
| int write_failover_state | ( | dhcp_failover_state_t * | ) |
| int write_group | ( | struct group_object * | group | ) |
Definition at line 2245 of file dhclient.c.
Definition at line 2239 of file dhclient.c.
| void write_lease_option | ( | struct option_cache * | oc, |
| 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 ) |
Definition at line 4257 of file dhclient.c.
| int write_leases6 | ( | void | ) |
| isc_result_t write_named_billing_class | ( | const void * | key, |
| unsigned | len, | ||
| void * | object ) |
| int write_server_duid | ( | void | ) |
| void write_statements | ( | FILE * | file, |
| struct executable_statement * | statements, | ||
| int | indent ) |
|
extern |
|
extern |
Definition at line 70 of file discover.c.
|
extern |
|
extern |
Definition at line 35 of file dispatch.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 78 of file dhclient.c.
|
extern |
|
extern |
|
extern |
Definition at line 53 of file discover.c.
|
extern |
Definition at line 52 of file discover.c.
|
extern |
Definition at line 55 of file discover.c.
|
extern |
Definition at line 54 of file discover.c.
|
extern |
Definition at line 69 of file dhclient.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 83 of file discover.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 51 of file discover.c.
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 79 of file dhclient.c.
| struct interface_info * dummy_interfaces |
|
extern |
| struct interface_info * fallback_interface |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 90 of file discover.c.
|
extern |
Definition at line 91 of file discover.c.
|
extern |
|
extern |
Definition at line 89 of file discover.c.
|
extern |
Definition at line 42 of file discover.c.
|
extern |
Definition at line 71 of file dhclient.c.
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 57 of file discover.c.
|
extern |
Definition at line 60 of file discover.c.
|
extern |
|
extern |
Definition at line 59 of file discover.c.
|
extern |
Definition at line 48 of file discover.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 108 of file dhclient.c.
|
extern |
|
extern |
|
extern |
Definition at line 57 of file dhclient.c.
|
extern |
Definition at line 58 of file dhclient.c.
|
extern |
Definition at line 62 of file dhclient.c.
|
extern |
Definition at line 59 of file dhclient.c.
|
extern |
Definition at line 61 of file dhclient.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 47 of file discover.c.
|
extern |
Definition at line 50 of file discover.c.
|
extern |
Definition at line 49 of file discover.c.
|
extern |
Definition at line 113 of file dhclient.c.
|
extern |
Definition at line 37 of file dispatch.c.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 33 of file dispatch.c.
|
extern |
|
extern |
| lease_id_hash_t extern struct option* vendor_cfg_option |
|
extern |
Definition at line 110 of file dhclient.c.
|
extern |
Definition at line 112 of file dhclient.c.
|
extern |
Definition at line 111 of file dhclient.c.