Lines Matching defs:oldsk
92 static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
9497 /* Populate the fields of the newsk from the oldsk and migrate the assoc
9500 static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
9504 struct sctp_sock *oldsp = sctp_sk(oldsk);
9519 head = &sctp_port_hashtable[sctp_phashfn(sock_net(oldsk),
9520 inet_sk(oldsk)->inet_num)];
9522 pp = sctp_sk(oldsk)->bind_hash;
9525 inet_sk(newsk)->inet_num = inet_sk(oldsk)->inet_num;
9541 sctp_skb_for_each(skb, &oldsk->sk_receive_queue, tmp) {
9544 __skb_unlink(skb, &oldsk->sk_receive_queue);
9558 if (atomic_read(&sctp_sk(oldsk)->pd_mode)) {
9583 sctp_clear_pd(oldsk, NULL);
9602 * paths won't try to lock it and then oldsk.