• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sctp/

Lines Matching refs:newsk

3068 	struct sock *newsk = NULL;
3099 newsk = sp->pf->create_accept_sk(sk, asoc);
3100 if (!newsk) {
3105 /* Populate the fields of the newsk from the oldsk and migrate the
3106 * asoc to the newsk.
3108 sctp_sock_migrate(sk, newsk, asoc, SCTP_SOCKET_TCP);
3113 return newsk;
3517 /* Populate the fields of the newsk from the oldsk and migrate the
3518 * asoc to the newsk.
3567 SCTP_DEBUG_PRINTK("%s: sk: %p asoc: %p newsk: %p sd: %d\n",
5921 /* Populate the fields of the newsk from the oldsk and migrate the assoc
5922 * and its messages to the newsk.
5924 static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
5929 struct sctp_sock *newsp = sctp_sk(newsk);
5939 newsk->sk_sndbuf = oldsk->sk_sndbuf;
5940 newsk->sk_rcvbuf = oldsk->sk_rcvbuf;
5942 inet_sk_copy_descendant(newsk, oldsk);
5952 sk_add_bind_node(newsk, &pp->owner);
5953 sctp_sk(newsk)->bind_hash = pp;
5954 inet_sk(newsk)->num = inet_sk(oldsk)->num;
5977 __skb_queue_tail(&newsk->sk_receive_queue, skb);
5978 sctp_skb_set_owner_r_frag(skb, newsk);
5989 atomic_set(&sctp_sk(newsk)->pd_mode, assoc->ulpq.pd_mode);
5998 queue = &newsk->sk_receive_queue;
6009 sctp_skb_set_owner_r_frag(skb, newsk);
6023 sctp_skb_set_owner_r_frag(skb, newsk);
6028 sctp_skb_set_owner_r_frag(skb, newsk);
6043 * The caller has just allocated newsk so we can guarantee that other
6046 lock_sock_nested(newsk, SINGLE_DEPTH_NESTING);
6047 sctp_assoc_migrate(assoc, newsk);
6049 /* If the association on the newsk is already closed before accept()
6052 if (sctp_state(assoc, CLOSED) && sctp_style(newsk, TCP))
6053 newsk->sk_shutdown |= RCV_SHUTDOWN;
6055 newsk->sk_state = SCTP_SS_ESTABLISHED;
6056 sctp_release_sock(newsk);