#include "keama.h"#include <sys/types.h>#include <arpa/inet.h>#include <ctype.h>#include <netdb.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | FORMERR 1 |
| #define | ISC_R_SUCCESS 0 |
| #define | DHCP_R_NOTAUTH ((6 << 16) + 21) |
| #define | ISC_R_NOTIMPLEMENTED 27 |
| #define | DHCP_R_NOTZONE ((6 << 16) + 22) |
| #define | DHCP_R_NXDOMAIN ((6 << 16) + 15) |
| #define | DHCP_R_NXRRSET ((6 << 16) + 20) |
| #define | DHCP_R_REFUSED ((6 << 16) + 17) |
| #define | DHCP_R_SERVFAIL ((6 << 16) + 14) |
| #define | DHCP_R_YXDOMAIN ((6 << 16) + 18) |
| #define | DHCP_R_YXRRSET ((6 << 16) + 19) |
| #define | S_INIT 2 |
| #define | S_REBOOTING 1 |
| #define | S_SELECTING 3 |
| #define | S_REQUESTING 4 |
| #define | S_BOUND 5 |
| #define | S_RENEWING 6 |
| #define | S_REBINDING 7 |
Functions | |
| void | skip_to_semi (struct parse *cfile) |
| void | skip_to_rbrace (struct parse *cfile, int brace_count) |
| void | parse_semi (struct parse *cfile) |
| void | parse_string (struct parse *cfile, char **sptr, unsigned *lptr) |
| struct string * | parse_host_name (struct parse *cfile) |
| struct string * | parse_ip_addr_or_hostname (struct parse *cfile, isc_boolean_t check_multi) |
| struct string * | parse_ip_addr (struct parse *cfile) |
| struct string * | parse_ip6_addr (struct parse *cfile) |
| struct string * | parse_ip6_addr_txt (struct parse *cfile) |
| struct element * | parse_hardware_param (struct parse *cfile) |
| struct string * | parse_numeric_aggregate (struct parse *cfile, unsigned char *buf, unsigned *max, int separator, int base, unsigned size) |
| void | convert_num (struct parse *cfile, unsigned char *buf, const char *str, int base, unsigned size) |
| struct option * | parse_option_name (struct parse *cfile, isc_boolean_t allocate, isc_boolean_t *known) |
| void | parse_option_space_decl (struct parse *cfile) |
| void | parse_option_code_definition (struct parse *cfile, struct option *option) |
| void | parse_vendor_code_definition (struct parse *cfile, struct option *option) |
| struct string * | convert_format (const char *fmt, isc_boolean_t *is_array, isc_boolean_t *encapsulate) |
| struct string * | parse_base64 (struct parse *cfile) |
| struct string * | parse_cshl (struct parse *cfile) |
| struct string * | parse_hexa (struct parse *cfile) |
| isc_boolean_t | parse_executable_statements (struct element *statements, struct parse *cfile, isc_boolean_t *lose, enum expression_context case_context) |
| isc_boolean_t | parse_executable_statement (struct element *result, struct parse *cfile, isc_boolean_t *lose, enum expression_context case_context, isc_boolean_t direct) |
| isc_boolean_t | parse_zone (struct element *zone, struct parse *cfile) |
| isc_boolean_t | parse_key (struct element *result, struct parse *cfile) |
| isc_boolean_t | parse_on_statement (struct element *result, struct parse *cfile, isc_boolean_t *lose) |
| isc_boolean_t | parse_switch_statement (struct element *result, struct parse *cfile, isc_boolean_t *lose) |
| isc_boolean_t | parse_case_statement (struct element *result, struct parse *cfile, isc_boolean_t *lose, enum expression_context case_context) |
| isc_boolean_t | parse_if_statement (struct element *result, struct parse *cfile, isc_boolean_t *lose) |
| isc_boolean_t | parse_boolean_expression (struct element *expr, struct parse *cfile, isc_boolean_t *lose) |
| isc_boolean_t | parse_boolean (struct parse *cfile) |
| isc_boolean_t | parse_data_expression (struct element *expr, struct parse *cfile, isc_boolean_t *lose) |
| isc_boolean_t | parse_numeric_expression (struct element *expr, struct parse *cfile, isc_boolean_t *lose) |
| isc_boolean_t | parse_non_binary (struct element *expr, struct parse *cfile, isc_boolean_t *lose, enum expression_context context) |
| isc_boolean_t | parse_expression (struct element *expr, struct parse *cfile, isc_boolean_t *lose, enum expression_context context, struct element *lhs, enum expr_op binop) |
| struct string * | escape_option_string (unsigned len, const char *val, isc_boolean_t *require_binary, isc_boolean_t *modified) |
| isc_boolean_t | parse_option_data (struct element *expr, struct parse *cfile, struct option *option) |
| isc_boolean_t | parse_option_binary (struct element *expr, struct parse *cfile, struct option *option, isc_boolean_t ambiguous) |
| struct string * | parse_option_textbin (struct parse *cfile, struct option *option) |
| isc_boolean_t | parse_option_statement (struct element *result, struct parse *cfile, struct option *option, enum statement_op op) |
| struct string * | parse_option_token (struct parse *cfile, const char *fmt, isc_boolean_t *require_binary, isc_boolean_t *canon_bool, isc_boolean_t *modified) |
| struct string * | parse_option_token_binary (struct parse *cfile, const char *fmt) |
| struct string * | parse_domain_list (struct parse *cfile, isc_boolean_t binary) |
| isc_boolean_t | parse_config_data (struct element *expr, struct parse *cfile, struct option *option) |
| isc_boolean_t | parse_config_statement (struct element *result, struct parse *cfile, struct option *option, enum statement_op op) |
| isc_boolean_t | is_boolean_expression (struct element *expr) |
| isc_boolean_t | is_data_expression (struct element *expr) |
| isc_boolean_t | is_numeric_expression (struct element *expr) |
| int | expr_precedence (enum expr_op op, struct element *expr) |
| #define DHCP_R_NOTAUTH ((6 << 16) + 21) |
| #define DHCP_R_NOTZONE ((6 << 16) + 22) |
| #define DHCP_R_NXDOMAIN ((6 << 16) + 15) |
| #define DHCP_R_NXRRSET ((6 << 16) + 20) |
| #define DHCP_R_REFUSED ((6 << 16) + 17) |
| #define DHCP_R_SERVFAIL ((6 << 16) + 14) |
| #define DHCP_R_YXDOMAIN ((6 << 16) + 18) |
| #define DHCP_R_YXRRSET ((6 << 16) + 19) |
| #define FORMERR 1 |
| #define ISC_R_NOTIMPLEMENTED 27 |
| #define ISC_R_SUCCESS 0 |
| #define S_BOUND 5 |
| #define S_INIT 2 |
| #define S_REBINDING 7 |
| #define S_REBOOTING 1 |
| #define S_RENEWING 6 |
| #define S_REQUESTING 4 |
| #define S_SELECTING 3 |
| struct string * convert_format | ( | const char * | fmt, |
| isc_boolean_t * | is_array, | ||
| isc_boolean_t * | encapsulate ) |
| struct string * escape_option_string | ( | unsigned | len, |
| const char * | val, | ||
| isc_boolean_t * | require_binary, | ||
| isc_boolean_t * | modified ) |
| isc_boolean_t is_boolean_expression | ( | struct element * | expr | ) |
| isc_boolean_t is_data_expression | ( | struct element * | expr | ) |
| isc_boolean_t is_numeric_expression | ( | struct element * | expr | ) |
| isc_boolean_t parse_boolean | ( | struct parse * | cfile | ) |
| isc_boolean_t parse_boolean_expression | ( | struct element * | expr, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose ) |
| isc_boolean_t parse_case_statement | ( | struct element * | result, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose, | ||
| enum expression_context | case_context ) |
| isc_boolean_t parse_config_data | ( | struct element * | expr, |
| struct parse * | cfile, | ||
| struct option * | option ) |
| isc_boolean_t parse_config_statement | ( | struct element * | result, |
| struct parse * | cfile, | ||
| struct option * | option, | ||
| enum statement_op | op ) |
| isc_boolean_t parse_data_expression | ( | struct element * | expr, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose ) |
| struct string * parse_domain_list | ( | struct parse * | cfile, |
| isc_boolean_t | binary ) |
| isc_boolean_t parse_executable_statement | ( | struct element * | result, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose, | ||
| enum expression_context | case_context, | ||
| isc_boolean_t | direct ) |
| isc_boolean_t parse_executable_statements | ( | struct element * | statements, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose, | ||
| enum expression_context | case_context ) |
| isc_boolean_t parse_expression | ( | struct element * | expr, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose, | ||
| enum expression_context | context, | ||
| struct element * | lhs, | ||
| enum expr_op | binop ) |
| isc_boolean_t parse_if_statement | ( | struct element * | result, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose ) |
| struct string * parse_ip_addr_or_hostname | ( | struct parse * | cfile, |
| isc_boolean_t | check_multi ) |
| isc_boolean_t parse_key | ( | struct element * | result, |
| struct parse * | cfile ) |
| isc_boolean_t parse_non_binary | ( | struct element * | expr, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose, | ||
| enum expression_context | context ) |
| isc_boolean_t parse_numeric_expression | ( | struct element * | expr, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose ) |
| isc_boolean_t parse_on_statement | ( | struct element * | result, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose ) |
| isc_boolean_t parse_option_binary | ( | struct element * | expr, |
| struct parse * | cfile, | ||
| struct option * | option, | ||
| isc_boolean_t | ambiguous ) |
| isc_boolean_t parse_option_data | ( | struct element * | expr, |
| struct parse * | cfile, | ||
| struct option * | option ) |
| struct option * parse_option_name | ( | struct parse * | cfile, |
| isc_boolean_t | allocate, | ||
| isc_boolean_t * | known ) |
| isc_boolean_t parse_option_statement | ( | struct element * | result, |
| struct parse * | cfile, | ||
| struct option * | option, | ||
| enum statement_op | op ) |
| struct string * parse_option_token | ( | struct parse * | cfile, |
| const char * | fmt, | ||
| isc_boolean_t * | require_binary, | ||
| isc_boolean_t * | canon_bool, | ||
| isc_boolean_t * | modified ) |
| void parse_string | ( | struct parse * | cfile, |
| char ** | sptr, | ||
| unsigned * | lptr ) |
| isc_boolean_t parse_switch_statement | ( | struct element * | result, |
| struct parse * | cfile, | ||
| isc_boolean_t * | lose ) |
| isc_boolean_t parse_zone | ( | struct element * | zone, |
| struct parse * | cfile ) |