llc_conn.c (0dc47877a3de00ceadea0005189656ae8dc52669) | llc_conn.c (3b1e0a655f8eba44ab1ee2a1068d169ccfb853b9) |
---|---|
1/* 2 * llc_conn.c - Driver routines for connection component. 3 * 4 * Copyright (c) 1997 by Procom Technology, Inc. 5 * 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> 6 * 7 * This program can be redistributed or modified under the terms of the 8 * GNU General Public License as published by the Free Software Foundation. --- 686 unchanged lines hidden (view full) --- 695 return llc_conn_state_process(sk, skb); 696} 697 698static struct sock *llc_create_incoming_sock(struct sock *sk, 699 struct net_device *dev, 700 struct llc_addr *saddr, 701 struct llc_addr *daddr) 702{ | 1/* 2 * llc_conn.c - Driver routines for connection component. 3 * 4 * Copyright (c) 1997 by Procom Technology, Inc. 5 * 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> 6 * 7 * This program can be redistributed or modified under the terms of the 8 * GNU General Public License as published by the Free Software Foundation. --- 686 unchanged lines hidden (view full) --- 695 return llc_conn_state_process(sk, skb); 696} 697 698static struct sock *llc_create_incoming_sock(struct sock *sk, 699 struct net_device *dev, 700 struct llc_addr *saddr, 701 struct llc_addr *daddr) 702{ |
703 struct sock *newsk = llc_sk_alloc(sk->sk_net, sk->sk_family, GFP_ATOMIC, | 703 struct sock *newsk = llc_sk_alloc(sock_net(sk), sk->sk_family, GFP_ATOMIC, |
704 sk->sk_prot); 705 struct llc_sock *newllc, *llc = llc_sk(sk); 706 707 if (!newsk) 708 goto out; 709 newllc = llc_sk(newsk); 710 memcpy(&newllc->laddr, daddr, sizeof(newllc->laddr)); 711 memcpy(&newllc->daddr, saddr, sizeof(newllc->daddr)); --- 237 unchanged lines hidden --- | 704 sk->sk_prot); 705 struct llc_sock *newllc, *llc = llc_sk(sk); 706 707 if (!newsk) 708 goto out; 709 newllc = llc_sk(newsk); 710 memcpy(&newllc->laddr, daddr, sizeof(newllc->laddr)); 711 memcpy(&newllc->daddr, saddr, sizeof(newllc->daddr)); --- 237 unchanged lines hidden --- |