Lines Matching refs:newsk
1071 struct sock *sk = sock->sk, *newsk; in dn_accept() local
1098 newsk = dn_alloc_sock(sock_net(sk), newsock, sk->sk_allocation); in dn_accept()
1099 if (newsk == NULL) { in dn_accept()
1107 sk_dst_set(newsk, dst); in dn_accept()
1110 DN_SK(newsk)->state = DN_CR; in dn_accept()
1111 DN_SK(newsk)->addrrem = cb->src_port; in dn_accept()
1112 DN_SK(newsk)->services_rem = cb->services; in dn_accept()
1113 DN_SK(newsk)->info_rem = cb->info; in dn_accept()
1114 DN_SK(newsk)->segsize_rem = cb->segsize; in dn_accept()
1115 DN_SK(newsk)->accept_mode = DN_SK(sk)->accept_mode; in dn_accept()
1117 if (DN_SK(newsk)->segsize_rem < 230) in dn_accept()
1118 DN_SK(newsk)->segsize_rem = 230; in dn_accept()
1120 if ((DN_SK(newsk)->services_rem & NSP_FC_MASK) == NSP_FC_NONE) in dn_accept()
1121 DN_SK(newsk)->max_window = decnet_no_fc_max_cwnd; in dn_accept()
1123 newsk->sk_state = TCP_LISTEN; in dn_accept()
1124 memcpy(&(DN_SK(newsk)->addr), &(DN_SK(sk)->addr), sizeof(struct sockaddr_dn)); in dn_accept()
1130 DN_SK(newsk)->addr.sdn_flags &= ~SDF_WILD; in dn_accept()
1132 skb_pull(skb, dn_username2sockaddr(skb->data, skb->len, &(DN_SK(newsk)->addr), &type)); in dn_accept()
1133 skb_pull(skb, dn_username2sockaddr(skb->data, skb->len, &(DN_SK(newsk)->peer), &type)); in dn_accept()
1134 *(__le16 *)(DN_SK(newsk)->peer.sdn_add.a_addr) = cb->src; in dn_accept()
1135 *(__le16 *)(DN_SK(newsk)->addr.sdn_add.a_addr) = cb->dst; in dn_accept()
1141 dn_access_copy(skb, &(DN_SK(newsk)->accessdata)); in dn_accept()
1144 dn_user_copy(skb, &(DN_SK(newsk)->conndata_in)); in dn_accept()
1147 DN_SK(newsk)->peer.sdn_flags |= SDF_PROXY; in dn_accept()
1150 DN_SK(newsk)->peer.sdn_flags |= SDF_UICPROXY; in dn_accept()
1154 memcpy(&(DN_SK(newsk)->conndata_out), &(DN_SK(sk)->conndata_out), in dn_accept()
1156 memcpy(&(DN_SK(newsk)->discdata_out), &(DN_SK(sk)->discdata_out), in dn_accept()
1159 lock_sock(newsk); in dn_accept()
1160 err = dn_hash_sock(newsk); in dn_accept()
1162 sock_reset_flag(newsk, SOCK_ZAPPED); in dn_accept()
1163 dn_send_conn_ack(newsk); in dn_accept()
1169 if (DN_SK(newsk)->accept_mode == ACC_IMMED) in dn_accept()
1170 err = dn_confirm_accept(newsk, &timeo, in dn_accept()
1173 release_sock(newsk); in dn_accept()