Lines Matching refs:protocol
118 ns_ldap_attr_t *names = NULL, *protocol = NULL; in _nss_ldap_services2str() local
182 protocol = __ns_ldap_getAttrStruct(result->entry, _S_PROTOCOL); in _nss_ldap_services2str()
183 if (protocol == NULL || protocol->attrvalue == NULL) { in _nss_ldap_services2str()
193 protoval = protocol->attrvalue[cookie->index++]; in _nss_ldap_services2str()
194 } else if (protocol->value_count > 1 && be->setcalled == 0 && in _nss_ldap_services2str()
203 for (k = 0; k < protocol->value_count; k++) { in _nss_ldap_services2str()
204 if (protocol->attrvalue[k] == NULL) { in _nss_ldap_services2str()
208 if (strcmp(protocol->attrvalue[k], in _nss_ldap_services2str()
210 protoval = protocol->attrvalue[k]; in _nss_ldap_services2str()
227 protoval = protocol->attrvalue[0]; in _nss_ldap_services2str()
255 protocol->value_count > 1) { in _nss_ldap_services2str()
286 cookie->index >= protocol->value_count) { in _nss_ldap_services2str()
324 char protocol[SEARCHFILTERLEN]; in getbyname() local
342 if (_ldap_filter_name(protocol, proto, sizeof (protocol)) != 0) in getbyname()
346 _F_GETSERVBYNAMEPROTO, name, protocol); in getbyname()
351 _F_GETSERVBYNAMEPROTO_SSD, name, protocol); in getbyname()
380 char protocol[SEARCHFILTERLEN]; in getbyport() local
399 if (_ldap_filter_name(protocol, proto, sizeof (protocol)) != 0) in getbyport()
404 strtol(portstr, (char **)NULL, 10), protocol); in getbyport()
410 strtol(portstr, (char **)NULL, 10), protocol); in getbyport()