llc_conn.c (97a4649d6ffce4a5d7f5ce018d87a6cefcb4ad03) | llc_conn.c (b24b8a247ff65c01b252025926fe564209fae4fc) |
---|---|
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. --- 817 unchanged lines hidden (view full) --- 826static void llc_sk_init(struct sock* sk) 827{ 828 struct llc_sock *llc = llc_sk(sk); 829 830 llc->state = LLC_CONN_STATE_ADM; 831 llc->inc_cntr = llc->dec_cntr = 2; 832 llc->dec_step = llc->connect_step = 1; 833 | 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. --- 817 unchanged lines hidden (view full) --- 826static void llc_sk_init(struct sock* sk) 827{ 828 struct llc_sock *llc = llc_sk(sk); 829 830 llc->state = LLC_CONN_STATE_ADM; 831 llc->inc_cntr = llc->dec_cntr = 2; 832 llc->dec_step = llc->connect_step = 1; 833 |
834 init_timer(&llc->ack_timer.timer); | 834 setup_timer(&llc->ack_timer.timer, llc_conn_ack_tmr_cb, 835 (unsigned long)sk); |
835 llc->ack_timer.expire = sysctl_llc2_ack_timeout; | 836 llc->ack_timer.expire = sysctl_llc2_ack_timeout; |
836 llc->ack_timer.timer.data = (unsigned long)sk; 837 llc->ack_timer.timer.function = llc_conn_ack_tmr_cb; | |
838 | 837 |
839 init_timer(&llc->pf_cycle_timer.timer); | 838 setup_timer(&llc->pf_cycle_timer.timer, llc_conn_pf_cycle_tmr_cb, 839 (unsigned long)sk); |
840 llc->pf_cycle_timer.expire = sysctl_llc2_p_timeout; | 840 llc->pf_cycle_timer.expire = sysctl_llc2_p_timeout; |
841 llc->pf_cycle_timer.timer.data = (unsigned long)sk; 842 llc->pf_cycle_timer.timer.function = llc_conn_pf_cycle_tmr_cb; | |
843 | 841 |
844 init_timer(&llc->rej_sent_timer.timer); | 842 setup_timer(&llc->rej_sent_timer.timer, llc_conn_rej_tmr_cb, 843 (unsigned long)sk); |
845 llc->rej_sent_timer.expire = sysctl_llc2_rej_timeout; | 844 llc->rej_sent_timer.expire = sysctl_llc2_rej_timeout; |
846 llc->rej_sent_timer.timer.data = (unsigned long)sk; 847 llc->rej_sent_timer.timer.function = llc_conn_rej_tmr_cb; | |
848 | 845 |
849 init_timer(&llc->busy_state_timer.timer); | 846 setup_timer(&llc->busy_state_timer.timer, llc_conn_busy_tmr_cb, 847 (unsigned long)sk); |
850 llc->busy_state_timer.expire = sysctl_llc2_busy_timeout; | 848 llc->busy_state_timer.expire = sysctl_llc2_busy_timeout; |
851 llc->busy_state_timer.timer.data = (unsigned long)sk; 852 llc->busy_state_timer.timer.function = llc_conn_busy_tmr_cb; | |
853 854 llc->n2 = 2; /* max retransmit */ 855 llc->k = 2; /* tx win size, will adjust dynam */ 856 llc->rw = 128; /* rx win size (opt and equal to 857 * tx_win of remote LLC) */ 858 skb_queue_head_init(&llc->pdu_unack_q); 859 sk->sk_backlog_rcv = llc_backlog_rcv; 860} --- 92 unchanged lines hidden --- | 849 850 llc->n2 = 2; /* max retransmit */ 851 llc->k = 2; /* tx win size, will adjust dynam */ 852 llc->rw = 128; /* rx win size (opt and equal to 853 * tx_win of remote LLC) */ 854 skb_queue_head_init(&llc->pdu_unack_q); 855 sk->sk_backlog_rcv = llc_backlog_rcv; 856} --- 92 unchanged lines hidden --- |