llc_station.c (5a84d159061d914c8dd4aa372ac6e9529c2be453) llc_station.c (b24b8a247ff65c01b252025926fe564209fae4fc)
1/*
2 * llc_station.c - station component of LLC
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.

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

683{
684 u16 rc = -ENOBUFS;
685 struct sk_buff *skb;
686 struct llc_station_state_ev *ev;
687
688 skb_queue_head_init(&llc_main_station.mac_pdu_q);
689 skb_queue_head_init(&llc_main_station.ev_q.list);
690 spin_lock_init(&llc_main_station.ev_q.lock);
1/*
2 * llc_station.c - station component of LLC
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.

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

683{
684 u16 rc = -ENOBUFS;
685 struct sk_buff *skb;
686 struct llc_station_state_ev *ev;
687
688 skb_queue_head_init(&llc_main_station.mac_pdu_q);
689 skb_queue_head_init(&llc_main_station.ev_q.list);
690 spin_lock_init(&llc_main_station.ev_q.lock);
691 init_timer(&llc_main_station.ack_timer);
692 llc_main_station.ack_timer.data = (unsigned long)&llc_main_station;
693 llc_main_station.ack_timer.function = llc_station_ack_tmr_cb;
691 setup_timer(&llc_main_station.ack_timer, llc_station_ack_tmr_cb,
692 (unsigned long)&llc_main_station);
694 llc_main_station.ack_timer.expires = jiffies +
695 sysctl_llc_station_ack_timeout;
696 skb = alloc_skb(0, GFP_ATOMIC);
697 if (!skb)
698 goto out;
699 rc = 0;
700 llc_set_station_handler(llc_station_rcv);
701 ev = llc_station_ev(skb);

--- 14 unchanged lines hidden ---
693 llc_main_station.ack_timer.expires = jiffies +
694 sysctl_llc_station_ack_timeout;
695 skb = alloc_skb(0, GFP_ATOMIC);
696 if (!skb)
697 goto out;
698 rc = 0;
699 llc_set_station_handler(llc_station_rcv);
700 ev = llc_station_ev(skb);

--- 14 unchanged lines hidden ---