aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ccids
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-09-09 01:30:07 -0400
committerArnaldo Carvalho de Melo <acme@mandriva.com>2005-09-09 01:30:07 -0400
commit507d37cf269ebbd1b32bcc435fe577e411f73151 (patch)
tree68b797a2f2c8645a86ac1a5f521df6b8873d9338 /net/dccp/ccids
parent0ba7a3ba6608de6e0c0bfe3009a63d7e0b7ab0ce (diff)
[CCID] Only call the HC insert_options methods when requested
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp/ccids')
-rw-r--r--net/dccp/ccids/ccid3.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c
index ae0500c79d07..37fd9eb8daaf 100644
--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -358,10 +358,12 @@ static int ccid3_hc_tx_send_packet(struct sock *sk,
358 } 358 }
359 359
360 /* Can we send? if so add options and add to packet history */ 360 /* Can we send? if so add options and add to packet history */
361 if (rc == 0) 361 if (rc == 0) {
362 dp->dccps_hc_tx_insert_options = 1;
362 new_packet->dccphtx_ccval = 363 new_packet->dccphtx_ccval =
363 DCCP_SKB_CB(skb)->dccpd_ccval = 364 DCCP_SKB_CB(skb)->dccpd_ccval =
364 hctx->ccid3hctx_last_win_count; 365 hctx->ccid3hctx_last_win_count;
366 }
365out: 367out:
366 return rc; 368 return rc;
367} 369}
@@ -811,6 +813,7 @@ static void ccid3_hc_rx_send_feedback(struct sock *sk)
811 hcrx->ccid3hcrx_pinv = ~0; 813 hcrx->ccid3hcrx_pinv = ~0;
812 else 814 else
813 hcrx->ccid3hcrx_pinv = 1000000 / hcrx->ccid3hcrx_p; 815 hcrx->ccid3hcrx_pinv = 1000000 / hcrx->ccid3hcrx_p;
816 dp->dccps_hc_rx_insert_options = 1;
814 dccp_send_ack(sk); 817 dccp_send_ack(sk);
815} 818}
816 819