Lines Matching defs:oldsk
92 static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
4896 /* Populate the fields of the newsk from the oldsk and migrate the
5652 /* Populate the fields of the newsk from the oldsk and migrate the
9509 /* Populate the fields of the newsk from the oldsk and migrate the assoc
9512 static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
9516 struct sctp_sock *oldsp = sctp_sk(oldsk);
9528 newsk->sk_sndbuf = oldsk->sk_sndbuf;
9529 newsk->sk_rcvbuf = oldsk->sk_rcvbuf;
9531 sctp_copy_descendant(newsk, oldsk);
9539 head = &sctp_port_hashtable[sctp_phashfn(sock_net(oldsk),
9540 inet_sk(oldsk)->inet_num)];
9542 pp = sctp_sk(oldsk)->bind_hash;
9545 inet_sk(newsk)->inet_num = inet_sk(oldsk)->inet_num;
9561 sctp_skb_for_each(skb, &oldsk->sk_receive_queue, tmp) {
9564 __skb_unlink(skb, &oldsk->sk_receive_queue);
9578 if (atomic_read(&sctp_sk(oldsk)->pd_mode)) {
9603 sctp_clear_pd(oldsk, NULL);
9622 * paths won't try to lock it and then oldsk.