Home | History | Annotate | Download | only in server

Lines Matching refs:hd

225 isc_result_t enter_host (hd, dynamicp, commit)
226 struct host_decl *hd;
239 (unsigned char *)hd -> name,
240 strlen (hd -> name), hd, MDL);
243 (unsigned char *)hd -> name,
244 strlen (hd -> name), MDL);
249 (unsigned char *)hd -> name,
250 strlen (hd -> name), MDL);
254 hd -> flags |= HOST_DECL_STATIC;
261 if (hp && hp == hd) {
263 delete_host (hd, 0);
264 if (!write_host (hd))
266 hd -> flags &= ~HOST_DECL_DELETED;
273 (unsigned char *)hd -> name,
274 strlen (hd -> name), hd, MDL);
283 if (hd -> n_ipaddr)
284 host_dereference (&hd -> n_ipaddr, MDL);
286 if (!hd -> type)
287 hd -> type = dhcp_type_host;
289 if (hd -> interface.hlen) {
298 hd -> interface.hbuf,
299 hd -> interface.hlen, MDL);
302 host_hash_add (host_hw_addr_hash, hd -> interface.hbuf,
303 hd -> interface.hlen, hd, MDL);
310 host_reference (&np -> n_ipaddr, hd, MDL);
319 if (executable_statement_foreach (hd->group->statements,
328 if (hd->client_identifier.len > 0 && cid.len > 0) {
331 print_hex_or_string(hd->client_identifier.len,
332 hd->client_identifier.data,
341 hd->name, uid_buf, cid_buf);
345 memcpy(&hd->client_identifier, &cid, sizeof(cid));
351 if (hd -> client_identifier.len) {
360 hd -> client_identifier.data,
361 hd -> client_identifier.len,
362 hd, MDL);
368 hd -> client_identifier.data,
369 hd -> client_identifier.len,
375 if (hd == np)
378 if (hd != np)
380 hd, MDL);
385 hd -> client_identifier.data,
386 hd -> client_identifier.len,
387 hd, MDL);
396 if (hd->host_id_option != NULL) {
401 h_id_info = find_host_id_info(hd->host_id_option->code,
402 hd->relays);
410 hd->host_id_option, MDL);
416 h_id_info->relays = hd->relays;
422 hd->host_id.data, hd->host_id.len, MDL)) {
438 if (hd != np) {
439 host_reference(&np->n_ipaddr, hd, MDL);
445 hd->host_id.data,
446 hd->host_id.len,
447 hd, MDL);
452 if (!write_host (hd))
494 isc_result_t delete_host (hd, commit)
495 struct host_decl *hd;
504 if (hd -> flags & HOST_DECL_DELETED)
508 hd -> flags |= HOST_DECL_DELETED;
510 if (hd -> interface.hlen) {
513 hd -> interface.hbuf,
514 hd -> interface.hlen, MDL)) {
515 if (hp == hd) {
517 hd -> interface.hbuf,
518 hd -> interface.hlen, MDL);
525 if (foo == hd)
537 if (hd -> n_ipaddr)
539 hd -> n_ipaddr, MDL);
552 if (hd -> client_identifier.len) {
555 hd -> client_identifier.data,
556 hd -> client_identifier.len, MDL)) {
557 if (hp == hd) {
559 hd -> client_identifier.data,
560 hd -> client_identifier.len, MDL);
567 if (foo == hd)
579 if (hd -> n_ipaddr)
581 hd -> n_ipaddr, MDL);
592 if (hd->host_id_option != NULL) {
593 option_dereference(&hd->host_id_option, MDL);
594 data_string_forget(&hd->host_id, MDL);
597 if (hd -> n_ipaddr) {
598 if (uid_head && hd -> n_ipaddr -> client_identifier.len) {
601 hd -> n_ipaddr -> client_identifier.data,
602 hd -> n_ipaddr -> client_identifier.len,
603 hd -> n_ipaddr, MDL);
605 if (hw_head && hd -> n_ipaddr -> interface.hlen) {
607 hd -> n_ipaddr -> interface.hbuf,
608 hd -> n_ipaddr -> interface.hlen,
609 hd -> n_ipaddr, MDL);
611 host_dereference (&hd -> n_ipaddr, MDL);
616 (unsigned char *)hd -> name,
617 strlen (hd -> name), MDL)) {
618 if (hp == hd && !(hp -> flags & HOST_DECL_STATIC)) {
620 (unsigned char *)hd -> name,
621 strlen (hd -> name), MDL);
628 if (!write_host (hd))