Lines Matching refs:intfname
393 char * intfname = NULL; in ipmi_main() local
416 if (intfname) { in ipmi_main()
417 free(intfname); in ipmi_main()
418 intfname = NULL; in ipmi_main()
420 intfname = strdup(optarg); in ipmi_main()
421 if (intfname == NULL) { in ipmi_main()
428 if (strncmp(sup->name, intfname, strlen(intfname)) == 0 && in ipmi_main()
429 strncmp(sup->name, intfname, strlen(sup->name)) == 0 && in ipmi_main()
434 lprintf(LOG_ERR, "Interface %s not supported", intfname); in ipmi_main()
842 if (intfname == NULL && hostname != NULL) { in ipmi_main()
843 intfname = strdup("lan"); in ipmi_main()
844 if (intfname == NULL) { in ipmi_main()
850 if (password != NULL && intfname != NULL) { in ipmi_main()
851 if (strcmp(intfname, "lan") == 0 && strlen(password) > 16) { in ipmi_main()
852 lprintf(LOG_ERR, "%s: password is longer than 16 bytes.", intfname); in ipmi_main()
855 } else if (strcmp(intfname, "lanplus") == 0 && strlen(password) > 20) { in ipmi_main()
856 lprintf(LOG_ERR, "%s: password is longer than 20 bytes.", intfname); in ipmi_main()
863 ipmi_main_intf = ipmi_intf_load(intfname); in ipmi_main()
865 lprintf(LOG_ERR, "Error loading interface %s", intfname); in ipmi_main()
1053 if (intfname != NULL) { in ipmi_main()
1054 free(intfname); in ipmi_main()
1055 intfname = NULL; in ipmi_main()