Lines Matching defs:socket
104 * create the local socket
115 /* create a socket to represent the local endpoint */
117 local->srx.transport_type, 0, &local->socket);
119 _leave(" = %d [socket]", ret);
123 /* set the socket up */
124 usk = local->socket->sk;
148 ret = kernel_bind(local->socket,
160 ip6_sock_set_recverr(local->socket->sk);
163 * errors from IPv4 packets sent through the IPv6 socket.
168 ip_sock_set_recverr(local->socket->sk);
171 ip_sock_set_mtu_discover(local->socket->sk, IP_PMTUDISC_DO);
174 sock_enable_timestamps(local->socket->sk);
185 kernel_sock_shutdown(local->socket, SHUT_RDWR);
186 local->socket->sk->sk_user_data = NULL;
187 sock_release(local->socket);
188 local->socket = NULL;
230 * Attempting to bind the transport socket may still fail if
380 * Destroy a local endpoint's socket and then hand the record to RCU to dispose
383 * Closing the socket cannot be done from bottom half context or RCU callback
388 struct socket *socket = local->socket;
403 if (socket) {
404 local->socket = NULL;
405 kernel_sock_shutdown(socket, SHUT_RDWR);
406 socket->sk->sk_user_data = NULL;
407 sock_release(socket);