 if (sock_flag(osk, SOCK_ZAPPED)) sock_set_flag(sk, SOCK_ZAPPED);  if (sock_flag(osk, SOCK_DBG)) sock_set_flag(sk, SOCK_DBG); 
sock_copy_flags(sk, osk); 
static struct sock *nr_make_new(struct sock *osk){	struct sock *sk;	struct nr_sock *nr, *onr;	if (osk->sk_type != SOCK_SEQPACKET)		return NULL;	if ((sk = sk_alloc(PF_NETROM, GFP_ATOMIC, osk->sk_prot, 1)) == NULL)		return NULL;	nr = nr_sk(sk);	sock_init_data(NULL, sk);	sk->sk_type     = osk->sk_type;	sk->sk_socket   = osk->sk_socket;	sk->sk_priority = osk->sk_priority;	sk->sk_protocol = osk->sk_protocol;	sk->sk_rcvbuf   = osk->sk_rcvbuf;	sk->sk_sndbuf   = osk->sk_sndbuf;	sk->sk_state    = TCP_ESTABLISHED;	sk->sk_sleep    = osk->sk_sleep;	if (sock_flag(osk, SOCK_ZAPPED))		sock_set_flag(sk, SOCK_ZAPPED);	if (sock_flag(osk, SOCK_DBG))		sock_set_flag(sk, SOCK_DBG);	skb_queue_head_init(&nr->ack_queue);	skb_queue_head_init(&nr->reseq_queue);	skb_queue_head_init(&nr->frag_queue);	nr_init_timers(sk);	onr = nr_sk(osk);	nr->t1      = onr->t1;	nr->t2      = onr->t2;	nr->n2      = onr->n2;	nr->t4      = onr->t4;	nr->idle    = onr->idle;	nr->window  = onr->window;	nr->device  = onr->device;	nr->bpqext  = onr->bpqext;	return sk;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/53b924b31fa53ac3007df3fef6870d5074a9adf8/af_netrom.c/buggy/net/netrom/af_netrom.c