Lines Matching defs:nconf
911 struct netconfig *nconf;
914 nconf = calloc(1, sizeof (struct netconfig));
915 if (nconf == NULL) {
919 nconf->nc_netid = strdup(netconfigp->nc_netid);
920 nconf->nc_protofmly = strdup(netconfigp->nc_protofmly);
921 nconf->nc_proto = strdup(netconfigp->nc_proto);
922 nconf->nc_device = strdup(netconfigp->nc_device);
923 nconf->nc_lookups = malloc((netconfigp->nc_nlookups + 1)
925 if (!(nconf->nc_lookups && nconf->nc_netid &&
926 nconf->nc_protofmly && nconf->nc_proto &&
927 nconf->nc_device)) {
929 netconfig_free(nconf);
934 nconf->nc_lookups[i] = strdup(netconfigp->nc_lookups[i]);
935 if (nconf->nc_lookups[i] == NULL) {
936 nconf->nc_nlookups = i;
937 netconfig_free(nconf);
942 nconf->nc_lookups[i] = NULL;
943 nconf->nc_nlookups = netconfigp->nc_nlookups;
944 nconf->nc_flag = netconfigp->nc_flag;
945 nconf->nc_semantics = netconfigp->nc_semantics;
946 return (nconf);