Lines Matching defs:proto
52 * `proto', `proto', `realm' using `dns_type'.
59 const char *proto, const char *service, int port)
71 proto_num = string_to_proto(proto);
75 proto);
82 def_port = ntohs(krb5_getportbyname (context, service, proto, 88));
86 snprintf(domain, sizeof(domain), "_%s._%s.%s.", service, proto, realm);
125 hi->proto = proto_num;
208 hi->proto = krbhst_get_default_proto(kd);
211 hi->proto = KRB5_KRBHST_HTTP;
214 hi->proto = KRB5_KRBHST_HTTP;
218 hi->proto = KRB5_KRBHST_TCP;
278 (*to)->proto = from->proto;
295 if(h->proto == host->proto &&
327 const char *proto = "";
329 if(host->proto == KRB5_KRBHST_TCP)
330 proto = "tcp/";
331 else if(host->proto == KRB5_KRBHST_HTTP)
332 proto = "http://";
335 snprintf(hostname, hostlen, "%s%s%s", proto, host->hostname, portstr);
340 * create a getaddrinfo `hints' based on `proto'
344 make_hints(struct addrinfo *hints, int proto)
348 switch(proto) {
381 make_hints(&hints, host->proto);
435 const char *proto, const char *service)
441 ret = srv_find_realm(context, &res, &count, kd->realm, "SRV", proto, service,
444 kd->realm, proto, service, ret);
481 * `port' is the default port for the service, and `proto' the
487 const char *serv_string, int port, int proto)
516 make_hints(&hints, proto);
533 hi->proto = proto;
578 hi->proto = krbhst_get_default_proto(kd);
800 (*host)->proto = krbhst_get_default_proto(kd);