Lines Matching refs:net
125 struct netconfig *net; in _s_netconfig_path() local
129 net = _s_match_netconf(family, type, protocol, &nethandle); in _s_netconfig_path()
130 if (net == NULL) in _s_netconfig_path()
133 if (strcmp(net->nc_proto, NC_NOPROTO) != 0) in _s_netconfig_path()
139 if (stat(net->nc_device, &stats) < 0) { in _s_netconfig_path()
160 *pathp = malloc(strlen(net->nc_device) + 1); in _s_netconfig_path()
166 (void) strcpy(*pathp, net->nc_device); in _s_netconfig_path()
178 struct netconfig *net; in _s_match_netconf() local
204 while ((net = getnetconfig(*nethandle)) != NULL) { in _s_match_netconf()
211 unsigned int semantics = net->nc_semantics; in _s_match_netconf()
216 if (strcmp(net->nc_protofmly, family_sw[family]) == 0 && in _s_match_netconf()
218 strcmp(net->nc_proto, oproto) == 0) in _s_match_netconf()
221 if (strcmp(net->nc_protofmly, family_sw[family]) == 0 && in _s_match_netconf()
224 strcmp(net->nc_proto, NC_NOPROTO) == 0 && in _s_match_netconf()
226 maybe = net; /* in case no exact match */ in _s_match_netconf()
230 if (strcmp(net->nc_protofmly, family_sw[family]) == 0 && in _s_match_netconf()
236 if (net == NULL && maybe) in _s_match_netconf()
237 net = maybe; in _s_match_netconf()
239 if (net == NULL) { in _s_match_netconf()
245 return (net); in _s_match_netconf()