/net/dccp/ |
H A D | minisocks.c | 98 struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC); local 100 if (newsk != NULL) { 102 struct inet_connection_sock *newicsk = inet_csk(newsk); 103 struct dccp_sock *newdp = dccp_sk(newsk); 134 if (dccp_feat_activate_values(newsk, &dreq->dreq_featneg)) { 137 newsk->sk_destruct = NULL; 138 sk_free(newsk); 141 dccp_init_xmit_timers(newsk); 145 return newsk;
|
H A D | ipv6.c | 455 struct sock *newsk; local 461 newsk = dccp_v4_request_recv_sock(sk, skb, req, dst); 462 if (newsk == NULL) 465 newdp6 = (struct dccp6_sock *)newsk; 466 newinet = inet_sk(newsk); 468 newnp = inet6_sk(newsk); 472 ipv6_addr_set_v4mapped(newinet->inet_daddr, &newsk->sk_v6_daddr); 476 newsk->sk_v6_rcv_saddr = newnp->saddr; 478 inet_csk(newsk)->icsk_af_ops = &dccp_ipv6_mapped; 479 newsk [all...] |
H A D | ipv4.c | 402 struct sock *newsk; local 407 newsk = dccp_create_openreq_child(sk, req, skb); 408 if (newsk == NULL) 411 newinet = inet_sk(newsk); 422 if (dst == NULL && (dst = inet_csk_route_child_sock(sk, newsk, req)) == NULL) 425 sk_setup_caps(newsk, dst); 427 dccp_sync_mss(newsk, dst_mtu(dst)); 429 if (__inet_inherit_port(sk, newsk) < 0) 431 __inet_hash_nolisten(newsk, NULL); 433 return newsk; [all...] |
/net/ipv6/ |
H A D | tcp_ipv6.c | 1058 struct sock *newsk; local 1069 newsk = tcp_v4_syn_recv_sock(sk, skb, req, dst); 1071 if (newsk == NULL) 1074 newtcp6sk = (struct tcp6_sock *)newsk; 1075 inet_sk(newsk)->pinet6 = &newtcp6sk->inet6; 1077 newinet = inet_sk(newsk); 1078 newnp = inet6_sk(newsk); 1079 newtp = tcp_sk(newsk); 1083 ipv6_addr_set_v4mapped(newinet->inet_daddr, &newsk->sk_v6_daddr); 1087 newsk [all...] |
/net/core/ |
H A D | sock.c | 1444 static void sk_update_clone(const struct sock *sk, struct sock *newsk) argument 1447 sock_update_memcg(newsk); 1455 * Caller must unlock socket even in error path (bh_unlock_sock(newsk)) 1459 struct sock *newsk; local 1462 newsk = sk_prot_alloc(sk->sk_prot, priority, sk->sk_family); 1463 if (newsk != NULL) { 1466 sock_copy(newsk, sk); 1469 get_net(sock_net(newsk)); 1470 sk_node_init(&newsk->sk_node); 1471 sock_lock_init(newsk); [all...] |
H A D | skbuff.c | 2301 * @newsk: buffer to queue 2309 void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk) argument 2314 __skb_queue_head(list, newsk); 2322 * @newsk: buffer to queue 2330 void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk) argument 2335 __skb_queue_tail(list, newsk); 2363 * @newsk: buffer to insert 2370 void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list) argument 2375 __skb_queue_after(list, old, newsk); 2383 * @newsk 2392 skb_insert(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list) argument [all...] |
/net/ipv4/ |
H A D | tcp_minisocks.c | 410 struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC); local 412 if (newsk != NULL) { 415 struct inet_connection_sock *newicsk = inet_csk(newsk); 416 struct tcp_sock *newtp = tcp_sk(newsk); 455 tcp_assign_congestion_control(newsk); 457 tcp_set_ca_state(newsk, TCP_CA_Open); 458 tcp_init_xmit_timers(newsk); 469 if (sock_flag(newsk, SOCK_KEEPOPEN)) 470 inet_csk_reset_keepalive_timer(newsk, 504 if (newtp->af_specific->md5_lookup(sk, newsk)) [all...] |
H A D | inet_connection_sock.c | 296 struct sock *newsk; local 323 newsk = req->sk; 344 return newsk; 346 newsk = NULL; 432 struct sock *newsk, 436 struct inet_sock *newinet = inet_sk(newsk); 663 * Caller must unlock socket even in error path (bh_unlock_sock(newsk)) 669 struct sock *newsk = sk_clone_lock(sk, priority); local 671 if (newsk != NULL) { 672 struct inet_connection_sock *newicsk = inet_csk(newsk); 431 inet_csk_route_child_sock(struct sock *sk, struct sock *newsk, const struct request_sock *req) argument [all...] |
H A D | tcp_ipv4.c | 1300 struct sock *newsk; local 1309 newsk = tcp_create_openreq_child(sk, req, skb); 1310 if (!newsk) 1313 newsk->sk_gso_type = SKB_GSO_TCPV4; 1314 inet_sk_rx_dst_set(newsk, skb); 1316 newtp = tcp_sk(newsk); 1317 newinet = inet_sk(newsk); 1328 inet_csk(newsk)->icsk_ext_hdr_len = 0; 1329 inet_set_txhash(newsk); 1331 inet_csk(newsk) [all...] |
/net/sctp/ |
H A D | ipv6.c | 634 struct sock *newsk; local 638 newsk = sk_alloc(sock_net(sk), PF_INET6, GFP_KERNEL, sk->sk_prot); 639 if (!newsk) 642 sock_init_data(NULL, newsk); 644 sctp_copy_sock(newsk, sk, asoc); 647 newsctp6sk = (struct sctp6_sock *)newsk; 648 inet_sk(newsk)->pinet6 = &newsctp6sk->inet6; 650 sctp_sk(newsk)->v4mapped = sctp_sk(sk)->v4mapped; 652 newnp = inet6_sk(newsk); 659 sctp_v6_to_sk_daddr(&asoc->peer.primary_addr, newsk); [all...] |
H A D | protocol.c | 552 struct sock *newsk = sk_alloc(sock_net(sk), PF_INET, GFP_KERNEL, local 556 if (!newsk) 559 sock_init_data(NULL, newsk); 561 sctp_copy_sock(newsk, sk, asoc); 562 sock_reset_flag(newsk, SOCK_ZAPPED); 564 newinet = inet_sk(newsk); 568 sk_refcnt_debug_inc(newsk); 570 if (newsk->sk_prot->init(newsk)) { 571 sk_common_release(newsk); [all...] |
H A D | socket.c | 3907 struct sock *newsk = NULL; local 3938 newsk = sp->pf->create_accept_sk(sk, asoc); 3939 if (!newsk) { 3944 /* Populate the fields of the newsk from the oldsk and migrate the 3945 * asoc to the newsk. 3947 sctp_sock_migrate(sk, newsk, asoc, SCTP_SOCKET_TCP); 3952 return newsk; 4441 /* Populate the fields of the newsk from the oldsk and migrate the 4442 * asoc to the newsk. 4483 pr_debug("%s: sk:%p, newsk 7161 sctp_copy_sock(struct sock *newsk, struct sock *sk, struct sctp_association *asoc) argument 7207 sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, struct sctp_association *assoc, sctp_socket_type_t type) argument [all...] |
H A D | associola.c | 1060 void sctp_assoc_migrate(struct sctp_association *assoc, struct sock *newsk) argument 1062 struct sctp_sock *newsp = sctp_sk(newsk); 1083 assoc->base.sk = newsk;
|
/net/phonet/ |
H A D | pep.c | 777 struct sock *newsk = NULL; local 839 newsk = pep_find_pipe(&pn->hlist, &dst, pipe_handle); 840 if (unlikely(newsk)) { 841 __sock_put(newsk); 842 newsk = NULL; 848 newsk = sk_alloc(sock_net(sk), PF_PHONET, GFP_KERNEL, sk->sk_prot); 849 if (!newsk) { 855 sock_init_data(NULL, newsk); 856 newsk->sk_state = TCP_SYN_RECV; 857 newsk [all...] |
H A D | socket.c | 307 struct sock *newsk; local 313 newsk = sk->sk_prot->accept(sk, flags, &err); 314 if (!newsk) 317 lock_sock(newsk); 318 sock_graft(newsk, newsock); 320 release_sock(newsk);
|
/net/decnet/ |
H A D | af_decnet.c | 1072 struct sock *sk = sock->sk, *newsk; local 1099 newsk = dn_alloc_sock(sock_net(sk), newsock, sk->sk_allocation); 1100 if (newsk == NULL) { 1108 sk_dst_set(newsk, dst); 1111 DN_SK(newsk)->state = DN_CR; 1112 DN_SK(newsk)->addrrem = cb->src_port; 1113 DN_SK(newsk)->services_rem = cb->services; 1114 DN_SK(newsk)->info_rem = cb->info; 1115 DN_SK(newsk)->segsize_rem = cb->segsize; 1116 DN_SK(newsk) [all...] |
/net/llc/ |
H A D | llc_conn.c | 770 struct sock *newsk = llc_sk_alloc(sock_net(sk), sk->sk_family, GFP_ATOMIC, local 774 if (!newsk) 776 newllc = llc_sk(newsk); 781 llc_sap_add_socket(llc->sap, newsk); 784 return newsk; 811 struct sock *newsk = llc_create_incoming_sock(sk, skb->dev, local 813 if (!newsk) 815 skb_set_owner_r(skb, newsk);
|
H A D | af_llc.c | 647 struct sock *sk = sock->sk, *newsk; local 674 newsk = skb->sk; 676 llc_ui_sk_init(newsock, newsk); 677 sock_reset_flag(newsk, SOCK_ZAPPED); 678 newsk->sk_state = TCP_ESTABLISHED; 681 newllc = llc_sk(newsk);
|
/net/unix/ |
H A D | af_unix.c | 1069 struct sock *newsk = NULL; local 1096 newsk = unix_create1(sock_net(sk), NULL); 1097 if (newsk == NULL) 1101 skb = sock_wmalloc(newsk, 1, 0, GFP_KERNEL); 1176 err = security_unix_stream_connect(sk, other, newsk); 1185 unix_peer(newsk) = sk; 1186 newsk->sk_state = TCP_ESTABLISHED; 1187 newsk->sk_type = sk->sk_type; 1188 init_peercred(newsk); 1189 newu = unix_sk(newsk); [all...] |
/net/irda/ |
H A D | af_irda.c | 844 struct sock *newsk; local 901 newsk = newsock->sk; 903 if (newsk == NULL) 906 newsk->sk_state = TCP_ESTABLISHED; 908 new = irda_sk(newsk);
|
/net/netrom/ |
H A D | af_netrom.c | 771 struct sock *newsk; local 817 newsk = skb->sk; 818 sock_graft(newsk, newsock);
|
/net/ax25/ |
H A D | af_ax25.c | 1323 struct sock *newsk; local 1373 newsk = skb->sk; 1374 sock_graft(newsk, newsock);
|
/net/rose/ |
H A D | af_rose.c | 876 struct sock *newsk; local 923 newsk = skb->sk; 924 sock_graft(newsk, newsock);
|
/net/x25/ |
H A D | af_x25.c | 858 struct sock *newsk; local 881 newsk = skb->sk; 882 sock_graft(newsk, newsock);
|