Lines Matching defs:protocol
118 ns_ldap_attr_t *names = NULL, *protocol = NULL;
124 * getservent_r with multiple protocol values and the entry
132 * getservent_r with single protocol value or multiple values
181 /* Get protocol */
182 protocol = __ns_ldap_getAttrStruct(result->entry, _S_PROTOCOL);
183 if (protocol == NULL || protocol->attrvalue == NULL) {
193 protoval = protocol->attrvalue[cookie->index++];
194 } else if (protocol->value_count > 1 && be->setcalled == 0 &&
200 * it needs to match protocol too,
203 for (k = 0; k < protocol->value_count; k++) {
204 if (protocol->attrvalue[k] == NULL) {
208 if (strcmp(protocol->attrvalue[k],
210 protoval = protocol->attrvalue[k];
218 * It does not need to match protocol or
227 protoval = protocol->attrvalue[0];
235 /* Set protocol */
255 protocol->value_count > 1) {
286 cookie->index >= protocol->value_count) {
324 char protocol[SEARCHFILTERLEN];
342 if (_ldap_filter_name(protocol, proto, sizeof (protocol)) != 0)
346 _F_GETSERVBYNAMEPROTO, name, protocol);
351 _F_GETSERVBYNAMEPROTO_SSD, name, protocol);
380 char protocol[SEARCHFILTERLEN];
399 if (_ldap_filter_name(protocol, proto, sizeof (protocol)) != 0)
404 strtol(portstr, (char **)NULL, 10), protocol);
410 strtol(portstr, (char **)NULL, 10), protocol);