Lines Matching refs:oldsk
90 static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
4773 /* Populate the fields of the newsk from the oldsk and migrate the
5533 /* Populate the fields of the newsk from the oldsk and migrate the
9267 /* Populate the fields of the newsk from the oldsk and migrate the assoc
9270 static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
9274 struct sctp_sock *oldsp = sctp_sk(oldsk);
9286 newsk->sk_sndbuf = oldsk->sk_sndbuf;
9287 newsk->sk_rcvbuf = oldsk->sk_rcvbuf;
9289 sctp_copy_descendant(newsk, oldsk);
9298 head = &sctp_port_hashtable[sctp_phashfn(sock_net(oldsk),
9299 inet_sk(oldsk)->inet_num)];
9301 pp = sctp_sk(oldsk)->bind_hash;
9304 inet_sk(newsk)->inet_num = inet_sk(oldsk)->inet_num;
9330 sctp_skb_for_each(skb, &oldsk->sk_receive_queue, tmp) {
9333 __skb_unlink(skb, &oldsk->sk_receive_queue);
9347 if (atomic_read(&sctp_sk(oldsk)->pd_mode)) {
9372 sctp_clear_pd(oldsk, NULL);
9391 * paths won't try to lock it and then oldsk.