Lines Matching defs:protocol
3 * NET An implementation of the SOCKET network access protocol.
20 * mode above the protocol layers.
47 * protocol-independent
225 * The protocol list. Each protocol is registered in here.
466 * @dname: protocol name
684 * The socket is released from the protocol stack if it has a release
1278 * what to do with it - that's up to the protocol still.
1383 * @family: protocol family (AF_INET, ...)
1385 * @protocol: protocol (0, ...)
1394 int sock_create_lite(int family, int type, int protocol, struct socket **res)
1399 err = security_socket_create(family, type, protocol, 1);
1410 err = security_socket_post_create(sock, family, type, protocol, 1);
1522 * @family: protocol family (AF_INET, ...)
1524 * @protocol: protocol (0, ...)
1534 int __sock_create(struct net *net, int family, int type, int protocol,
1542 * Check protocol is in range
1560 err = security_socket_create(family, type, protocol, kern);
1566 * the protocol is 0, the family is instructed to select an appropriate
1579 /* Attempt to load a protocol module if the find failed.
1605 err = pf->create(net, sock, protocol, kern);
1611 "%ps must clear sock->sk on failure, family: %d, type: %d, protocol: %d\n",
1612 pf->create, family, type, protocol);
1628 err = security_socket_post_create(sock, family, type, protocol, kern);
1652 * @family: protocol family (AF_INET, ...)
1654 * @protocol: protocol (0, ...)
1661 int sock_create(int family, int type, int protocol, struct socket **res)
1663 return __sock_create(current->nsproxy->net_ns, family, type, protocol, res, 0);
1670 * @family: protocol family (AF_INET, ...)
1672 * @protocol: protocol (0, ...)
1679 int sock_create_kern(struct net *net, int family, int type, int protocol, struct socket **res)
1681 return __sock_create(net, family, type, protocol, res, 1);
1685 static struct socket *__sys_socket_create(int family, int type, int protocol)
1700 retval = sock_create(family, type, protocol, &sock);
1707 struct file *__sys_socket_file(int family, int type, int protocol)
1712 sock = __sys_socket_create(family, type, protocol);
1723 /* A hook for bpf progs to attach to and update socket protocol.
1735 __weak noinline int update_socket_protocol(int family, int type, int protocol)
1737 return protocol;
1742 int __sys_socket(int family, int type, int protocol)
1748 update_socket_protocol(family, type, protocol));
1759 SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol)
1761 return __sys_socket(family, type, protocol);
1768 int __sys_socketpair(int family, int type, int protocol, int __user *usockvec)
1806 * Obtain the first socket and check if the underlying protocol
1810 err = sock_create(family, type, protocol, &sock1);
1814 err = sock_create(family, type, protocol, &sock2);
1860 SYSCALL_DEFINE4(socketpair, int, family, int, type, int, protocol,
1863 return __sys_socketpair(family, type, protocol, usockvec);
1882 * the protocol's responsibility to handle the local address.
1885 * the protocol layer (having also checked the address is ok).
1914 * Perform a listen. Basically, we allow the protocol to do anything
1975 * has the protocol module (sock->ops->owner) held.
2207 * the protocol.
3241 * sock_register - add a socket protocol handler
3242 * @ops: description of protocol
3244 * This function is called by a protocol handler that wants to
3247 * socket system call protocol family.
3254 pr_crit("protocol %d >= NPROTO(%d)\n", ops->family, NPROTO);
3268 pr_info("NET: Registered %s protocol family\n", pf_family_names[ops->family]);
3274 * sock_unregister - remove a protocol handler
3275 * @family: protocol family to remove
3277 * This function is called by a protocol handler that wants to
3281 * If protocol handler is a module, then it can use module reference
3282 * counts to protect against new references. If protocol handler is not
3296 pr_info("NET: Unregistered %s protocol family\n", pf_family_names[family]);
3335 /* The real protocol initialization is performed in later initcalls.