Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 25 of 241) sorted by relevance

12345678910

/illumos-gate/usr/src/lib/libsocket/socket/
H A Dsocket.c56 _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 Dsocketpair.c59 _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 …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetservent.c183 if (protocol == NULL || protocol->attrvalue == NULL) { 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()
255 protocol->value_count > 1) { in _nss_ldap_services2str()
286 cookie->index >= protocol->value_count) { in _nss_ldap_services2str()
324 char protocol[SEARCHFILTERLEN]; in getbyname() local
342 if (_ldap_filter_name(protocol, proto, sizeof (protocol)) != 0) in getbyname()
380 char protocol[SEARCHFILTERLEN]; in getbyport() local
[all …]
H A Dgetprotoent.c50 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()
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/
H A Dcommands.c494 (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 Dpthr_mutex.c45 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 Dprotocols29 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 Dsockparams.c187 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 Ddogetserv.c80 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 Ddogetproto.c72 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 Dflowattr.c144 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 Dinetcf.c63 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 Dpmap_clnt.c63 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 Dnetpr.c226 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 Dhxge_pfc.h134 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
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_cluster.c40 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/cmd/print/printmgr/com/sun/admin/pm/server/
H A DDoPrinterMod.java143 String protocol = null; in modifyLocal() local
183 protocol = p.getProtocol(); 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()
456 if (protocol != null) in modifyLocal()
[all …]
/illumos-gate/usr/src/boot/include/netinet/
H A Dudp_var.h153 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 Dinetconv.c81 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 Dip6_input.c1653 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 Dipclassifier.c814 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 Ddemand.c117 !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 Dsockmod_sdp.c74 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 Drfc931.c43 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 Dbswap-constant-folding.c14 static u16 protocol; variable
18 switch (protocol) { in test()

12345678910