Lines Matching defs:hc_info
125 ilbadm_print_hc(ilb_handle_t h, ilb_hc_info_t *hc_info, void *arg)
129 ofmt_print(ofmt_h, hc_info);
161 ilb_hc_info_t hc_info;
165 rclib = ilb_get_hc_info(h, argv[i], &hc_info);
167 ofmt_print(ofmt_h, &hc_info);
354 ilb_hc_info_t hc_info;
360 hc_info.hci_def_ping = B_TRUE;
363 ret = ilbadm_hc_parse_arg(optarg, &hc_info);
367 hc_info.hci_def_ping = B_FALSE;
389 if (((strcasecmp(hc_info.hci_test, ILB_HC_STR_UDP) == 0) ||
390 (strcasecmp(hc_info.hci_test, ILB_HC_STR_PING) == 0)) &&
391 !(hc_info.hci_def_ping)) {
401 (void) strlcpy(hc_info.hci_name, argv[optind],
402 sizeof (hc_info.hci_name));
403 rclib = ilb_create_hc(h, &hc_info);
455 ilbadm_export_hcinfo(ilb_handle_t h, ilb_hc_info_t *hc_info, void *arg)
465 if (hc_info->hci_def_ping == B_FALSE &&
466 strncasecmp(hc_info->hci_test, "PING", 5) != 0)
471 if (*hc_info->hci_test != '\0') {
472 (void) fprintf(fp, "hc-test=%s", hc_info->hci_test);
475 if (hc_info->hci_timeout != 0) {
478 (void) fprintf(fp, "hc-timeout=%d", hc_info->hci_timeout);
480 if (hc_info->hci_count != 0) {
483 (void) fprintf(fp, "hc-count=%d", hc_info->hci_count);
485 if (hc_info->hci_interval != 0) {
488 (void) fprintf(fp, "hc-interval=%d", hc_info->hci_interval);
495 ret = fprintf(fp, " %s\n", hc_info->hci_name);