Lines Matching refs:dhcp_confopt_t
52 static dhcp_confopt_t *
53 find_dhcp_confopt(dhcp_confopt_t *ddp, const char *key)
69 * Adds a dhcp_confopt_t to the ddpp table. If the table is NULL, one is
76 add_dsvc_conf(dhcp_confopt_t **ddpp, const char *key, const char *value)
78 dhcp_confopt_t *ndp, tdp;
99 ndp = realloc(*ddpp, (i + 2) * sizeof (dhcp_confopt_t));
108 (void) memset(&ndp[i + 1], 0, sizeof (dhcp_confopt_t));
116 * allocated array of dhcp_confopt_t records. A zeroed element marks the
121 read_dsvc_conf(dhcp_confopt_t **ddpp)
128 dhcp_confopt_t confopt, *tdp, *ddp = NULL;
189 tdp = realloc(ddp, (entry + 2) * sizeof (dhcp_confopt_t));
194 (void) memset(&tdp[entry + 1], 0, sizeof (dhcp_confopt_t));
219 replace_dsvc_conf(dhcp_confopt_t **ddpp, const char *key, const char *value)
221 dhcp_confopt_t *tdp;
256 write_dsvc_conf(dhcp_confopt_t *ddp, mode_t mode)
325 free_dsvc_conf(dhcp_confopt_t *ddp)
361 query_dsvc_conf(dhcp_confopt_t *ddp, const char *key, char **value)
363 dhcp_confopt_t *tdp;
384 * Given a dhcp_confopt_t structure, fill in a dsvc_datastore_t.
385 * Data is copied from dhcp_confopt_t structure.
388 confopt_to_datastore(dhcp_confopt_t *ddp, dsvc_datastore_t *dsp)
390 dhcp_confopt_t *tdp;