Lines Matching refs:oldsk
3519 /* Populate the fields of the newsk from the oldsk and migrate the
3947 /* Populate the fields of the newsk from the oldsk and migrate the
6334 /* Populate the fields of the newsk from the oldsk and migrate the assoc
6337 static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
6341 struct sctp_sock *oldsp = sctp_sk(oldsk);
6352 newsk->sk_sndbuf = oldsk->sk_sndbuf;
6353 newsk->sk_rcvbuf = oldsk->sk_rcvbuf;
6355 inet_sk_copy_descendant(newsk, oldsk);
6364 head = &sctp_port_hashtable[sctp_phashfn(inet_sk(oldsk)->inet_num)];
6367 pp = sctp_sk(oldsk)->bind_hash;
6370 inet_sk(newsk)->inet_num = inet_sk(oldsk)->inet_num;
6383 sctp_skb_for_each(skb, &oldsk->sk_receive_queue, tmp) {
6386 __skb_unlink(skb, &oldsk->sk_receive_queue);
6401 if (atomic_read(&sctp_sk(oldsk)->pd_mode)) {
6426 sctp_clear_pd(oldsk, NULL);
6449 * paths won't try to lock it and then oldsk.