Lines Matching refs:protocol
116 ns_ldap_attr_t *names = NULL, *protocol = NULL; in _nss_ldap_services2str() local
180 protocol = __ns_ldap_getAttrStruct(result->entry, _S_PROTOCOL); in _nss_ldap_services2str()
181 if (protocol == NULL || protocol->attrvalue == NULL) { in _nss_ldap_services2str()
191 protoval = protocol->attrvalue[cookie->index++]; in _nss_ldap_services2str()
192 } else if (protocol->value_count > 1 && be->setcalled == 0 && in _nss_ldap_services2str()
201 for (k = 0; k < protocol->value_count; k++) { in _nss_ldap_services2str()
202 if (protocol->attrvalue[k] == NULL) { in _nss_ldap_services2str()
206 if (strcmp(protocol->attrvalue[k], in _nss_ldap_services2str()
208 protoval = protocol->attrvalue[k]; in _nss_ldap_services2str()
225 protoval = protocol->attrvalue[0]; in _nss_ldap_services2str()
253 protocol->value_count > 1) { in _nss_ldap_services2str()
284 cookie->index >= protocol->value_count) { in _nss_ldap_services2str()
322 char protocol[SEARCHFILTERLEN]; in getbyname() local
340 if (_ldap_filter_name(protocol, proto, sizeof (protocol)) != 0) in getbyname()
344 _F_GETSERVBYNAMEPROTO, name, protocol); in getbyname()
349 _F_GETSERVBYNAMEPROTO_SSD, name, protocol); in getbyname()
378 char protocol[SEARCHFILTERLEN]; in getbyport() local
397 if (_ldap_filter_name(protocol, proto, sizeof (protocol)) != 0) in getbyport()
402 strtol(portstr, (char **)NULL, 10), protocol); in getbyport()
408 strtol(portstr, (char **)NULL, 10), protocol); in getbyport()