Lines Matching defs:protocol
3 * NET An implementation of the SOCKET network access protocol.
20 * mode above the protocol layers.
47 * protocol-independent
224 * The protocol list. Each protocol is registered in here.
452 * @dname: protocol name
681 * The socket is released from the protocol stack if it has a release
1246 * what to do with it - that's up to the protocol still.
1349 * @family: protocol family (AF_INET, ...)
1351 * @protocol: protocol (0, ...)
1360 int sock_create_lite(int family, int type, int protocol, struct socket **res)
1365 err = security_socket_create(family, type, protocol, 1);
1376 err = security_socket_post_create(sock, family, type, protocol, 1);
1488 * @family: protocol family (AF_INET, ...)
1490 * @protocol: protocol (0, ...)
1500 int __sock_create(struct net *net, int family, int type, int protocol,
1508 * Check protocol is in range
1526 err = security_socket_create(family, type, protocol, kern);
1532 * the protocol is 0, the family is instructed to select an appropriate
1545 /* Attempt to load a protocol module if the find failed.
1571 err = pf->create(net, sock, protocol, kern);
1587 err = security_socket_post_create(sock, family, type, protocol, kern);
1611 * @family: protocol family (AF_INET, ...)
1613 * @protocol: protocol (0, ...)
1620 int sock_create(int family, int type, int protocol, struct socket **res)
1622 return __sock_create(current->nsproxy->net_ns, family, type, protocol, res, 0);
1629 * @family: protocol family (AF_INET, ...)
1631 * @protocol: protocol (0, ...)
1638 int sock_create_kern(struct net *net, int family, int type, int protocol, struct socket **res)
1640 return __sock_create(net, family, type, protocol, res, 1);
1644 static struct socket *__sys_socket_create(int family, int type, int protocol)
1659 retval = sock_create(family, type, protocol, &sock);
1666 struct file *__sys_socket_file(int family, int type, int protocol)
1671 sock = __sys_socket_create(family, type, protocol);
1682 /* A hook for bpf progs to attach to and update socket protocol.
1698 __weak noinline int update_socket_protocol(int family, int type, int protocol)
1700 return protocol;
1705 int __sys_socket(int family, int type, int protocol)
1711 update_socket_protocol(family, type, protocol));
1722 SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol)
1724 return __sys_socket(family, type, protocol);
1731 int __sys_socketpair(int family, int type, int protocol, int __user *usockvec)
1769 * Obtain the first socket and check if the underlying protocol
1773 err = sock_create(family, type, protocol, &sock1);
1777 err = sock_create(family, type, protocol, &sock2);
1823 SYSCALL_DEFINE4(socketpair, int, family, int, type, int, protocol,
1826 return __sys_socketpair(family, type, protocol, usockvec);
1831 * the protocol's responsibility to handle the local address.
1834 * the protocol layer (having also checked the address is ok).
1866 * Perform a listen. Basically, we allow the protocol to do anything
1921 * has the protocol module (sock->ops->owner) held.
2161 * the protocol.
3174 * sock_register - add a socket protocol handler
3175 * @ops: description of protocol
3177 * This function is called by a protocol handler that wants to
3180 * socket system call protocol family.
3187 pr_crit("protocol %d >= NPROTO(%d)\n", ops->family, NPROTO);
3201 pr_info("NET: Registered %s protocol family\n", pf_family_names[ops->family]);
3207 * sock_unregister - remove a protocol handler
3208 * @family: protocol family to remove
3210 * This function is called by a protocol handler that wants to
3214 * If protocol handler is a module, then it can use module reference
3215 * counts to protect against new references. If protocol handler is not
3229 pr_info("NET: Unregistered %s protocol family\n", pf_family_names[family]);
3268 /* The real protocol initialization is performed in later initcalls.