Lines Matching refs:oldsk
90 static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
9492 static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, in sctp_sock_migrate() argument
9496 struct sctp_sock *oldsp = sctp_sk(oldsk); in sctp_sock_migrate()
9508 newsk->sk_sndbuf = oldsk->sk_sndbuf; in sctp_sock_migrate()
9509 newsk->sk_rcvbuf = oldsk->sk_rcvbuf; in sctp_sock_migrate()
9511 sctp_copy_descendant(newsk, oldsk); in sctp_sock_migrate()
9520 head = &sctp_port_hashtable[sctp_phashfn(sock_net(oldsk), in sctp_sock_migrate()
9521 inet_sk(oldsk)->inet_num)]; in sctp_sock_migrate()
9523 pp = sctp_sk(oldsk)->bind_hash; in sctp_sock_migrate()
9526 inet_sk(newsk)->inet_num = inet_sk(oldsk)->inet_num; in sctp_sock_migrate()
9552 sctp_skb_for_each(skb, &oldsk->sk_receive_queue, tmp) { in sctp_sock_migrate()
9555 __skb_unlink(skb, &oldsk->sk_receive_queue); in sctp_sock_migrate()
9569 if (atomic_read(&sctp_sk(oldsk)->pd_mode)) { in sctp_sock_migrate()
9594 sctp_clear_pd(oldsk, NULL); in sctp_sock_migrate()