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