/titanic_50/usr/src/lib/libsocket/socket/ |
H A D | socket.c | 56 _socket(int family, int type, int protocol) in _socket() argument 58 return (_socket_create(family, type, protocol, SOV_DEFAULT)); in _socket() 65 _socket_bsd(int family, int type, int protocol) in _socket_bsd() argument 67 return (_socket_create(family, type, protocol, SOV_SOCKBSD)); in _socket_bsd() 71 _socket_svr4(int family, int type, int protocol) in _socket_svr4() argument 73 return (_socket_create(family, type, protocol, SOV_SOCKSTREAM)); in _socket_svr4() 77 __xnet_socket(int family, int type, int protocol) in __xnet_socket() argument 79 return (_socket_create(family, type, protocol, SOV_XPG4_2)); in __xnet_socket() 93 _socket_create(int family, int type, int protocol, int version) in _socket_create() argument 107 fd = _so_socket(family, type, protocol, NULL, version); in _socket_create() [all …]
|
H A D | socketpair.c | 59 _socketpair(int family, int type, int protocol, int sv[2]) in _socketpair() argument 61 return (_socketpair_create(family, type, protocol, sv, SOV_DEFAULT)); in _socketpair() 68 _socketpair_bsd(int family, int type, int protocol, int sv[2]) in _socketpair_bsd() argument 70 return (_socketpair_create(family, type, protocol, sv, SOV_SOCKBSD)); in _socketpair_bsd() 74 _socketpair_svr4(int family, int type, int protocol, int sv[2]) in _socketpair_svr4() argument 76 return (_socketpair_create(family, type, protocol, sv, in _socketpair_svr4() 81 __xnet_socketpair(int family, int type, int protocol, int sv[2]) in __xnet_socketpair() argument 83 return (_socketpair_create(family, type, protocol, sv, in __xnet_socketpair() 88 _socketpair_create(int family, int type, int protocol, int sv[2], int version) in _socketpair_create() argument 97 fd1 = _socket_create(family, type, protocol, version); in _socketpair_create() [all …]
|
/titanic_50/usr/src/lib/nsswitch/ldap/common/ |
H A D | getservent.c | 118 ns_ldap_attr_t *names = NULL, *protocol = NULL; in _nss_ldap_services2str() local 182 protocol = __ns_ldap_getAttrStruct(result->entry, _S_PROTOCOL); in _nss_ldap_services2str() 183 if (protocol == NULL || protocol->attrvalue == NULL) { in _nss_ldap_services2str() 193 protoval = protocol->attrvalue[cookie->index++]; in _nss_ldap_services2str() 194 } else if (protocol->value_count > 1 && be->setcalled == 0 && in _nss_ldap_services2str() 203 for (k = 0; k < protocol->value_count; k++) { in _nss_ldap_services2str() 204 if (protocol->attrvalue[k] == NULL) { in _nss_ldap_services2str() 208 if (strcmp(protocol->attrvalue[k], in _nss_ldap_services2str() 210 protoval = protocol->attrvalue[k]; in _nss_ldap_services2str() 227 protoval = protocol->attrvalue[0]; in _nss_ldap_services2str() [all …]
|
H A D | getprotoent.c | 50 char *protocol; member 97 get_alias(char *protocol) { in get_alias() argument 101 if (strncmp(protocol, "ip", 2) == 0) { in get_alias() 102 for (i = 0; ip_aliases[i].protocol != NULL; i++) { in get_alias() 103 if (strcmp(protocol, ip_aliases[i].protocol) == 0) in get_alias() 109 for (cp = protocol; *cp; cp++) in get_alias() 112 return (protocol); in get_alias() 115 for (cp = protocol; *cp; cp++) in get_alias() 118 return (protocol); in get_alias()
|
/titanic_50/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 68 has_protocol(sa_group_t group, char *protocol) in has_protocol() argument 73 optionset = sa_get_optionset(group, protocol); in has_protocol() 457 notify_or_enable_share(sa_share_t share, char *protocol) in notify_or_enable_share() argument 489 (protocol != NULL && strcmp(groupproto, protocol) != 0)) { in notify_or_enable_share() 1066 check_valid_group(sa_group_t group, char *groupname, char *protocol) in check_valid_group() argument 1069 if (protocol != NULL) { in check_valid_group() 1070 if (has_protocol(group, protocol)) { in check_valid_group() 1074 protocol); in check_valid_group() 1077 strcmp(protocol, "nfs") != 0) { in check_valid_group() 1101 enforce_featureset(sa_group_t group, char *protocol, boolean_t dryrun, in enforce_featureset() argument [all …]
|
/titanic_50/usr/src/lib/libc/port/threads/ |
H A D | pthr_mutex.c | 45 ap->protocol = PTHREAD_PRIO_NONE; in pthread_mutexattr_init() 137 pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol) in pthread_mutexattr_setprotocol() argument 143 if (protocol != PTHREAD_PRIO_NONE && in pthread_mutexattr_setprotocol() 144 protocol != PTHREAD_PRIO_INHERIT && in pthread_mutexattr_setprotocol() 145 protocol != PTHREAD_PRIO_PROTECT) in pthread_mutexattr_setprotocol() 147 ap->protocol = protocol; in pthread_mutexattr_setprotocol() 156 pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr, int *protocol) in pthread_mutexattr_getprotocol() argument 161 protocol == NULL) in pthread_mutexattr_getprotocol() 163 *protocol = ap->protocol; in pthread_mutexattr_getprotocol() 221 type = ap->pshared | ap->type | ap->protocol | ap->robustness; in pthread_mutex_init() [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/etc/ |
H A D | protocols | 29 ip 0 IP # internet protocol, pseudo protocol number 30 icmp 1 ICMP # internet control message protocol 32 ggp 3 GGP # gateway-gateway protocol 34 tcp 6 TCP # transmission control protocol 36 egp 8 EGP # exterior gateway protocol 38 pup 12 PUP # PARC universal packet protocol 39 udp 17 UDP # user datagram protocol 41 hmp 20 HMP # host monitoring protocol 43 rdp 27 RDP # "reliable datagram" protocol 66 ipv6-icmp 58 IPv6-ICMP # IPv6 internet control message protocol
|
/titanic_50/usr/src/lib/libshell/common/scripts/ |
H A D | rssread.sh | 58 typeset protocol 139 _.protocol="${1%://*}" 179 if [[ "${_.protocol}" == "https" ]] ; then 208 if [[ "${_.protocol}" == "https" ]] ; then 220 if [[ "${_.protocol}" == "file" ]] ; then 223 elif [[ "${_.protocol}" == ~(Elr)http(|s) ]] ; then 229 case "${_.protocol}" in 238 printmsg "protocol=${_.protocol} port=${_.port} host=${_.host} path=${_.path}" 241 [[ "${_.protocol}" != "" ]] || { print -u2 -f "%s: protocol not set.\n" "$0" ; return 1 ; }
|
H A D | crawlsrccomments.sh | 712 typeset protocol="${1%://*}" 715 if [[ "${protocol}" == "file" ]] ; then 718 elif [[ "${protocol}" == ~(Elr)http(|s) ]] ; then 729 case "${protocol}" in 732 *) port="$(getent services "${protocol}" | sed 's/[^0-9]*//;s/\/.*//')" ;; 738 printmsg "protocol=${protocol} port=${port} host=${host} path=${path}" 741 [[ "${protocol}" != "" ]] || { print -u2 -f "%s: protocol not set.\n" "$0" ; return 1 ; } 747 if [[ "${protocol}" == "https" ]] ; then
|
/titanic_50/usr/src/uts/common/fs/sockfs/ |
H A D | sockparams.c | 187 sockparams_create(int family, int type, int protocol, char *modname, in sockparams_create() argument 212 sp->sp_protocol = protocol; in sockparams_create() 361 sockparams_find(list_t *list, int family, int type, int protocol, in sockparams_find() argument 368 if (sp->sp_protocol == protocol) { in sockparams_find() 401 sockparams_hold_ephemeral(int family, int type, int protocol, in sockparams_hold_ephemeral() argument 411 sp = sockparams_find(&sp_ephem_list, family, type, protocol, in sockparams_hold_ephemeral() 436 protocol, NULL, namebuf, namelen, in sockparams_hold_ephemeral() 440 protocol, namebuf, NULL, 0, in sockparams_hold_ephemeral() 467 sp = sockparams_find(&sp_ephem_list, family, type, protocol, in sockparams_hold_ephemeral() 498 sockparams_hold_ephemeral_bydev(int family, int type, int protocol, in sockparams_hold_ephemeral_bydev() argument [all …]
|
/titanic_50/usr/src/cmd/getent/ |
H A D | dogetserv.c | 81 const char *protocol = NULL; in dogetserv() local 90 protocol = cp + 1; in dogetserv() 94 sp = getservbyport(port, protocol); in dogetserv() 96 sp = getservbyname(key, protocol); in dogetserv()
|
H A D | dogetproto.c | 72 int protocol = atoi(*list); in dogetproto() local 73 if (protocol != 0) in dogetproto() 74 pp = getprotobynumber(protocol); in dogetproto()
|
/titanic_50/usr/src/lib/libbc/libc/sys/common/ |
H A D | socket.c | 36 socket(family, type, protocol) in socket() argument 39 register int protocol; 43 if ((a = _socket_bsd(family, map[type], protocol)) == -1) {
|
H A D | socketpair.c | 36 socketpair(family, type, protocol, sv) in socketpair() argument 39 register int protocol; 44 if ((ret = _socketpair_bsd(family, map[type], protocol,
|
/titanic_50/usr/src/lib/libdladm/common/ |
H A D | flowattr.c | 144 uint8_t protocol; in do_check_protocol() local 146 protocol = dladm_str2proto(attr_val); in do_check_protocol() 148 if (protocol != 0) { in do_check_protocol() 150 fdesc->fd_protocol = protocol; in do_check_protocol() 319 dladm_proto2str(uint8_t protocol) in dladm_proto2str() argument 321 if (protocol == IPPROTO_TCP) in dladm_proto2str() 323 if (protocol == IPPROTO_UDP) in dladm_proto2str() 325 if (protocol == IPPROTO_SCTP) in dladm_proto2str() 327 if (protocol == IPPROTO_ICMPV6) in dladm_proto2str() 329 if (protocol == IPPROTO_ICMP) in dladm_proto2str()
|
/titanic_50/usr/src/cmd/tcpd/ |
H A D | inetcf.c | 63 char *protocol; local 111 protocol = strtok((char *) 0, whitespace); 153 inet_chk(protocol, path, arg0, arg1); 162 static void inet_chk(protocol, path, arg0, arg1) in inet_chk() argument 163 char *protocol; in inet_chk() 265 if (wrap_status == WR_YES && STR_EQ(protocol, "rpc/tcp"))
|
/titanic_50/usr/src/lib/libnsl/rpc/ |
H A D | pmap_clnt.c | 63 pmap_set(rpcprog_t program, rpcvers_t version, rpcprot_t protocol, in pmap_set() argument 71 if ((protocol != IPPROTO_UDP) && (protocol != IPPROTO_TCP)) in pmap_set() 73 nconf = __rpc_getconfip(protocol == IPPROTO_UDP ? "udp" : "tcp"); in pmap_set() 129 rpcvers_t version, rpcprot_t protocol) in pmap_getport() argument 142 parms.pm_prot = protocol; in pmap_getport()
|
/titanic_50/usr/src/cmd/lp/model/netpr/ |
H A D | netpr.c | 232 job_data->protocol = BSD; in main() 234 job_data->protocol = TCP; in main() 239 job_data->protocol); in main() 345 if (job_data->protocol == BSD) { in main() 361 if (job_data->protocol == BSD) { in main() 378 (job_data->protocol == TCP && tcp_port == NULL)) { in main() 398 if (job_data->protocol == BSD) { in main() 433 if (job_data->protocol == BSD) { in main()
|
/titanic_50/usr/src/uts/common/inet/tcp/ |
H A D | tcp_cluster.c | 40 void (*cl_inet_listen)(netstackid_t stack_id, uint8_t protocol, 43 void (*cl_inet_unlisten)(netstackid_t stack_id, uint8_t protocol, 47 int (*cl_inet_connect2)(netstackid_t stack_id, uint8_t protocol, 53 void (*cl_inet_disconnect)(netstackid_t stack_id, uint8_t protocol,
|
/titanic_50/usr/src/uts/common/io/hxge/ |
H A D | hxge_pfc.h | 134 uint32_t protocol:8; /* 87:80 */ member 144 uint32_t protocol:8; /* 87:80 */ 159 uint32_t protocol:8; /* 87:80 */ member 169 uint32_t protocol:8; /* 87:80 */ 239 #define ip4_proto_key key.ipv4.protocol 248 #define ip4_proto_mask mask.ipv4.protocol 256 #define ip6_proto_key key.ipv6.protocol 263 #define ip6_proto_mask mask.ipv6.protocol
|
/titanic_50/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | DoPrinterMod.java | 143 String protocol = null; in modifyLocal() local 183 protocol = p.getProtocol(); in modifyLocal() 188 if (((protocol == null) && (curr.getProtocol() == "uri")) || in modifyLocal() 189 ((protocol != null) && (protocol.equals("uri")))) { in modifyLocal() 193 Debug.message("SVR:DoPrinterMod:protocol: " + protocol); in modifyLocal() 277 (protocol == null) && in modifyLocal() 319 (protocol == null) && in modifyLocal() 394 protocol = null; in modifyLocal() 396 if (protocol != null) { in modifyLocal() 423 } else if (protocol != null) { in modifyLocal() [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/inetconv/ |
H A D | inetconv.c | 81 char *protocol; member 316 len = strlen(iconf->service) + strlen(iconf->protocol) + in servicename() 329 proto = iconf->protocol; in servicename() 330 if (iconf->isrpc && (strcmp(iconf->protocol, "rpc/*") == 0)) in servicename() 348 is_v6only(char *protocol) in is_v6only() argument 351 if ((strcmp(protocol, SOCKET_PROTO_TCP6_ONLY) == 0) || in is_v6only() 352 (strcmp(protocol, SOCKET_PROTO_UDP6_ONLY) == 0)) in is_v6only() 387 char *proto = iconf->protocol; in valid_basic_properties() 441 char *proto = iconf->protocol; in valid_inetconfent() 444 if (strncmp(iconf->protocol, "rpc/", 4) == 0) { in valid_inetconfent() [all …]
|
/titanic_50/usr/src/uts/common/inet/ip/ |
H A D | ip6_input.c | 1630 ip_fanout_tx_v6(mblk_t *mp, ip6_t *ip6h, uint8_t protocol, uint_t ip_hdr_length, in ip_fanout_tx_v6() argument 1654 switch (protocol) { in ip_fanout_tx_v6() 1672 zoneid = tsol_mlp_findzone(protocol, lport); in ip_fanout_tx_v6() 1700 ip_input_cksum_err_v6(uint8_t protocol, uint16_t hck_flags, ill_t *ill) in ip_input_cksum_err_v6() argument 1704 switch (protocol) { in ip_input_cksum_err_v6() 1740 uint8_t protocol = ira->ira_protocol; in ip_input_cksum_pseudo_v6() local 1745 switch (protocol) { in ip_input_cksum_pseudo_v6() 1802 uint8_t protocol = ira->ira_protocol; in ip_input_sw_cksum_v6() local 1807 ASSERT(protocol == IPPROTO_TCP || protocol == IPPROTO_UDP || in ip_input_sw_cksum_v6() 1808 protocol == IPPROTO_ICMPV6); in ip_input_sw_cksum_v6() [all …]
|
/titanic_50/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_sdp.c | 74 socksdp_create(struct sockparams *sp, int family, int type, int protocol, in socksdp_create() argument 81 family, protocol, type)); in socksdp_create() 110 sonode_init(so, sp, family, type, protocol, &sosdp_sonodeops); in socksdp_create()
|
/titanic_50/usr/src/lib/libsocket/common/ |
H A D | llib-lsocket | 71 int socket(int domain, int type, int protocol); 72 int _socket(int domain, int type, int protocol); 73 int _socket_bsd(int family, int type, int protocol); 74 int __xnet_socket(int family, int type, int protocol); 77 int socketpair(int domain, int type, int protocol, int sv[]); 78 int _socketpair(int domain, int type, int protocol, int *sv); 79 int _socketpair_bsd(int domain, int type, int protocol, int *sv); 80 int __xnet_socketpair(int domain, int type, int protocol, int *sv);
|