Home
last modified time | relevance | path

Searched refs:newsock (Results 1 – 25 of 35) sorted by relevance

12

/linux-3.4.99/crypto/
Daf_alg.c225 int af_alg_accept(struct sock *sk, struct socket *newsock) in af_alg_accept() argument
244 sock_init_data(newsock, sk2); in af_alg_accept()
245 sock_graft(sk2, newsock); in af_alg_accept()
259 newsock->ops = type->ops; in af_alg_accept()
260 newsock->state = SS_CONNECTED; in af_alg_accept()
271 static int alg_accept(struct socket *sock, struct socket *newsock, int flags) in alg_accept() argument
273 return af_alg_accept(sock->sk, newsock); in alg_accept()
Dalgif_hash.c185 static int hash_accept(struct socket *sock, struct socket *newsock, int flags) in hash_accept() argument
201 err = af_alg_accept(ask->parent, newsock); in hash_accept()
205 sk2 = newsock->sk; in hash_accept()
/linux-3.4.99/net/nfc/llcp/
Dsock.c160 struct socket *newsock) in nfc_llcp_accept_dequeue() argument
178 if (sk->sk_state == LLCP_CONNECTED || !newsock) { in nfc_llcp_accept_dequeue()
180 if (newsock) in nfc_llcp_accept_dequeue()
181 sock_graft(sk, newsock); in nfc_llcp_accept_dequeue()
196 static int llcp_sock_accept(struct socket *sock, struct socket *newsock, in llcp_sock_accept() argument
217 while (!(new_sk = nfc_llcp_accept_dequeue(sk, newsock))) { in llcp_sock_accept()
240 newsock->state = SS_CONNECTED; in llcp_sock_accept()
Dllcp.h179 struct sock *nfc_llcp_accept_dequeue(struct sock *sk, struct socket *newsock);
/linux-3.4.99/fs/dlm/
Dlowcomms.c707 struct socket *newsock; in tcp_accept_from_sock() local
715 IPPROTO_TCP, &newsock); in tcp_accept_from_sock()
725 newsock->type = con->sock->type; in tcp_accept_from_sock()
726 newsock->ops = con->sock->ops; in tcp_accept_from_sock()
728 result = con->sock->ops->accept(con->sock, newsock, O_NONBLOCK); in tcp_accept_from_sock()
734 if (newsock->ops->getname(newsock, (struct sockaddr *)&peeraddr, in tcp_accept_from_sock()
747 sock_release(newsock); in tcp_accept_from_sock()
785 othercon->sock = newsock; in tcp_accept_from_sock()
786 newsock->sk->sk_user_data = othercon; in tcp_accept_from_sock()
787 add_sock(newsock, othercon); in tcp_accept_from_sock()
[all …]
/linux-3.4.99/net/bluetooth/
Daf_bluetooth.c193 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock) in bt_accept_dequeue() argument
212 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue()
215 if (newsock) in bt_accept_dequeue()
216 sock_graft(sk, newsock); in bt_accept_dequeue()
Dsco.c561 static int sco_sock_accept(struct socket *sock, struct socket *newsock, int flags) in sco_sock_accept() argument
584 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept()
608 newsock->state = SS_CONNECTED; in sco_sock_accept()
Dl2cap_sock.c181 static int l2cap_sock_accept(struct socket *sock, struct socket *newsock, int flags) in l2cap_sock_accept() argument
204 nsk = bt_accept_dequeue(sk, newsock); in l2cap_sock_accept()
228 newsock->state = SS_CONNECTED; in l2cap_sock_accept()
/linux-3.4.99/net/atm/
Dsvc.c326 static int svc_accept(struct socket *sock, struct socket *newsock, int flags) in svc_accept() argument
337 error = svc_create(sock_net(sk), newsock, 0, 0); in svc_accept()
341 new_vcc = ATM_SD(newsock); in svc_accept()
383 error = vcc_connect(newsock, msg->pvc.sap_addr.itf, in svc_accept()
418 newsock->state = SS_CONNECTED; in svc_accept()
/linux-3.4.99/net/
Dsocket.c1513 struct socket *sock, *newsock; in SYSCALL_DEFINE4() local
1529 newsock = sock_alloc(); in SYSCALL_DEFINE4()
1530 if (!newsock) in SYSCALL_DEFINE4()
1533 newsock->type = sock->type; in SYSCALL_DEFINE4()
1534 newsock->ops = sock->ops; in SYSCALL_DEFINE4()
1540 __module_get(newsock->ops->owner); in SYSCALL_DEFINE4()
1542 newfd = sock_alloc_file(newsock, &newfile, flags); in SYSCALL_DEFINE4()
1545 sock_release(newsock); in SYSCALL_DEFINE4()
1549 err = security_socket_accept(sock, newsock); in SYSCALL_DEFINE4()
1553 err = sock->ops->accept(sock, newsock, sock->file->f_flags); in SYSCALL_DEFINE4()
[all …]
/linux-3.4.99/include/crypto/
Dif_alg.h67 int af_alg_accept(struct sock *sk, struct socket *newsock);
/linux-3.4.99/include/net/
Dinet_common.h21 extern int inet_accept(struct socket *sock, struct socket *newsock, int flags);
/linux-3.4.99/include/net/iucv/
Daf_iucv.h153 struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock);
/linux-3.4.99/include/linux/
Dnet.h175 struct socket *newsock, int flags);
320 extern int kernel_accept(struct socket *sock, struct socket **newsock,
/linux-3.4.99/net/sunrpc/
Dsvcsock.c859 struct socket *newsock; in svc_tcp_accept() local
869 err = kernel_accept(sock, &newsock, O_NONBLOCK); in svc_tcp_accept()
881 err = kernel_getpeername(newsock, sin, &slen); in svc_tcp_accept()
905 newsock->sk->sk_sndtimeo = HZ*30; in svc_tcp_accept()
907 if (!(newsvsk = svc_setup_socket(serv, newsock, &err, in svc_tcp_accept()
911 err = kernel_getsockname(newsock, sin, &slen); in svc_tcp_accept()
924 sock_release(newsock); in svc_tcp_accept()
/linux-3.4.99/net/phonet/
Dsocket.c305 static int pn_socket_accept(struct socket *sock, struct socket *newsock, in pn_socket_accept() argument
320 sock_graft(newsk, newsock); in pn_socket_accept()
321 newsock->state = SS_CONNECTED; in pn_socket_accept()
/linux-3.4.99/include/net/bluetooth/
Dbluetooth.h216 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock);
/linux-3.4.99/net/iucv/
Daf_iucv.c663 struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock) in iucv_accept_dequeue() argument
680 !newsock) { in iucv_accept_dequeue()
682 if (newsock) in iucv_accept_dequeue()
683 sock_graft(sk, newsock); in iucv_accept_dequeue()
929 static int iucv_sock_accept(struct socket *sock, struct socket *newsock, in iucv_sock_accept() argument
948 while (!(nsk = iucv_accept_dequeue(sk, newsock))) { in iucv_sock_accept()
976 newsock->state = SS_CONNECTED; in iucv_sock_accept()
/linux-3.4.99/net/bluetooth/rfcomm/
Dsock.c481 static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags) in rfcomm_sock_accept() argument
509 nsk = bt_accept_dequeue(sk, newsock); in rfcomm_sock_accept()
533 newsock->state = SS_CONNECTED; in rfcomm_sock_accept()
/linux-3.4.99/net/llc/
Daf_llc.c646 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags) in llc_ui_accept() argument
677 llc_ui_sk_init(newsock, newsk); in llc_ui_accept()
680 newsock->state = SS_CONNECTED; in llc_ui_accept()
/linux-3.4.99/net/irda/
Daf_irda.c844 static int irda_accept(struct socket *sock, struct socket *newsock, int flags) in irda_accept() argument
854 err = irda_create(sock_net(sk), newsock, sk->sk_protocol, 0); in irda_accept()
905 newsk = newsock->sk; in irda_accept()
941 newsock->state = SS_CONNECTED; in irda_accept()
/linux-3.4.99/net/ipv4/
Daf_inet.c682 int inet_accept(struct socket *sock, struct socket *newsock, int flags) in inet_accept() argument
697 sock_graft(sk2, newsock); in inet_accept()
699 newsock->state = SS_CONNECTED; in inet_accept()
/linux-3.4.99/net/x25/
Daf_x25.c856 static int x25_accept(struct socket *sock, struct socket *newsock, int flags) in x25_accept() argument
883 sock_graft(newsk, newsock); in x25_accept()
889 newsock->state = SS_CONNECTED; in x25_accept()
/linux-3.4.99/net/ax25/
Daf_ax25.c1324 static int ax25_accept(struct socket *sock, struct socket *newsock, int flags) in ax25_accept() argument
1378 sock_graft(newsk, newsock); in ax25_accept()
1383 newsock->state = SS_CONNECTED; in ax25_accept()
/linux-3.4.99/net/unix/
Daf_unix.c1267 static int unix_accept(struct socket *sock, struct socket *newsock, int flags) in unix_accept() argument
1300 newsock->state = SS_CONNECTED; in unix_accept()
1301 unix_sock_inherit_flags(sock, newsock); in unix_accept()
1302 sock_graft(tsk, newsock); in unix_accept()

12