• Home
  • Raw
  • Download

Lines Matching refs:newsk

3499 	struct sock *newsk = NULL;  in sctp_accept()  local
3530 newsk = sp->pf->create_accept_sk(sk, asoc); in sctp_accept()
3531 if (!newsk) { in sctp_accept()
3539 sctp_sock_migrate(sk, newsk, asoc, SCTP_SOCKET_TCP); in sctp_accept()
3544 return newsk; in sctp_accept()
6706 static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, in sctp_sock_migrate() argument
6711 struct sctp_sock *newsp = sctp_sk(newsk); in sctp_sock_migrate()
6721 newsk->sk_sndbuf = oldsk->sk_sndbuf; in sctp_sock_migrate()
6722 newsk->sk_rcvbuf = oldsk->sk_rcvbuf; in sctp_sock_migrate()
6724 inet_sk_copy_descendant(newsk, oldsk); in sctp_sock_migrate()
6737 sk_add_bind_node(newsk, &pp->owner); in sctp_sock_migrate()
6738 sctp_sk(newsk)->bind_hash = pp; in sctp_sock_migrate()
6739 inet_sk(newsk)->num = inet_sk(oldsk)->num; in sctp_sock_migrate()
6757 __skb_queue_tail(&newsk->sk_receive_queue, skb); in sctp_sock_migrate()
6758 sctp_skb_set_owner_r_frag(skb, newsk); in sctp_sock_migrate()
6769 atomic_set(&sctp_sk(newsk)->pd_mode, assoc->ulpq.pd_mode); in sctp_sock_migrate()
6778 queue = &newsk->sk_receive_queue; in sctp_sock_migrate()
6789 sctp_skb_set_owner_r_frag(skb, newsk); in sctp_sock_migrate()
6803 sctp_skb_set_owner_r_frag(skb, newsk); in sctp_sock_migrate()
6808 sctp_skb_set_owner_r_frag(skb, newsk); in sctp_sock_migrate()
6826 lock_sock_nested(newsk, SINGLE_DEPTH_NESTING); in sctp_sock_migrate()
6827 sctp_assoc_migrate(assoc, newsk); in sctp_sock_migrate()
6832 if (sctp_state(assoc, CLOSED) && sctp_style(newsk, TCP)) in sctp_sock_migrate()
6833 newsk->sk_shutdown |= RCV_SHUTDOWN; in sctp_sock_migrate()
6835 newsk->sk_state = SCTP_SS_ESTABLISHED; in sctp_sock_migrate()
6836 sctp_release_sock(newsk); in sctp_sock_migrate()