Lines Matching refs:ep
63 __nis_netconfig2ep(struct netconfig *nc, endpoint *ep) { in __nis_netconfig2ep() argument
65 if (nc == 0 || ep == 0) in __nis_netconfig2ep()
68 ep->family = strdup(nc->nc_protofmly); in __nis_netconfig2ep()
70 if (strcmp(ep->family, "inet6") == 0) { in __nis_netconfig2ep()
71 ep->proto = strdup(nc->nc_netid); in __nis_netconfig2ep()
73 ep->proto = strdup(nc->nc_proto); in __nis_netconfig2ep()
78 __nis_netconfig_matches_ep(struct netconfig *nc, endpoint *ep) { in __nis_netconfig_matches_ep() argument
80 if (nc == 0 || ep == 0) in __nis_netconfig_matches_ep()
83 if (strcmp(nc->nc_protofmly, ep->family) != 0) in __nis_netconfig_matches_ep()
86 if (strcmp(ep->family, "inet6") == 0) in __nis_netconfig_matches_ep()
87 return (strcmp(nc->nc_netid, ep->proto) == 0 || in __nis_netconfig_matches_ep()
88 strcmp(nc->nc_proto, ep->proto) == 0); in __nis_netconfig_matches_ep()
90 return (strcmp(nc->nc_proto, ep->proto) == 0); in __nis_netconfig_matches_ep()