Lines Matching refs:oldsk
91 static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
4890 /* Populate the fields of the newsk from the oldsk and migrate the
5657 /* Populate the fields of the newsk from the oldsk and migrate the
9511 /* Populate the fields of the newsk from the oldsk and migrate the assoc
9514 static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
9518 struct sctp_sock *oldsp = sctp_sk(oldsk);
9530 newsk->sk_sndbuf = oldsk->sk_sndbuf;
9531 newsk->sk_rcvbuf = oldsk->sk_rcvbuf;
9533 sctp_copy_descendant(newsk, oldsk);
9542 head = &sctp_port_hashtable[sctp_phashfn(sock_net(oldsk),
9543 inet_sk(oldsk)->inet_num)];
9545 pp = sctp_sk(oldsk)->bind_hash;
9548 inet_sk(newsk)->inet_num = inet_sk(oldsk)->inet_num;
9574 sctp_skb_for_each(skb, &oldsk->sk_receive_queue, tmp) {
9577 __skb_unlink(skb, &oldsk->sk_receive_queue);
9591 if (atomic_read(&sctp_sk(oldsk)->pd_mode)) {
9616 sctp_clear_pd(oldsk, NULL);
9635 * paths won't try to lock it and then oldsk.