Home
last modified time | relevance | path

Searched refs:s_proto (Results 1 – 19 of 19) sorted by relevance

/titanic_50/usr/src/lib/libresolv2/common/irs/
H A Dgetservent_r.c154 len += strlen(se->s_proto) + 1; in copy_servent()
184 n = strlen(se->s_proto) + 1; in copy_servent()
185 strcpy(cp, se->s_proto); in copy_servent()
186 sptr->s_proto = cp; in copy_servent()
227 if ((n = strlen(se->s_proto) + 1) < (eob - cp)) { in copy_servent()
228 strcpy(cp, se->s_proto); in copy_servent()
229 sptr->s_proto = cp; in copy_servent()
H A Dlcl_sv.c209 if (proto == NULL || strcmp(p->s_proto, proto) == 0) in sv_byname()
250 if (proto == NULL || strcmp(p->s_proto, proto) == 0) in sv_byport()
357 sv->serv.s_proto = p; in irs_lclsv_fnxt()
401 if ((sv->serv.s_proto = strchr(sv->line, '/')) != NULL) in sv_db_rec()
402 *(sv->serv.s_proto)++ = '\0'; in sv_db_rec()
413 if ((sv->serv.s_proto = strchr(sv->line, '/')) != NULL) in sv_db_rec()
414 *(sv->serv.s_proto)++ = '\0'; in sv_db_rec()
H A Dirp_sv.c191 strcasecmp(proto, sv->s_proto) == 0) { in sv_byname()
242 strcasecmp(proto, sv->s_proto) == 0) { in sv_byport()
339 if (sv->s_proto != NULL) { in free_service()
340 free(sv->s_proto); in free_service()
H A Dgetservent.c106 if (!proto || !strcmp(net_data->sv_last->s_proto, proto)) { in getservbyname_p()
129 !strcmp(net_data->sv_last->s_proto, proto))) in getservbyport_p()
H A Ddns_sv.c225 pvt->serv.s_proto = p; in parse_hes_list()
H A Dirpmarshall.c598 need += strlen(sv->s_proto) + 1; in irp_marshall_sv()
624 strcat(*buffer, sv->s_proto); strcat(*buffer, fieldsep); in irp_marshall_sv()
706 sv->s_proto = proto; in irp_unmarshall_sv()
/titanic_50/usr/src/cmd/svc/servinfo/
H A Dservinfo.c277 (void) printf("Protocol %s\n", service->s_proto); in main()
280 (void) printf("%s\n", service->s_proto); in main()
/titanic_50/usr/src/lib/libbc/inc/include/
H A Dnetdb.h56 char *s_proto; /* protocol to use */ member
/titanic_50/usr/src/cmd/getent/
H A Ddogetserv.c49 sp->s_name, ntohs(sp->s_port), sp->s_proto) == EOF) in putservent()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dget_addrs.c121 if (strcmp(sp->s_proto, "udp") != 0) {
/titanic_50/usr/src/lib/libsocket/inet/
H A Dgetaddrinfo.c420 if (strcmp(sp->s_proto, "udp") == 0) { in _getaddrinfo()
423 } else if (strcmp(sp->s_proto, "tcp") == 0) { in _getaddrinfo()
426 } else if (strcmp(sp->s_proto, "sctp") == 0) { in _getaddrinfo()
/titanic_50/usr/src/lib/libresolv/
H A Dnetdb.h80 char *s_proto; /* protocol to use */ member
/titanic_50/usr/src/head/
H A Dnetdb.h234 char *s_proto; /* protocol to use */ member
/titanic_50/usr/src/lib/nsswitch/nis/common/
H A Dgetservent.c56 if (proto != 0 && strcmp(serv->s_proto, proto) != 0) {
/titanic_50/usr/src/lib/libnsl/nss/
H A Dnetdir_inet.c1502 serv->s_proto = buffer + namelen + 1; in str2servent()
1503 (void) memcpy(serv->s_proto, fieldstart, fieldlen - 1); in str2servent()
1504 serv->s_proto[fieldlen - 1] = '\0'; in str2servent()
2328 result->s_proto = buffer; in ndaddr2srent()
2450 result->s_proto = aliasp; in ndhostserv2srent()
/titanic_50/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkupdate.c971 slp->proto = strdup(sp->s_proto); in res_buildservicelist()
1105 serv.s_proto = lp->proto; in cgetservbyport()
/titanic_50/usr/src/cmd/ipf/tools/
H A Dipmon.c471 if (s->s_proto == NULL) in init_tabs()
473 else if (!strcmp(s->s_proto, "tcp")) { in init_tabs()
477 } else if (!strcmp(s->s_proto, "udp")) { in init_tabs()
/titanic_50/usr/src/cmd/ldap/ns_ldap/
H A Dldapaddent.c1589 data.s_proto = strdup(ecol[2].ec_value.ec_value_val); in genent_services()
1658 data.s_name, data.s_proto); in genent_services()
1664 data.s_name, data.s_proto); in genent_services()
1670 free(data.s_proto); in genent_services()
/titanic_50/usr/src/lib/libsldap/common/
H A Dns_writes.c2347 if (ptr->s_name == NULL || ptr->s_port < 0 || ptr->s_proto == '\0') { in __s_cvt_services()
2364 esc_str, ptr->s_proto); in __s_cvt_services()
2408 rc = __s_add_attr(e, "ipServiceProtocol", ptr->s_proto); in __s_cvt_services()