Home
last modified time | relevance | path

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

/titanic_52/usr/src/common/iscsit/
H A Discsit_common.c87 char *port_str; in it_common_convert_sa() local
113 port_str = strchr(addr_str, ']'); in it_common_convert_sa()
114 if (!port_str) { in it_common_convert_sa()
121 *port_str = '\0'; in it_common_convert_sa()
122 port_str++; in it_common_convert_sa()
124 if (*port_str == ':') { in it_common_convert_sa()
126 port_str++; in it_common_convert_sa()
127 } else if (*port_str == '\0') { in it_common_convert_sa()
129 port_str = NULL; in it_common_convert_sa()
136 port_str in it_common_convert_sa()
[all...]
/titanic_52/usr/src/lib/auditd_plugins/remote/
H A Daudit_remote.c207 char *port_str; in parsehosts() local
229 port_str = NULL; in parsehosts()
248 if (port_str == NULL) { in parsehosts()
249 port_str = hpm; in parsehosts()
301 port_str = trim_me(port_str); in parsehosts()
302 if (port_str == NULL || *port_str == '\0') { in parsehosts()
314 port = atoi(port_str); in parsehosts()
/titanic_52/usr/src/cmd/svc/shell/
H A Dipf_include.sh461 port_str=`echo "$1" | sed -e 's/ //g; s/\\\//g; s/.*://' 2>/dev/null`
462 [ -z "$port_str" ] && return 1
464 echo $port_str | grep "-" >/dev/null
466 echo $port_str | grep '^[0-9]\{1,5\}-[0-9]\{1,5\}$' >/dev/null || \
468 ports=`echo $port_str | ( IFS=- read a b ; \
477 # port_str is a single port, verify and return it.
479 echo "$port_str" | grep '^[0-9]\{1,5\}$' >/dev/null || return 1
480 [ $port_str -gt 65535 ] && return 1
481 echo "$port_str"
/titanic_52/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_services.c68 char host_str[MAX_LEN_LIST_ENTRY] = "", proto_str[PROTOCOL_STR_LEN + 1] = "", port_str[PORT_STR_LEN + 1] = ""; in process_host_list() local
98 strncpy (port_str, pchr + 1, PORT_STR_LEN); in process_host_list()
99 if (!strtol(port_str, NULL, 10)) /* Not a valid number */ in process_host_list()
100 port_str[0] = '\0'; in process_host_list()
102 port_str[0] = '\0'; in process_host_list()
106 port_str[0] = '\0'; in process_host_list()
115 if (port_str[0] == '\0') in process_host_list()
116 sprintf (port_str, "%d", PORT_DEFAULT_KDC); in process_host_list()
127 if (port_str[0] == '\0') in process_host_list()
128 sprintf (port_str, " in process_host_list()
[all...]
/titanic_52/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_sg.c171 char port_str[INET6_ADDRSTRLEN]; in ilbadm_list_sg_srv() local
211 *port_str = '\0'; in ilbadm_list_sg_srv()
213 (void) sprintf(port_str, ":%d-%d", h_minport, h_maxport); in ilbadm_list_sg_srv()
215 (void) sprintf(port_str, ":%d", h_minport); in ilbadm_list_sg_srv()
218 sd->sd_srvID?sd->sd_srvID:"(null)", ip_str, port_str); in ilbadm_list_sg_srv()
/titanic_52/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_ioctl.c502 *port_str, in iscsi_create_sendtgts_list() local
543 &port_str, &tpgt_str) == B_FALSE) { in iscsi_create_sendtgts_list()
584 if (port_str != NULL) { in iscsi_create_sendtgts_list()
585 (void) ddi_strtol(port_str, NULL, 0, &result); in iscsi_create_sendtgts_list()
H A Discsi_login.c1979 char *addr_str, *port_str, *tpgt_str; in iscsi_update_address() local
1991 &port_str, &tpgt_str) == B_FALSE) { in iscsi_update_address()
2001 /* convert port_str */ in iscsi_update_address()
2002 if (port_str != NULL) { in iscsi_update_address()
2003 (void) ddi_strtoul(port_str, NULL, 0, &tmp); in iscsi_update_address()
/titanic_52/usr/src/cmd/idmap/idmapd/
H A Didmap_config.c375 char port_str[8]; in get_val_ds() local
494 (void) snprintf(port_str, sizeof (port_str), in get_val_ds()
497 err = getaddrinfo(host, port_str, &hints, &ai); in get_val_ds()
/titanic_52/usr/src/cmd/iscsiadm/
H A Discsiadm_main.c5051 char port_str[64]; in parseAddress() local
5074 (void) strlcpy(port_str, close_bracket_pos, 64); in parseAddress()
5075 tmp_port = strtol(port_str, &errchr, 10); in parseAddress()
5119 (void) strlcpy(port_str, colon_pos, 64); in parseAddress()
5120 tmp_port = strtol(port_str, &errchr, 10); in parseAddress()
/titanic_52/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipsecconf.c3410 parse_port(int type, char *port_str, ips_conf_t *conf) in parse_port() argument
3416 sent = getservbyname(port_str, NULL); in parse_port()
3418 ret = parse_int(port_str); in parse_port()
/titanic_52/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/
H A Dipqosconf.c4657 * reads either a port service, or a port number from port_str and assigns
4662 readport(char *port_str, uint16_t *port) in readport() argument
4668 IPQOSCDBG1(L1, "In readport: string: %s\n", port_str); in readport()
4671 sent = getservbyname(port_str, NULL); in readport()
4675 if (readuint16(port_str, port, &tmp) != IPQOS_CONF_SUCCESS || in readport()