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

/illumos-gate/usr/src/common/iscsit/
H A Discsit_common.c87 char *port_str; local
113 port_str = strchr(addr_str, ']');
114 if (!port_str) {
121 *port_str = '\0';
122 port_str++;
124 if (*port_str == ':') {
126 port_str++;
127 } else if (*port_str == '\0') {
129 port_str = NULL;
136 port_str
[all...]
/illumos-gate/usr/src/lib/auditd_plugins/remote/
H A Daudit_remote.c207 char *port_str; local
229 port_str = NULL;
248 if (port_str == NULL) {
249 port_str = hpm;
301 port_str = trim_me(port_str);
302 if (port_str == NULL || *port_str == '\0') {
314 port = atoi(port_str);
/illumos-gate/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] = ""; local
98 strncpy (port_str, pchr + 1, PORT_STR_LEN);
99 if (!strtol(port_str, NULL, 10)) /* Not a valid number */
100 port_str[0] = '\0';
102 port_str[0] = '\0';
106 port_str[0] = '\0';
115 if (port_str[0] == '\0')
116 sprintf (port_str, "%d", PORT_DEFAULT_KDC);
127 if (port_str[0] == '\0')
128 sprintf (port_str, "
[all...]
/illumos-gate/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"
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_sg.c171 char port_str[INET6_ADDRSTRLEN]; local
211 *port_str = '\0';
213 (void) sprintf(port_str, ":%d-%d", h_minport, h_maxport);
215 (void) sprintf(port_str, ":%d", h_minport);
218 sd->sd_srvID?sd->sd_srvID:"(null)", ip_str, port_str);
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_ioctl.c502 *port_str, local
543 &port_str, &tpgt_str) == B_FALSE) {
584 if (port_str != NULL) {
585 (void) ddi_strtol(port_str, NULL, 0, &result);
H A Discsi_login.c1979 char *addr_str, *port_str, *tpgt_str; local
1991 &port_str, &tpgt_str) == B_FALSE) {
2001 /* convert port_str */
2002 if (port_str != NULL) {
2003 (void) ddi_strtoul(port_str, NULL, 0, &tmp);
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Didmap_config.c375 char port_str[8]; local
494 (void) snprintf(port_str, sizeof (port_str),
497 err = getaddrinfo(host, port_str, &hints, &ai);
/illumos-gate/usr/src/cmd/iscsiadm/
H A Discsiadm_main.c5051 char port_str[64]; local
5074 (void) strlcpy(port_str, close_bracket_pos, 64);
5075 tmp_port = strtol(port_str, &errchr, 10);
5119 (void) strlcpy(port_str, colon_pos, 64);
5120 tmp_port = strtol(port_str, &errchr, 10);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipsecconf.c3410 parse_port(int type, char *port_str, ips_conf_t *conf) argument
3416 sent = getservbyname(port_str, NULL);
3418 ret = parse_int(port_str);
/illumos-gate/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) argument
4668 IPQOSCDBG1(L1, "In readport: string: %s\n", port_str);
4671 sent = getservbyname(port_str, NULL);
4675 if (readuint16(port_str, port, &tmp) != IPQOS_CONF_SUCCESS ||

Completed in 121 milliseconds