Home
last modified time | relevance | path

Searched refs:portstr (Results 1 – 24 of 24) sorted by relevance

/freebsd-12-stable/crypto/heimdal/lib/roken/
Dgetaddrinfo_hostspec.c47 char portstr[NI_MAXSERV]; in roken_getaddrinfo_hostspec2() local
89 snprintf (portstr, sizeof(portstr), "%u", port); in roken_getaddrinfo_hostspec2()
92 return getaddrinfo (host, portstr, &hints, ai); in roken_getaddrinfo_hostspec2()
Dmini_inetd.c180 char portstr[NI_MAXSERV]; in mini_inetd() local
187 snprintf (portstr, sizeof(portstr), "%d", ntohs(port)); in mini_inetd()
189 error = getaddrinfo (NULL, portstr, &hints, &ai); in mini_inetd()
/freebsd-12-stable/crypto/heimdal/appl/test/
Dcommon.c145 char portstr[NI_MAXSERV]; in client_doit() local
151 snprintf (portstr, sizeof(portstr), "%u", ntohs(port)); in client_doit()
153 error = getaddrinfo (hostname, portstr, &hints, &ai); in client_doit()
/freebsd-12-stable/crypto/heimdal/kadmin/
Dkadm_conn.c241 char portstr[32]; in start_server() local
248 snprintf(portstr, sizeof(portstr), "%u", p->def_port); in start_server()
249 e = getaddrinfo(NULL, portstr, &hints, &ai); in start_server()
254 "%s", portstr); in start_server()
/freebsd-12-stable/tools/tools/kttcp/
Dkttcp.c110 char *portstr; in main() local
123 portstr = KTTCP_PORT; in main()
153 portstr = optarg; in main()
201 error = getaddrinfo(host, portstr, &hints, &addr); in main()
239 printf("kttcp: listening on port %s\n", portstr); in main()
/freebsd-12-stable/crypto/heimdal/lib/krb5/
Dkrbhst.c334 char portstr[7] = ""; in krb5_krbhst_format_string() local
340 snprintf(portstr, sizeof(portstr), ":%d", host->port); in krb5_krbhst_format_string()
341 snprintf(hostname, hostlen, "%s%s%s", proto, host->hostname, portstr); in krb5_krbhst_format_string()
383 char portstr[NI_MAXSERV]; in krb5_krbhst_get_addrinfo() local
386 snprintf (portstr, sizeof(portstr), "%d", host->port); in krb5_krbhst_get_addrinfo()
396 ret = getaddrinfo(host->hostname, portstr, &hints, &host->ai); in krb5_krbhst_get_addrinfo()
414 ret = getaddrinfo(hostname, portstr, &hints, &host->ai); in krb5_krbhst_get_addrinfo()
499 char portstr[NI_MAXSERV]; in fallback_get_hosts() local
523 snprintf(portstr, sizeof(portstr), "%d", port); in fallback_get_hosts()
524 ret = getaddrinfo(host, portstr, &hints, &ai); in fallback_get_hosts()
Dsend_to_kdc.c270 char portstr[NI_MAXSERV]; in send_via_proxy() local
283 snprintf (portstr, sizeof(portstr), "%d", in send_via_proxy()
285 ret = getaddrinfo (proxy, portstr, &hints, &ai); in send_via_proxy()
/freebsd-12-stable/crypto/heimdal/appl/rsh/
Drshd.c920 char portstr[NI_MAXSERV]; in main() local
938 snprintf(portstr, sizeof(portstr), "%d", 545); in main()
939 error = getaddrinfo(NULL, portstr, &hints, &ai); in main()
946 snprintf(portstr, sizeof(portstr), "%d", 544); in main()
947 error = getaddrinfo(NULL, portstr, &hints, &ai); in main()
957 snprintf(portstr, sizeof(portstr), "%d", 514); in main()
958 error = getaddrinfo(NULL, portstr, &hints, &ai); in main()
/freebsd-12-stable/crypto/openssh/
Dsshconnect.h40 char *portstr; member
60 "p", conn_info->portstr, \
Dreadconf.h227 const char *portstr, const char *user);
Dreadconf.c359 ssh_connection_hash(const char *thishost, const char *host, const char *portstr, in ssh_connection_hash() argument
368 ssh_digest_update(md, portstr, strlen(portstr)) < 0 || in ssh_connection_hash()
602 char thishost[NI_MAXHOST], shorthost[NI_MAXHOST], portstr[NI_MAXSERV]; in match_cfg_line() local
702 snprintf(portstr, sizeof(portstr), "%d", port); in match_cfg_line()
706 portstr, ruser); in match_cfg_line()
718 "p", portstr, in match_cfg_line()
Dssh.c619 free(cinfo->portstr); in ssh_conn_info_free()
1386 xasprintf(&cinfo->portstr, "%d", options.port); in main()
1392 cinfo->portstr, options.user); in main()
/freebsd-12-stable/crypto/heimdal/appl/kf/
Dkf.c290 char portstr[NI_MAXSERV]; in doit() local
296 snprintf (portstr, sizeof(portstr), "%u", ntohs(port)); in doit()
298 error = getaddrinfo (hostname, portstr, &hints, &ai); in doit()
/freebsd-12-stable/lib/libc/tests/resolv/
Dresolv_test.c97 char portstr[6], buf[1024], hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; in resolv_getaddrinfo() local
101 snprintf(portstr, sizeof(portstr), "%d", port); in resolv_getaddrinfo()
106 error = getaddrinfo(host, portstr, &hints, &res); in resolv_getaddrinfo()
/freebsd-12-stable/sbin/hastd/
Dproto_tcp.c104 char iporhost[MAXHOSTNAMELEN], portstr[6]; in tcp_addr() local
159 (void)snprintf(portstr, sizeof(portstr), "%jd", (intmax_t)port); in tcp_addr()
177 error = getaddrinfo(iporhost, portstr, &hints, &res); in tcp_addr()
180 portstr, gai_strerror(error)); in tcp_addr()
/freebsd-12-stable/crypto/heimdal/kdc/
Dhprop.c289 char *port, portstr[NI_MAXSERV]; in propagate_database() local
294 snprintf(portstr, sizeof(portstr), "%u", in propagate_database()
297 port = portstr; in propagate_database()
/freebsd-12-stable/contrib/openbsm/bin/auditdistd/
Dproto_tcp.c107 char iporhost[MAXHOSTNAMELEN], portstr[6]; in tcp_addr() local
162 (void)snprintf(portstr, sizeof(portstr), "%jd", (intmax_t)port); in tcp_addr()
180 error = getaddrinfo(iporhost, portstr, &hints, &res); in tcp_addr()
183 portstr, gai_strerror(error)); in tcp_addr()
/freebsd-12-stable/sbin/setkey/
Dparse.y124 %type <val> PL_REQUESTS portstr key_string
529 …: SPDADD ipaddropts STRING prefix portstr STRING prefix portstr upper_spec upper_misc_spec policy_…
571 …: SPDDELETE ipaddropts STRING prefix portstr STRING prefix portstr upper_spec upper_misc_spec poli…
674 portstr
/freebsd-12-stable/crypto/heimdal/lib/kadm5/
Dinit_c.c415 char portstr[NI_MAXSERV]; in kadm_connect() local
424 snprintf (portstr, sizeof(portstr), "%u", ntohs(ctx->kadmind_port)); in kadm_connect()
431 error = getaddrinfo (hostname, portstr, &hints, &ai); in kadm_connect()
/freebsd-12-stable/crypto/heimdal/appl/push/
Dpush.c101 char portstr[NI_MAXSERV]; in do_connect() local
107 snprintf (portstr, sizeof(portstr), "%u", ntohs(port)); in do_connect()
109 error = getaddrinfo (hostname, portstr, &hints, &ai); in do_connect()
/freebsd-12-stable/release/picobsd/tinyware/ns/
Dns.c94 char portstr[7]; in sock_ntop() local
121 snprintf(portstr, sizeof(portstr), ".%d", in sock_ntop()
123 strcat(str, portstr); in sock_ntop()
/freebsd-12-stable/crypto/heimdal/appl/telnet/telnet/
Dcommands.c2159 char portstr[NI_MAXSERV]; in tn() local
2166 snprintf (portstr, sizeof(portstr), "%u", ntohs(port)); in tn()
2168 error = getaddrinfo (hostname, portstr, &hints, &ai); in tn()
/freebsd-12-stable/crypto/heimdal/appl/ftp/ftp/
Dftp.c62 char portstr[NI_MAXSERV]; in hookup() local
71 snprintf (portstr, sizeof(portstr), "%u", ntohs(port)); in hookup()
73 error = getaddrinfo (host, portstr, &hints, &ai); in hookup()
/freebsd-12-stable/contrib/unbound/services/
Drpz.c1566 char ip[128], txt[512], portstr[32]; in log_rpz_apply() local
1590 snprintf(portstr, sizeof(portstr), "@%u", (unsigned)port); in log_rpz_apply()
1596 (ip[0]?ip:""), (ip[0]?portstr:"")); in log_rpz_apply()