/titanic_44/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_hc.c | 543 ilbd_hc_kill_probe(ilbd_hc_srv_t *srv) in ilbd_hc_kill_probe() argument 549 if (port_dissociate(srv->shc_ev_port, PORT_SOURCE_FD, in ilbd_hc_kill_probe() 550 srv->shc_child_fd) != 0) { in ilbd_hc_kill_probe() 553 (void) close(srv->shc_child_fd); in ilbd_hc_kill_probe() 554 free(srv->shc_ev); in ilbd_hc_kill_probe() 555 srv->shc_ev = NULL; in ilbd_hc_kill_probe() 558 if (kill(srv->shc_child_pid, SIGKILL) != 0) { in ilbd_hc_kill_probe() 560 srv->shc_hc_rule->hcr_rule->irl_name, in ilbd_hc_kill_probe() 561 srv->shc_sg_srv->sgs_srvID, strerror(errno)); in ilbd_hc_kill_probe() 564 if (waitpid(srv->shc_child_pid, NULL, 0) != srv->shc_child_pid) { in ilbd_hc_kill_probe() [all …]
|
H A D | ilbd_sg.c | 446 i_add_srv2sg(ilbd_sg_t *dsg, ilb_sg_srv_t *srv, ilbd_srv_t **ret_srv) in i_add_srv2sg() argument 459 COPY_SERVER(srv, n_sg_srv); in i_add_srv2sg() 600 ilb_sg_srv_t *srv; in ilbd_add_server_to_group() local 640 srv = &sg_info->sg_servers[i]; in ilbd_add_server_to_group() 643 if (IN6_IS_ADDR_V4MAPPED(&srv->sgs_addr)) { in ilbd_add_server_to_group() 646 srv->sgs_addr); in ilbd_add_server_to_group() 650 srv->sgs_addr); in ilbd_add_server_to_group() 652 audit_sg_data.ed_minport = srv->sgs_minport; in ilbd_add_server_to_group() 653 audit_sg_data.ed_maxport = srv->sgs_maxport; in ilbd_add_server_to_group() 658 int32_t sgs_af = GET_AF(&srv->sgs_addr); in ilbd_add_server_to_group() [all …]
|
H A D | ilbd_rules.c | 131 i_check_srv2rules(list_t *rlist, ilb_sg_srv_t *srv) in i_check_srv2rules() argument 139 if (srv == NULL) in i_check_srv2rules() 142 srv_minport = ntohs(srv->sgs_minport); in i_check_srv2rules() 143 srv_maxport = ntohs(srv->sgs_maxport); in i_check_srv2rules() 1149 ilbd_srv_t *srv = list_head(&sg->isg_srvlist); in ilbd_create_rule() local 1151 int32_t s_af = GET_AF(&srv->isv_addr); in ilbd_create_rule() 1247 i_add_srv2krules(list_t *rlist, ilb_sg_srv_t *srv, int ev_port) in i_add_srv2krules() argument 1257 kcmd.servers[0].addr = srv->sgs_addr; in i_add_srv2krules() 1258 kcmd.servers[0].flags = i_flags_d2k(srv->sgs_flags); in i_add_srv2krules() 1259 (void) strlcpy(kcmd.servers[0].name, srv->sgs_srvID, in i_add_srv2krules() [all …]
|
H A D | ilbd_scf.c | 449 ilbd_srv_scf_val(ilbd_srv_t *srv, char *value) in ilbd_srv_scf_val() argument 454 if (GET_AF(&srv->isv_addr) == AF_INET) { in ilbd_srv_scf_val() 457 IN6_V4MAPPED_TO_INADDR(&srv->isv_addr, &v4_addr); in ilbd_srv_scf_val() 461 (void) inet_ntop(AF_INET6, &srv->isv_addr, ipstr, in ilbd_srv_scf_val() 466 ipstr, ipver, ntohs(srv->isv_minport), ntohs(srv->isv_maxport), in ilbd_srv_scf_val() 467 srv->isv_flags); in ilbd_srv_scf_val() 1625 ilbd_scf_add_srv(ilbd_sg_t *sg, ilbd_srv_t *srv) in ilbd_scf_add_srv() argument 1663 ilbd_srv_scf_val(srv, buf); in ilbd_scf_add_srv() 1666 (void) snprintf(buf, scf_name_len, "server%d", srv->isv_id); in ilbd_scf_add_srv() 1680 ilbd_scf_del_srv(ilbd_sg_t *sg, ilbd_srv_t *srv) in ilbd_scf_del_srv() argument [all …]
|
/titanic_44/usr/src/lib/libilb/common/ |
H A D | ilb_sg.c | 79 ilb_server_data_t *srv, ilbd_cmd_t cmd) in i_ilb_addrem_server_to_group() argument 89 *sgname == '\0' || srv == NULL) in i_ilb_addrem_server_to_group() 105 IP_COPY_CLI_2_IMPL(&srv->sd_addr, &sgs->sgs_addr); in i_ilb_addrem_server_to_group() 106 h_minport = ntohs(srv->sd_minport); in i_ilb_addrem_server_to_group() 107 h_maxport = ntohs(srv->sd_maxport); in i_ilb_addrem_server_to_group() 108 sgs->sgs_minport = srv->sd_minport; in i_ilb_addrem_server_to_group() 110 sgs->sgs_maxport = srv->sd_minport; in i_ilb_addrem_server_to_group() 112 sgs->sgs_maxport = srv->sd_maxport; in i_ilb_addrem_server_to_group() 114 sgs->sgs_flags = srv->sd_flags; in i_ilb_addrem_server_to_group() 115 if (srv->sd_srvID[0] == ILB_SRVID_PREFIX) in i_ilb_addrem_server_to_group() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | dnssrv.c | 69 struct srv_dns_entry *srv = NULL, *entry = NULL; in krb5int_make_srv_query_realm() local 136 srv = (struct srv_dns_entry *) malloc(sizeof(struct srv_dns_entry)); in krb5int_make_srv_query_realm() 137 if (srv == NULL) in krb5int_make_srv_query_realm() 140 srv->priority = priority; in krb5int_make_srv_query_realm() 141 srv->weight = weight; in krb5int_make_srv_query_realm() 142 srv->port = port; in krb5int_make_srv_query_realm() 147 srv->host = strdup(host); in krb5int_make_srv_query_realm() 148 if (srv->host == NULL) { in krb5int_make_srv_query_realm() 149 free(srv); in krb5int_make_srv_query_realm() 153 if (head == NULL || head->priority > srv->priority) { in krb5int_make_srv_query_realm() [all …]
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | request.c | 45 static LDAPConn *find_connection( LDAP *ld, LDAPServer *srv, int any ); 114 LDAPServer *srv; in nsldapi_send_initial_request() local 117 for ( srv = servers; srv != NULL; in nsldapi_send_initial_request() 118 srv = srv->lsrv_next ) { in nsldapi_send_initial_request() 121 srv->lsrv_host, ( srv->lsrv_dn == NULL ) ? in nsldapi_send_initial_request() 122 "(default)" : srv->lsrv_dn, in nsldapi_send_initial_request() 123 srv->lsrv_port ); in nsldapi_send_initial_request() 366 LDAPServer *prevsrv, *srv; in nsldapi_new_connection() local 420 for ( srv = *srvlistp; srv != NULL; srv = srv->lsrv_next ) { in nsldapi_new_connection() 422 srv->lsrv_host, srv->lsrv_port, in nsldapi_new_connection() [all …]
|
H A D | url.c | 410 LDAPServer *srv; in ldap_url_search() local 440 if (( srv = (LDAPServer *)NSLDAPI_CALLOC( 1, sizeof( LDAPServer ))) in ldap_url_search() 442 ( srv->lsrv_host = nsldapi_strdup( host )) == NULL )) { in ldap_url_search() 443 if ( srv != NULL ) { in ldap_url_search() 444 NSLDAPI_FREE( srv ); in ldap_url_search() 451 srv->lsrv_port = ludp->lud_port; in ldap_url_search() 454 srv->lsrv_port = ld->ld_defport; in ldap_url_search() 457 srv->lsrv_port = LDAP_PORT; in ldap_url_search() 460 srv->lsrv_port = LDAPS_PORT; in ldap_url_search() 465 srv->lsrv_options |= LDAP_SRV_OPT_SECURE; in ldap_url_search() [all …]
|
H A D | open.c | 590 LDAPServer *srv; in nsldapi_open_ldap_defconn() local 592 if (( srv = (LDAPServer *)NSLDAPI_CALLOC( 1, sizeof( LDAPServer ))) == in nsldapi_open_ldap_defconn() 593 NULL || ( ld->ld_defhost != NULL && ( srv->lsrv_host = in nsldapi_open_ldap_defconn() 598 srv->lsrv_port = ld->ld_defport; in nsldapi_open_ldap_defconn() 602 srv->lsrv_options |= LDAP_SRV_OPT_SECURE; in nsldapi_open_ldap_defconn() 606 if (( ld->ld_defconn = nsldapi_new_connection( ld, &srv, 1, 1, 0 )) in nsldapi_open_ldap_defconn() 609 NSLDAPI_FREE( srv->lsrv_host ); in nsldapi_open_ldap_defconn() 611 NSLDAPI_FREE( (char *)srv ); in nsldapi_open_ldap_defconn()
|
/titanic_44/usr/src/cmd/fs.d/nfs/lib/ |
H A D | smfcfg.c | 37 char *svcname, srv[MAXPATHLEN]; in fs_smf_init() local 43 snprintf(srv, MAXPATHLEN, "%s", fmri + strlen("svc:/")); in fs_smf_init() 44 svcname = strrchr(srv, ':'); in fs_smf_init() 47 svcname = srv; in fs_smf_init() 121 char *svcname, srv[MAXPATHLEN]; in fs_smf_set_prop() local 128 snprintf(srv, MAXPATHLEN, "%s", fmri); in fs_smf_set_prop() 131 strcat(srv, ":"); in fs_smf_set_prop() 134 if (strlen(srv) + strlen(instance) > MAXPATHLEN) in fs_smf_set_prop() 136 strncat(srv, instance, strlen(instance)); in fs_smf_set_prop() 138 svcname = srv; in fs_smf_set_prop() [all …]
|
/titanic_44/usr/src/lib/libast/common/tm/ |
H A D | tvsleep.c | 38 struct timespec srv; in tvsleep() local 43 if ((r = nanosleep(&stv, &srv)) && errno == EINTR && rv) { in tvsleep() 44 rv->tv_sec = srv.tv_sec; in tvsleep() 45 rv->tv_nsec = srv.tv_nsec; in tvsleep()
|
/titanic_44/usr/src/lib/libnsl/rpc/ |
H A D | auth_time.c | 123 get_server(char *host, nis_server *srv, endpoint eps[], int maxep) in get_server() argument 151 srv->name = (nis_name) host; in get_server() 152 srv->ep.ep_len = num_ep; in get_server() 153 srv->ep.ep_val = eps; in get_server() 154 srv->key_type = NIS_PK_NONE; in get_server() 155 srv->pkey.n_bytes = NULL; in get_server() 156 srv->pkey.n_len = 0; in get_server() 157 return (srv); in get_server() 186 __rpc_get_time_offset(struct timeval *td, nis_server *srv, in __rpc_get_time_offset() argument 226 if ((srv != NULL) && (thost != NULL)) { in __rpc_get_time_offset() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_sg.c | 359 ilb_server_data_t *srv; in i_mod_sg() local 369 srv = &sn->s_spec; in i_mod_sg() 371 srv->sd_flags |= flags; in i_mod_sg() 374 srv); in i_mod_sg() 379 ip2str(&srv->sd_addr, buf, sizeof (buf), in i_mod_sg() 390 srv); in i_mod_sg() 396 srv->sd_srvID, sgp->sg_name, in i_mod_sg() 595 ilb_server_data_t srv; in ilbadm_Xable_server() local 602 bzero(&srv, sizeof (srv)); in ilbadm_Xable_server() 604 (void) strlcpy(srv.sd_srvID, argv[i], sizeof (srv.sd_srvID)); in ilbadm_Xable_server() [all …]
|
H A D | ilbadm_hc.c | 190 ilb_hc_srv_t *srv = (ilb_hc_srv_t *)of_arg->ofmt_cbarg; in print_hc_result() local 195 (void) strlcpy(buf, srv->hcs_rule_name, bufsize); in print_hc_result() 198 (void) strlcpy(buf, srv->hcs_hc_name, bufsize); in print_hc_result() 201 (void) strlcpy(buf, srv->hcs_ID, bufsize); in print_hc_result() 204 switch (srv->hcs_status) { in print_hc_result() 223 (void) snprintf(buf, bufsize, "%u", srv->hcs_fail_cnt); in print_hc_result() 226 if (localtime_r(&srv->hcs_lasttime, &tv) == NULL) in print_hc_result() 232 if (srv->hcs_status == ILB_HCS_DISABLED) in print_hc_result() 234 if (localtime_r(&srv->hcs_nexttime, &tv) == NULL) in print_hc_result() 240 (void) snprintf(buf, bufsize, "%u", srv->hcs_rtt); in print_hc_result() [all …]
|
H A D | ilbadm_stats.c | 232 ilbst_srv_desc_t *srv, *o_srv, *n_srv; in i_sum_per_rule_processed() local 254 srv = o_srv; in i_sum_per_rule_processed() 256 srv = n_srv; in i_sum_per_rule_processed() 258 res += srv->isd_serverstats[index].is_value; in i_sum_per_rule_processed() 352 ilbst_srv_desc_t *srv, *osrv; in of_itemize_stats() local 354 srv = &sta->ilbst_rlist[rule_index].ird_srvlist[srv_ind]; in of_itemize_stats() 366 (void) snprintf(buf, bufsize, "%s", srv->isd_servername); in of_itemize_stats() 370 count = srv->isd_serverstats[stat_ind].is_value; in of_itemize_stats() 376 if (srv->isd_crtime != osrv->isd_crtime) in of_itemize_stats()
|
/titanic_44/usr/src/cmd/sendmail/src/ |
H A D | tls.c | 402 tls_safe_f(var, sff, srv) in tls_safe_f() argument 405 bool srv; 414 srv ? "server" : "client", var, sm_errstring(ret)); 475 # define TLS_SAFE_F(var, sff, req, ex, st, srv) if (ex && ok) \ argument 477 r = tls_safe_f(var, sff, srv); \ 519 inittls(ctx, req, options, srv, certfile, keyfile, cacertpath, cacertfile, dhparam) in inittls() argument 523 bool srv; 550 who = srv ? "server" : "client"; 589 TLS_S_CERT_EX, srv ? TLS_T_SRV : TLS_T_CLT); 591 TLS_S_KEY_EX, srv ? TLS_T_SRV : TLS_T_CLT); [all …]
|
/titanic_44/usr/src/lib/libsmbfs/smb/ |
H A D | nb_ssn.c | 276 struct nb_name lcl, srv; in nb_ssn_request() local 298 snprintf(srv.nn_name, NB_NAMELEN, "%-15.15s", srvname); in nb_ssn_request() 299 srv.nn_type = NBT_SERVER; in nb_ssn_request() 300 srv.nn_scope = ctx->ct_nb->nb_scope; in nb_ssn_request() 305 if ((err = nb_name_encode(&req, &srv)) != 0) in nb_ssn_request()
|
/titanic_44/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_health.c | 134 if (strcmp("inet6", ip->srv->ri_knconf->knc_protofmly) == 0) { in rdc_if_xxx() 216 err = rdc_clnt_call_any(ip->srv, ip, in rdc_health_thread() 226 err = rdc_clnt_call_any(ip->srv, ip, in rdc_health_thread() 475 new->srv = rdc_create_svinfo(svp->ri_hostname, &svp->ri_addr, in rdc_add_to_if() 480 if (!new->srv) { in rdc_add_to_if() 535 rdc_destroy_svinfo(new->srv); in rdc_add_to_if() 622 rdc_destroy_svinfo(ip->srv); in rdc_remove_from_if() 773 syncdp = rdc_lookup_host(ip->srv->ri_hostname); in rdc_update_health() 791 syncdp = rdc_lookup_host(ip->srv->ri_hostname); in rdc_update_health()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | uds_daemon.h | 85 #define SRS_PORT(S) mDNSVal16((S)->RR_SRV.resrec.rdata->u.srv.port) 116 extern int CountExistingRegistrations(domainname *srv, mDNSIPPort port);
|
H A D | uds_daemon.c | 855 mDNSBool srv; member 901 mDNSlocal int build_domainname_from_strings(domainname *srv, char *name, char *regtype, char *domai… 926 mDNSlocal void free_service_instance(service_instance *srv); 1226 mDNSlocal void rename_service(service_instance *srv) in rename_service() argument 1228 if (srv->autoname && !SameDomainLabel(srv->name.c, gmDNS->nicelabel.c)) in rename_service() 1230 srv->rename_on_memfree = 1; in rename_service() 1231 …if (mDNS_DeregisterService(gmDNS, &srv->srs)) // If service deregistered already, we can re-regist… in rename_service() 1232 regservice_callback(gmDNS, &srv->srs, mStatus_MemFree); in rename_service() 1678 …if (answer->rrtype == kDNSType_SRV && res->srv && SameRDataBody… in resolve_result_callback() 1679 res->srv = mDNSfalse; in resolve_result_callback() [all …]
|
H A D | DNSCommon.c | 489 rd->srv.priority, rd->srv.weight, mDNSVal16(rd->srv.port), rd->srv.target.c); break; in GetRRDisplayString_rdb() 1162 …case kDNSType_SRV: return(mDNSBool)( r1->rdata->u.srv.priority == r2->srv.priority … in SameRDataBody() 1163 r1->rdata->u.srv.weight == r2->srv.weight && in SameRDataBody() 1164 r1->rdata->u.srv.port.NotAnInteger == r2->srv.port.NotAnInteger && in SameRDataBody() 1165 SameDomainName(&r1->rdata->u.srv.target, &r2->srv.target) ); in SameRDataBody() 1213 case kDNSType_SRV: return(mDNSu16)(6 + CompressedDomainNameLength(&rd->srv.target, name)); in GetRDLength() 1262 len = DomainNameLength(&rd->u.srv.target); in ValidateRData() 1529 *ptr++ = (mDNSu8)(rr->rdata->u.srv.priority >> 8); in putRData() 1530 *ptr++ = (mDNSu8)(rr->rdata->u.srv.priority & 0xFF); in putRData() 1531 *ptr++ = (mDNSu8)(rr->rdata->u.srv.weight >> 8); in putRData() [all …]
|
/titanic_44/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smbrdr_glue.c | 82 smbrdr_logon(char *srv, char *dom, char *user) in smbrdr_logon() argument 87 err = smbrdr_ctx_new(&ctx, srv, dom, user); in smbrdr_logon()
|
/titanic_44/usr/src/lib/libsldap/common/ |
H A D | ns_mapping.c | 661 char **sdl, *srv, **sdl_save; in __ns_ldap_getSearchDescriptors() local 761 srv = *sdl; in __ns_ldap_getSearchDescriptors() 762 if (strncasecmp(service, srv, slen) != 0) in __ns_ldap_getSearchDescriptors() 764 srv += slen; in __ns_ldap_getSearchDescriptors() 765 if (*srv != COLONTOK) in __ns_ldap_getSearchDescriptors() 767 srv++; in __ns_ldap_getSearchDescriptors() 768 while (srv != NULL && *srv != NULL) { in __ns_ldap_getSearchDescriptors() 770 rc = __s_api_parseASearchDesc(service, &srv, &ret); in __ns_ldap_getSearchDescriptors()
|
/titanic_44/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 2398 uid_t srv; in check_client_old() local 2429 srv = UID_NOBODY; in check_client_old() 2430 else if (!get_uid(s, &srv)) in check_client_old() 2432 else if (srv == (uid_t)-1) { in check_client_old() 2438 *srv_uid = srv; in check_client_old() 2471 gid_t srv; in check_client_old() local 2502 srv = UID_NOBODY; in check_client_old() 2503 else if (!get_gid(s, &srv)) in check_client_old() 2505 else if (srv == (gid_t)-1) { in check_client_old() 2511 *srv_gid = srv; in check_client_old() [all …]
|
/titanic_44/usr/src/lib/libadutils/common/ |
H A D | addisc.c | 302 ds_dup(const idmap_ad_disc_ds_t *srv) in ds_dup() argument 308 for (i = 0; srv[i].host[0] != '\0'; i++) in ds_dup() 314 (void) memcpy(new, srv, size); in ds_dup() 665 idmap_ad_disc_ds_t *srv; in srv_query() local 757 for (srv = srv_res, cnt = ancount; in srv_query() 758 cnt > 0; --cnt, srv++) { in srv_query() 788 NS_GET16(srv->priority, ptr); in srv_query() 789 NS_GET16(srv->weight, ptr); in srv_query() 790 NS_GET16(srv->port, ptr); in srv_query() 791 len = dn_expand(msg.buf, eom, ptr, srv->host, in srv_query() [all …]
|