ccid2.c (ec3b67c11df42362ccda81261d62829042f223f0) | ccid2.c (b24b8a247ff65c01b252025926fe564209fae4fc) |
---|---|
1/* 2 * net/dccp/ccids/ccid2.c 3 * 4 * Copyright (c) 2005, 2006 Andrea Bittau <a.bittau@cs.ucl.ac.uk> 5 * 6 * Changes to meet Linux coding standards, and DCCP infrastructure fixes. 7 * 8 * Copyright (c) 2006 Arnaldo Carvalho de Melo <acme@conectiva.com.br> --- 746 unchanged lines hidden (view full) --- 755 if (ccid2_hc_tx_alloc_seq(hctx)) 756 return -ENOMEM; 757 758 hctx->ccid2hctx_rto = 3 * HZ; 759 ccid2_change_srtt(hctx, -1); 760 hctx->ccid2hctx_rttvar = -1; 761 hctx->ccid2hctx_rpdupack = -1; 762 hctx->ccid2hctx_last_cong = jiffies; | 1/* 2 * net/dccp/ccids/ccid2.c 3 * 4 * Copyright (c) 2005, 2006 Andrea Bittau <a.bittau@cs.ucl.ac.uk> 5 * 6 * Changes to meet Linux coding standards, and DCCP infrastructure fixes. 7 * 8 * Copyright (c) 2006 Arnaldo Carvalho de Melo <acme@conectiva.com.br> --- 746 unchanged lines hidden (view full) --- 755 if (ccid2_hc_tx_alloc_seq(hctx)) 756 return -ENOMEM; 757 758 hctx->ccid2hctx_rto = 3 * HZ; 759 ccid2_change_srtt(hctx, -1); 760 hctx->ccid2hctx_rttvar = -1; 761 hctx->ccid2hctx_rpdupack = -1; 762 hctx->ccid2hctx_last_cong = jiffies; |
763 setup_timer(&hctx->ccid2hctx_rtotimer, ccid2_hc_tx_rto_expire, 764 (unsigned long)sk); |
|
763 | 765 |
764 hctx->ccid2hctx_rtotimer.function = &ccid2_hc_tx_rto_expire; 765 hctx->ccid2hctx_rtotimer.data = (unsigned long)sk; 766 init_timer(&hctx->ccid2hctx_rtotimer); 767 | |
768 ccid2_hc_tx_check_sanity(hctx); 769 return 0; 770} 771 772static void ccid2_hc_tx_exit(struct sock *sk) 773{ 774 struct ccid2_hc_tx_sock *hctx = ccid2_hc_tx_sk(sk); 775 int i; --- 60 unchanged lines hidden --- | 766 ccid2_hc_tx_check_sanity(hctx); 767 return 0; 768} 769 770static void ccid2_hc_tx_exit(struct sock *sk) 771{ 772 struct ccid2_hc_tx_sock *hctx = ccid2_hc_tx_sk(sk); 773 int i; --- 60 unchanged lines hidden --- |