MCPcopy Create free account
hub / github.com/acl-dev/acl / conf_load

Function conf_load

lib_acl/samples/dgate/configure.cpp:130–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void conf_load(const char *filepath)
131{
132 const char *myname = "conf_load";
133 ACL_XINETD_CFG_PARSER *cfg;
134
135 __domain_map_table = acl_htable_create(100, 0);
136
137 cfg = acl_xinetd_cfg_load(filepath);
138 if (cfg == NULL) {
139 acl_msg_error("%s(%d): load confiugre(%s) error",
140 myname, __LINE__, filepath);
141 return;
142 }
143
144 acl_xinetd_params_bool_table(cfg, __conf_bool_tab);
145 acl_xinetd_params_int_table(cfg, __conf_int_tab);
146 acl_xinetd_params_str_table(cfg, __conf_str_tab);
147
148 conf_allow_ip(var_cfg_allow_ip);
149 domain_map_add_unknown();
150 conf_domains_map(var_cfg_domains);
151
152 acl_xinetd_cfg_free(cfg);
153}
154
155int host_allow(const char *ip)
156{

Callers 1

initFunction · 0.85

Calls 10

acl_htable_createFunction · 0.85
acl_xinetd_cfg_loadFunction · 0.85
acl_msg_errorFunction · 0.85
conf_allow_ipFunction · 0.85
domain_map_add_unknownFunction · 0.85
conf_domains_mapFunction · 0.85
acl_xinetd_cfg_freeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…