Home
last modified time | relevance | path

Searched refs:port_str (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/crypto/heimdal/appl/test/
H A Dcommon.c40 static char *port_str; variable
49 { "port", 'p', arg_string, &port_str, "port to listen to", "port" },
90 if(port_str){ in common_setup()
91 struct servent *s = roken_getservbyname(port_str, "tcp"); in common_setup()
97 port = strtol (port_str, &ptr, 10); in common_setup()
98 if (port == 0 && ptr == port_str) in common_setup()
99 errx (1, "Bad port `%s'", port_str); in common_setup()
H A Dnt_gss_server.c52 static char *port_str; variable
57 { "port", 'p', arg_string, &port_str, "port to listen to", "port" },
209 if(port_str){ in common_setup()
210 struct servent *s = roken_getservbyname(port_str, "tcp"); in common_setup()
216 port = strtol (port_str, &ptr, 10); in common_setup()
217 if (port == 0 && ptr == port_str) in common_setup()
218 errx (1, "Bad port `%s'", port_str); in common_setup()
H A Dhttp_client.c116 static char *port_str = "http"; variable
121 { "port", 'p', arg_string, &port_str, "port to connect to", "port" },
202 s = do_connect(host, port_str); in http_query()
/freebsd/crypto/heimdal/kadmin/
H A Dkadmind.c45 static char *port_str; variable
71 { "ports", 'p', arg_string, &port_str,
170 if(port_str == NULL) in main()
174 debug_port = htons(atoi(port_str)); in main()
179 start_server(context, port_str); in main()
193 start_server(context, port_str); in main()
H A Dkadm_conn.c225 start_server(krb5_context contextp, const char *port_str) in start_server() argument
234 if (port_str == NULL) in start_server()
235 port_str = "+"; in start_server()
237 parse_ports(contextp, port_str); in start_server()
/freebsd/crypto/heimdal/appl/kf/
H A Dkfd.c42 static char *port_str; variable
48 { "port", 'p', arg_string, &port_str, "port to listen to", "port" },
80 if(port_str){ in server_setup()
81 struct servent *s = roken_getservbyname(port_str, "tcp"); in server_setup()
87 port = strtol (port_str, &ptr, 10); in server_setup()
88 if (port == 0 && ptr == port_str) in server_setup()
89 errx (1, "Bad port `%s'", port_str); in server_setup()
H A Dkf.c40 static char *port_str; variable
47 { "port", 'p', arg_string, &port_str, "port to connect to", "port" },
95 if(port_str) { in client_setup()
96 struct servent *s = roken_getservbyname(port_str, "tcp"); in client_setup()
102 port = strtol (port_str, &ptr, 10); in client_setup()
103 if (port == 0 && ptr == port_str) in client_setup()
104 errx (1, "Bad port `%s'", port_str); in client_setup()
/freebsd/crypto/heimdal/kdc/
H A Dconfig.c79 { "ports", 'P', arg_string, rk_UNCONST(&port_str),
216 if(port_str == NULL){ in configure()
219 port_str = strdup(p); in configure()
269 if (port_str == NULL) in configure()
270 port_str = "+"; in configure()
H A Dkdc_locl.h52 extern const char *port_str;
/freebsd/crypto/heimdal/lib/kadm5/
H A Dipropd_master.c85 make_listen_socket (krb5_context context, const char *port_str) in make_listen_socket() argument
98 if (port_str) { in make_listen_socket()
100 port_str, "tcp", in make_listen_socket()
106 port = strtol (port_str, &ptr, 10); in make_listen_socket()
107 if (port == 0 && ptr == port_str) in make_listen_socket()
108 krb5_errx (context, 1, "bad port `%s'", port_str); in make_listen_socket()
123 make_listen6_socket (krb5_context context, const char *port_str) in make_listen6_socket() argument
136 if (port_str) { in make_listen6_socket()
138 port_str, "tcp", in make_listen6_socket()
144 port = strtol (port_str, &ptr, 10); in make_listen6_socket()
[all …]
H A Dipropd_slave.c48 const char *port_str) in connect_to_master() argument
59 if (port_str == NULL) { in connect_to_master()
61 port_str = port; in connect_to_master()
64 error = getaddrinfo (master, port_str, &hints, &ai); in connect_to_master()
458 static char *port_str; variable
470 { "port", 0, arg_string, &port_str,
623 master_fd = connect_to_master (context, master, port_str); in main()
/freebsd/crypto/heimdal/appl/push/
H A Dpush.c49 static char *port_str; variable
70 { "port", 'p', arg_string, &port_str, "Use this port",
754 if (port_str) { in main()
755 struct servent *s = roken_getservbyname (port_str, "tcp"); in main()
762 port = strtol (port_str, &ptr, 10); in main()
763 if (port == 0 && ptr == port_str) in main()
764 errx (1, "Bad port `%s'", port_str); in main()
/freebsd/crypto/heimdal/kpasswd/
H A Dkpasswdd.c764 static char *port_str; variable
782 { "port", 'p', arg_string, &port_str, "port", NULL },
826 if (port_str != NULL) { in main()
827 struct servent *s = roken_getservbyname (port_str, "udp"); in main()
834 port = strtol (port_str, &ptr, 10); in main()
835 if (port == 0 && ptr == port_str) in main()
836 krb5_errx (context, 1, "bad port `%s'", port_str); in main()
/freebsd/crypto/heimdal/appl/rsh/
H A Drsh.c62 static char *port_str; variable
807 { "port", 'p', arg_string, &port_str, "Use this port",
985 if(port_str == NULL) { in main()
990 error = getaddrinfo(host, port_str, &hints, &ai); in main()
1012 if(port_str == NULL) { in main()
1017 error = getaddrinfo(host, port_str, &hints, &ai); in main()
H A Drshd.c66 static char *port_str; variable
855 { "port", 'p', arg_string, &port_str, "Use this port",
927 if(port_str != NULL) { in main()
928 error = getaddrinfo (NULL, port_str, &hints, &ai); in main()
/freebsd/sys/netinet/libalias/
H A Dalias_smedia.c234 const char *port_str) in alias_rtsp_out() argument
265 while (port_dlen > (int)strlen(port_str)) { in alias_rtsp_out()
267 pos = search_string(port_data, port_dlen, port_str); in alias_rtsp_out()
/freebsd/usr.bin/ctlstat/
H A Dctlstat.c552 char *port_str = NULL; in ctlstat_prometheus() local
561 port_str = (char *)realloc(port_str, port_len); in ctlstat_prometheus()
565 list.lun_xml = port_str; in ctlstat_prometheus()
583 retval = XML_Parse(parser, port_str, strlen(port_str), 1); in ctlstat_prometheus()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dctrl_iface_udp.c398 char port_str[40]; local
467 os_snprintf(port_str, sizeof(port_str), "udp:%d", port);
469 wpa_s->conf->ctrl_interface = os_strdup(port_str);
/freebsd/usr.sbin/rpc.statd/
H A Dstatd.c72 static void complete_service(struct netconfig *nconf, char *port_str);
522 complete_service(struct netconfig *nconf, char *port_str) in complete_service() argument
588 if ((aicode = getaddrinfo(NULL, port_str, &hints, in complete_service()
/freebsd/crypto/heimdal/appl/gssmask/
H A Dgssmask.c1166 static char *port_str; variable
1177 { "port", 'p', arg_string, &port_str, "Use this port",
1220 if (port_str) { in main()
1223 port = strtol (port_str, &ptr, 10); in main()
1224 if (port == 0 && ptr == port_str) in main()
1225 errx (1, "Bad port `%s'", port_str); in main()
/freebsd/usr.sbin/rpc.lockd/
H A Dlockd.c101 static void complete_service(struct netconfig *nconf, char *port_str);
723 complete_service(struct netconfig *nconf, char *port_str) in complete_service() argument
801 if ((aicode = getaddrinfo(NULL, port_str, &hints, in complete_service()
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_qos_parser_y.y1192 char * port_str; variable
1204 port_str = strrchr(tmp_str, '/');
1205 if (!port_str || (strlen(port_str) < 3) ||
1206 (port_str[1] != 'p' && port_str[1] != 'P')) {
1214 if (!(port_num = strtoul(&port_str[2],NULL,0))) {
1224 port_str[0] = '\0';
/freebsd/lib/libtacplus/
H A Dtaclib.c814 char *port_str; in tac_config() local
839 port_str = strsep(&res, ":"); in tac_config()
840 if (port_str != NULL) { in tac_config()
841 port = strtoul(port_str, &end, 10); in tac_config()
842 if (port_str[0] == '\0' || *end != '\0') { in tac_config()
/freebsd/lib/libradius/
H A Dradlib.c522 char *port_str; in rad_config() local
602 port_str = strsep(&res, ":"); in rad_config()
603 if (port_str != NULL) { in rad_config()
604 port = strtoul(port_str, &end, 10); in rad_config()
/freebsd/usr.sbin/ctladm/
H A Dctladm.c3677 char *port_str = NULL; in cctl_portlist()
3720 port_str = (char *)realloc(port_str, port_len); in cctl_portlist()
3725 list.lun_xml = port_str; in cctl_portlist()
3742 printf("%s", port_str); in cctl_portlist()
3757 retval = XML_Parse(parser, port_str, strlen(port_str), 1); in cctl_portlist()
3812 free(port_str); in cctl_portlist()
3678 char *port_str = NULL; cctl_portlist() local

12