/illumos-gate/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 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() 126 if (_s_netconfig_path(family, type, protocol, in _socket_create() [all …]
|
H A D | socketpair.c | 57 _socketpair(int family, int type, int protocol, int sv[2]) in _socketpair() argument 59 return (_socketpair_create(family, type, protocol, sv, SOV_DEFAULT)); in _socketpair() 66 _socketpair_bsd(int family, int type, int protocol, int sv[2]) in _socketpair_bsd() argument 68 return (_socketpair_create(family, type, protocol, sv, SOV_SOCKBSD)); in _socketpair_bsd() 72 _socketpair_svr4(int family, int type, int protocol, int sv[2]) in _socketpair_svr4() argument 74 return (_socketpair_create(family, type, protocol, sv, SOV_SOCKSTREAM)); in _socketpair_svr4() 78 __xnet_socketpair(int family, int type, int protocol, int sv[2]) in __xnet_socketpair() argument 80 return (_socketpair_create(family, type, protocol, sv, SOV_XPG4_2)); in __xnet_socketpair() 84 _socketpair_create(int family, int type, int protocol, int sv[2], int version) in _socketpair_create() argument 93 fd1 = _socket_create(family, type, protocol, version); in _socketpair_create() [all …]
|
H A D | _soutil.c | 122 _s_netconfig_path(int family, int type, int protocol, in _s_netconfig_path() argument 129 net = _s_match_netconf(family, type, protocol, &nethandle); in _s_netconfig_path() 136 *prototype = protocol; in _s_netconfig_path()
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getservent.c | 181 if (protocol == NULL || protocol->attrvalue == NULL) { in _nss_ldap_services2str() 202 if (protocol->attrvalue[k] == NULL) { in _nss_ldap_services2str() 206 if (strcmp(protocol->attrvalue[k], in _nss_ldap_services2str() 208 protoval = protocol->attrvalue[k]; in _nss_ldap_services2str() 225 protoval = protocol->attrvalue[0]; in _nss_ldap_services2str() 253 protocol->value_count > 1) { in _nss_ldap_services2str() 284 cookie->index >= protocol->value_count) { in _nss_ldap_services2str() 322 char protocol[SEARCHFILTERLEN]; in getbyname() local 340 if (_ldap_filter_name(protocol, proto, sizeof (protocol)) != 0) in getbyname() 378 char protocol[SEARCHFILTERLEN]; in getbyport() local [all …]
|
H A D | getprotoent.c | 48 char *protocol; member 95 get_alias(char *protocol) { in get_alias() argument 99 if (strncmp(protocol, "ip", 2) == 0) { in get_alias() 100 for (i = 0; ip_aliases[i].protocol != NULL; i++) { in get_alias() 101 if (strcmp(protocol, ip_aliases[i].protocol) == 0) in get_alias() 107 for (cp = protocol; *cp; cp++) in get_alias() 110 return (protocol); in get_alias() 113 for (cp = protocol; *cp; cp++) in get_alias() 116 return (protocol); in get_alias()
|
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 494 (protocol != NULL && strcmp(groupproto, protocol) != 0)) { in notify_or_enable_share() 1079 protocol); in check_valid_group() 1363 protocol); in sa_create() 1746 protocol); in sa_list() 1753 protocol); in sa_list() 1793 if (protocol == NULL || has_protocol(group, protocol)) { in sa_list() 2319 protocol); in sa_show() 2326 protocol); in sa_show() 3855 protocol); in space_set() 3922 protocol); in sa_set() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/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
|
/illumos-gate/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() 607 sockparams_delete(int family, int type, int protocol) in sockparams_delete() argument [all …]
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetserv.c | 80 const char *protocol = NULL; in dogetserv() local 89 protocol = cp + 1; in dogetserv() 93 sp = getservbyport(port, protocol); in dogetserv() 95 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()
|
/illumos-gate/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()
|
/illumos-gate/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"))
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | netpr.c | 226 job_data->protocol = BSD; in main() 228 job_data->protocol = TCP; in main() 232 syslog(LOG_DEBUG, "protocol: %d", job_data->protocol); in main() 345 if (job_data->protocol == BSD) { in main() 361 if (job_data->protocol == BSD) { in main() 377 (job_data->protocol == TCP && tcp_port == NULL)) { in main() 396 if (job_data->protocol == BSD) { in main() 431 if (job_data->protocol == BSD) { in main()
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_pfc.h | 132 uint32_t protocol:8; /* 87:80 */ member 142 uint32_t protocol:8; /* 87:80 */ 157 uint32_t protocol:8; /* 87:80 */ member 167 uint32_t protocol:8; /* 87:80 */ 237 #define ip4_proto_key key.ipv4.protocol 246 #define ip4_proto_mask mask.ipv4.protocol 254 #define ip6_proto_key key.ipv6.protocol 261 #define ip6_proto_mask mask.ipv6.protocol
|
/illumos-gate/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,
|
/illumos-gate/usr/src/boot/include/netinet/ |
H A D | udp_var.h | 153 udp_get_inpcbinfo(int protocol) in udp_get_inpcbinfo() argument 155 return (protocol == IPPROTO_UDP) ? &V_udbinfo : &V_ulitecbinfo; in udp_get_inpcbinfo() 159 udp_get_pcblist(int protocol) in udp_get_pcblist() argument 161 return (protocol == IPPROTO_UDP) ? &V_udb : &V_ulitecb; in udp_get_pcblist()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/ |
H A D | inetconv.c | 81 char *protocol; member 329 proto = iconf->protocol; in servicename() 348 is_v6only(char *protocol) in is_v6only() argument 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() 561 free(iconf->protocol); in free_inetconfent() 593 iconf->protocol = safe_strdup(cp); in line_to_inetconfent() 777 iconf->protocol, in print_manifest() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip6_input.c | 1653 switch (protocol) { in ip_fanout_tx_v6() 1703 switch (protocol) { in ip_input_cksum_err_v6() 1744 switch (protocol) { in ip_input_cksum_pseudo_v6() 1806 ASSERT(protocol == IPPROTO_TCP || protocol == IPPROTO_UDP || in ip_input_sw_cksum_v6() 1837 switch (protocol) { in ip_input_cksum_v6() 1990 uint8_t protocol; in ip_fanout_v6() local 2022 (protocol != IPPROTO_ESP && protocol != IPPROTO_AH && in ip_fanout_v6() 2023 protocol != IPPROTO_DSTOPTS && protocol != IPPROTO_ROUTING && in ip_fanout_v6() 2039 switch (protocol) { in ip_fanout_v6() 2098 switch (protocol) { in ip_fanout_v6() [all …]
|
H A D | ipclassifier.c | 814 if (protocol == IPPROTO_RSVP) in ipcl_hash_remove() 1194 switch (protocol) { in ipcl_bind_insert_v4() 1201 if (protocol == IPPROTO_UDP) { in ipcl_bind_insert_v4() 1215 if (protocol == IPPROTO_RSVP) in ipcl_bind_insert_v4() 1260 switch (protocol) { in ipcl_bind_insert_v6() 1267 if (protocol == IPPROTO_UDP) { in ipcl_bind_insert_v6() 1347 switch (protocol) { in ipcl_conn_insert_v4() 1412 if (protocol == IPPROTO_UDP) { in ipcl_conn_insert_v4() 1446 switch (protocol) { in ipcl_conn_insert_v6() 1546 switch (protocol) { in ipcl_classify_v4() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | demand.c | 117 !sifnpmode(0, protp->protocol & ~0x8000, NPMODE_QUEUE)) in demand_block() 136 !sifnpmode(0, protp->protocol & ~0x8000, NPMODE_DROP)) in demand_discard() 165 !sifnpmode(0, protp->protocol & ~0x8000, NPMODE_PASS)) in demand_unblock() 350 if (protp->protocol < 0xC000 && (protp->protocol & ~0x8000) == proto) {
|
/illumos-gate/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()
|
/illumos-gate/usr/src/lib/libwrap/ |
H A D | rfc931.c | 43 static FILE *fsocket(domain, type, protocol) in fsocket() argument 46 int protocol; 51 if ((s = socket(domain, type, protocol)) < 0) {
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | bswap-constant-folding.c | 14 static u16 protocol; variable 18 switch (protocol) { in test()
|