ipv6.c (7cbca67c073263c179f605bdbbdc565ab29d801d) ipv6.c (3b1e0a655f8eba44ab1ee2a1068d169ccfb853b9)
1/* SCTP kernel implementation
2 * (C) Copyright IBM Corp. 2002, 2004
3 * Copyright (c) 2001 Nokia, Inc.
4 * Copyright (c) 2001 La Monte H.P. Yarroll
5 * Copyright (c) 2002-2003 Intel Corp.
6 *
7 * This file is part of the SCTP kernel implementation
8 *

--- 622 unchanged lines hidden (view full) ---

631 struct sctp_association *asoc)
632{
633 struct inet_sock *inet = inet_sk(sk);
634 struct sock *newsk;
635 struct inet_sock *newinet;
636 struct ipv6_pinfo *newnp, *np = inet6_sk(sk);
637 struct sctp6_sock *newsctp6sk;
638
1/* SCTP kernel implementation
2 * (C) Copyright IBM Corp. 2002, 2004
3 * Copyright (c) 2001 Nokia, Inc.
4 * Copyright (c) 2001 La Monte H.P. Yarroll
5 * Copyright (c) 2002-2003 Intel Corp.
6 *
7 * This file is part of the SCTP kernel implementation
8 *

--- 622 unchanged lines hidden (view full) ---

631 struct sctp_association *asoc)
632{
633 struct inet_sock *inet = inet_sk(sk);
634 struct sock *newsk;
635 struct inet_sock *newinet;
636 struct ipv6_pinfo *newnp, *np = inet6_sk(sk);
637 struct sctp6_sock *newsctp6sk;
638
639 newsk = sk_alloc(sk->sk_net, PF_INET6, GFP_KERNEL, sk->sk_prot);
639 newsk = sk_alloc(sock_net(sk), PF_INET6, GFP_KERNEL, sk->sk_prot);
640 if (!newsk)
641 goto out;
642
643 sock_init_data(NULL, newsk);
644
645 newsk->sk_type = SOCK_STREAM;
646
647 newsk->sk_prot = sk->sk_prot;

--- 428 unchanged lines hidden ---
640 if (!newsk)
641 goto out;
642
643 sock_init_data(NULL, newsk);
644
645 newsk->sk_type = SOCK_STREAM;
646
647 newsk->sk_prot = sk->sk_prot;

--- 428 unchanged lines hidden ---