Lines Matching defs:cfile
64 FILE *cfile;
106 if ((cfile = fopen(path_dhclient_conf, "r")) != NULL) {
108 token = peek_token(&val, cfile);
111 parse_client_statement(cfile, NULL, &top_level_config);
113 token = next_token(&val, cfile); /* Clear the peek buffer */
114 fclose(cfile);
150 FILE *cfile;
158 if ((cfile = fopen(path_dhclient_db, "r")) == NULL)
161 token = next_token(&val, cfile);
166 skip_to_semi(cfile);
169 parse_client_lease_statement(cfile, 0);
172 fclose(cfile);
195 parse_client_statement(FILE *cfile, struct interface_info *ip,
202 switch (next_token(&val, cfile)) {
204 parse_option_decl(cfile, &config->send_options[0]);
207 option = parse_option_decl(cfile, &config->defaults[0]);
212 option = parse_option_decl(cfile, &config->defaults[0]);
218 option = parse_option_decl(cfile, &config->defaults[0]);
223 option = parse_option_decl(cfile, &config->defaults[0]);
228 parse_string_list(cfile, &config->media, 1);
232 parse_hardware_param(cfile, &ip->hw_address);
236 skip_to_semi(cfile);
241 parse_option_list(cfile, config->requested_options);
246 parse_option_list(cfile, config->required_options);
249 parse_lease_time(cfile, &config->timeout);
252 parse_lease_time(cfile, &config->retry_interval);
255 parse_lease_time(cfile, &config->select_interval);
258 parse_lease_time(cfile, &config->reboot_timeout);
261 parse_lease_time(cfile, &config->backoff_cutoff);
264 parse_lease_time(cfile, &config->initial_interval);
267 config->script_name = parse_string(cfile);
272 parse_interface_declaration(cfile, config);
275 parse_client_lease_statement(cfile, 1);
278 parse_client_lease_statement(cfile, 2);
281 parse_reject_statement(cfile, config);
285 skip_to_semi(cfile);
288 token = next_token(&val, cfile);
291 skip_to_semi(cfile);
296 parse_X(FILE *cfile, u_int8_t *buf, int max)
302 token = peek_token(&val, cfile);
306 token = next_token(&val, cfile);
309 skip_to_semi(cfile);
315 skip_to_semi(cfile);
318 token = peek_token(&val, cfile);
320 token = next_token(&val, cfile);
324 token = next_token(&val, cfile);
328 skip_to_semi(cfile);
334 skip_to_semi(cfile);
345 parse_option_list(FILE *cfile, u_int8_t *list)
353 token = next_token(&val, cfile);
356 skip_to_semi(cfile);
365 skip_to_semi(cfile);
371 skip_to_semi(cfile);
374 token = next_token(&val, cfile);
378 skip_to_semi(cfile);
389 parse_interface_declaration(FILE *cfile, struct client_config *outer_config)
395 token = next_token(&val, cfile);
398 skip_to_semi(cfile);
410 token = next_token(&val, cfile);
413 skip_to_semi(cfile);
418 token = peek_token(&val, cfile);
425 parse_client_statement(cfile, ip, ip->client->config);
427 token = next_token(&val, cfile);
487 parse_client_lease_statement(FILE *cfile, int is_static)
494 token = next_token(&val, cfile);
497 skip_to_semi(cfile);
510 token = peek_token(&val, cfile);
517 parse_client_lease_declaration(cfile, lease, &ip);
519 token = next_token(&val, cfile);
614 parse_client_lease_declaration(FILE *cfile, struct client_lease *lease,
621 switch (next_token(&val, cfile)) {
626 token = next_token(&val, cfile);
629 skip_to_semi(cfile);
636 if (!parse_ip_addr(cfile, &lease->address))
640 parse_string_list(cfile, &lease->medium, 0);
643 lease->filename = parse_string(cfile);
646 if (!parse_ip_addr(cfile, &lease->nextserver))
650 lease->server_name = parse_string(cfile);
653 lease->renewal = parse_date(cfile);
656 lease->rebind = parse_date(cfile);
659 lease->expiry = parse_date(cfile);
662 parse_option_decl(cfile, lease->options);
666 skip_to_semi(cfile);
669 token = next_token(&val, cfile);
672 skip_to_semi(cfile);
677 parse_option_decl(FILE *cfile, struct option_data *options)
693 token = next_token(&val, cfile);
697 skip_to_semi(cfile);
703 token = peek_token(&val, cfile);
706 token = next_token(&val, cfile);
709 token = next_token(&val, cfile);
713 skip_to_semi(cfile);
725 skip_to_semi(cfile);
746 skip_to_semi(cfile);
760 len = parse_X(cfile, &hunkbuf[hunkix],
765 token = next_token(&val, cfile);
768 skip_to_semi(cfile);
775 skip_to_semi(cfile);
783 if (!parse_ip_addr(cfile, &ip_addr))
791 skip_to_semi(cfile);
799 token = next_token(&val, cfile);
804 skip_to_semi(cfile);
813 token = next_token(&val, cfile);
822 token = next_token(&val, cfile);
830 token = next_token(&val, cfile);
835 skip_to_semi(cfile);
854 skip_to_semi(cfile);
858 token = next_token(&val, cfile);
863 skip_to_semi(cfile);
876 parse_string_list(FILE *cfile, struct string_list **lp, int multiple)
891 token = next_token(&val, cfile);
894 skip_to_semi(cfile);
912 token = next_token(&val, cfile);
917 skip_to_semi(cfile);
922 parse_reject_statement(FILE *cfile, struct client_config *config)
930 if (!parse_ip_addr(cfile, &addr)) {
932 skip_to_semi(cfile);
944 token = next_token(&val, cfile);
949 skip_to_semi(cfile);