Lines Matching refs:ifnames

722 	char			*ifnames, *ifnames_head;  in getinfo_ifnames()  local
728 ifnames_head = ifnames = strdup(ifn); in getinfo_ifnames()
729 if (ifnames == NULL) in getinfo_ifnames()
740 ifnames = strtok(ifnames, " "); in getinfo_ifnames()
741 if (ifnames == NULL) in getinfo_ifnames()
742 ifnames = ""; in getinfo_ifnames()
744 for (; ifnames != NULL; ifnames = strtok(NULL, " ")) { in getinfo_ifnames()
746 (void) strlcpy(request->ifname, ifnames, LIFNAMSIZ); in getinfo_ifnames()
766 if (ifnames[0] == '\0') in getinfo_ifnames()
791 char *ifnames; in get_ifnames() local
803 ifnames = calloc(1, n_ifs * (LIFNAMSIZ + 1)); in get_ifnames()
806 if (ifc.ifc_req != NULL && ifnames != NULL) { in get_ifnames()
810 free(ifnames); in get_ifnames()
822 (void) strcat(ifnames, ifc.ifc_req[i].ifr_name); in get_ifnames()
823 (void) strcat(ifnames, " "); in get_ifnames()
826 if (strlen(ifnames) > 1) in get_ifnames()
827 ifnames[strlen(ifnames) - 1] = '\0'; in get_ifnames()
832 return (ifnames); in get_ifnames()
853 char *ifnames, *ifnames_copy, *ifnames_head; in dhcp_ipc_getinfo() local
880 ifnames = get_ifnames(IFF_DHCPRUNNING, 0); in dhcp_ipc_getinfo()
881 if (ifnames != NULL && strlen(ifnames) != 0) { in dhcp_ipc_getinfo()
882 retval = getinfo_ifnames(ifnames, optnum, result); in dhcp_ipc_getinfo()
884 free(ifnames); in dhcp_ipc_getinfo()
888 free(ifnames); in dhcp_ipc_getinfo()
898 ifnames = get_ifnames(IFF_UP|IFF_RUNNING, IFF_LOOPBACK|IFF_DHCPRUNNING); in dhcp_ipc_getinfo()
899 if (ifnames == NULL || strlen(ifnames) == 0) { in dhcp_ipc_getinfo()
900 free(ifnames); in dhcp_ipc_getinfo()
904 ifnames_head = ifnames_copy = strdup(ifnames); in dhcp_ipc_getinfo()
906 free(ifnames); in dhcp_ipc_getinfo()
913 free(ifnames); in dhcp_ipc_getinfo()
932 retval = getinfo_ifnames(ifnames, optnum, result); in dhcp_ipc_getinfo()
947 ifnames_copy = strcpy(ifnames_head, ifnames); in dhcp_ipc_getinfo()
957 free(ifnames); in dhcp_ipc_getinfo()