ccid3.c (9156ad48338e0306e508ead5c0d9986050744475) ccid3.c (b24b8a247ff65c01b252025926fe564209fae4fc)
1/*
2 * net/dccp/ccids/ccid3.c
3 *
4 * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand.
5 * Copyright (c) 2005-7 Ian McDonald <ian.mcdonald@jandi.co.nz>
6 *
7 * An implementation of the DCCP protocol
8 *

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

601}
602
603static int ccid3_hc_tx_init(struct ccid *ccid, struct sock *sk)
604{
605 struct ccid3_hc_tx_sock *hctx = ccid_priv(ccid);
606
607 hctx->ccid3hctx_state = TFRC_SSTATE_NO_SENT;
608 INIT_LIST_HEAD(&hctx->ccid3hctx_hist);
1/*
2 * net/dccp/ccids/ccid3.c
3 *
4 * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand.
5 * Copyright (c) 2005-7 Ian McDonald <ian.mcdonald@jandi.co.nz>
6 *
7 * An implementation of the DCCP protocol
8 *

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

601}
602
603static int ccid3_hc_tx_init(struct ccid *ccid, struct sock *sk)
604{
605 struct ccid3_hc_tx_sock *hctx = ccid_priv(ccid);
606
607 hctx->ccid3hctx_state = TFRC_SSTATE_NO_SENT;
608 INIT_LIST_HEAD(&hctx->ccid3hctx_hist);
609 setup_timer(&hctx->ccid3hctx_no_feedback_timer,
610 ccid3_hc_tx_no_feedback_timer, (unsigned long)sk);
609
611
610 hctx->ccid3hctx_no_feedback_timer.function =
611 ccid3_hc_tx_no_feedback_timer;
612 hctx->ccid3hctx_no_feedback_timer.data = (unsigned long)sk;
613 init_timer(&hctx->ccid3hctx_no_feedback_timer);
614
615 return 0;
616}
617
618static void ccid3_hc_tx_exit(struct sock *sk)
619{
620 struct ccid3_hc_tx_sock *hctx = ccid3_hc_tx_sk(sk);
621
622 ccid3_hc_tx_set_state(sk, TFRC_SSTATE_TERM);

--- 477 unchanged lines hidden ---
612 return 0;
613}
614
615static void ccid3_hc_tx_exit(struct sock *sk)
616{
617 struct ccid3_hc_tx_sock *hctx = ccid3_hc_tx_sk(sk);
618
619 ccid3_hc_tx_set_state(sk, TFRC_SSTATE_TERM);

--- 477 unchanged lines hidden ---