Lines Matching defs:protocol
158 * sockparams_create(int family, int type, int protocol, char *modname,
164 * family, type, protocol: specifies the socket type
187 sockparams_create(int family, int type, int protocol, char *modname,
212 sp->sp_protocol = protocol;
361 sockparams_find(list_t *list, int family, int type, int protocol,
368 if (sp->sp_protocol == protocol) {
388 * protocol. The entry is returned held, and the caller is responsible for
401 sockparams_hold_ephemeral(int family, int type, int protocol,
411 sp = sockparams_find(&sp_ephem_list, family, type, protocol,
436 protocol, NULL, namebuf, namelen,
440 protocol, namebuf, NULL, 0,
467 sp = sockparams_find(&sp_ephem_list, family, type, protocol,
498 sockparams_hold_ephemeral_bydev(int family, int type, int protocol,
501 return (sockparams_hold_ephemeral(family, type, protocol, dev, B_TRUE,
506 sockparams_hold_ephemeral_bymod(int family, int type, int protocol,
509 return (sockparams_hold_ephemeral(family, type, protocol, mod, B_FALSE,
590 * sockparams_delete(int family, int type, int protocol)
592 * Marks the sockparams entry for a specific family, type and protocol
597 * family, type, protocol: the socket type that should be removed.
607 sockparams_delete(int family, int type, int protocol)
612 sp = sockparams_find(&sphead, family, type, protocol, B_TRUE, NULL);
641 * solookup(int family, int type, int protocol, struct sockparams **spp)
645 * for the given <family, type>. A default entry is on with a protocol
649 * family, type, protocol: tuple to search for
657 * EPROTONOSUPPORT - address family supported but not protocol.
658 * EPROTOTYPE - address family and protocol supported but not socket type.
663 solookup(int family, int type, int protocol, struct sockparams **spp)
674 * type and protocol specified by the user, in which case
677 * entry of which would have a protocol value of 0.
679 sp = sockparams_find(&sphead, family, type, protocol, B_TRUE, NULL);
690 sp->sp_protocol == protocol && found < 2)