aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/options.c')
-rw-r--r--net/dccp/options.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/net/dccp/options.c b/net/dccp/options.c
index 382c5894acb2..7ad2f4266ff9 100644
--- a/net/dccp/options.c
+++ b/net/dccp/options.c
@@ -505,13 +505,18 @@ void dccp_insert_options(struct sock *sk, struct sk_buff *skb)
505 (dp->dccps_hc_rx_ackpkts->dccpap_buf_ackno != 505 (dp->dccps_hc_rx_ackpkts->dccpap_buf_ackno !=
506 DCCP_MAX_SEQNO + 1)) 506 DCCP_MAX_SEQNO + 1))
507 dccp_insert_option_ack_vector(sk, skb); 507 dccp_insert_option_ack_vector(sk, skb);
508
509 if (dp->dccps_timestamp_echo != 0) 508 if (dp->dccps_timestamp_echo != 0)
510 dccp_insert_option_timestamp_echo(sk, skb); 509 dccp_insert_option_timestamp_echo(sk, skb);
511 } 510 }
512 511
513 ccid_hc_rx_insert_options(dp->dccps_hc_rx_ccid, sk, skb); 512 if (dp->dccps_hc_rx_insert_options) {
514 ccid_hc_tx_insert_options(dp->dccps_hc_tx_ccid, sk, skb); 513 ccid_hc_rx_insert_options(dp->dccps_hc_rx_ccid, sk, skb);
514 dp->dccps_hc_rx_insert_options = 0;
515 }
516 if (dp->dccps_hc_tx_insert_options) {
517 ccid_hc_tx_insert_options(dp->dccps_hc_tx_ccid, sk, skb);
518 dp->dccps_hc_tx_insert_options = 0;
519 }
515 520
516 /* XXX: insert other options when appropriate */ 521 /* XXX: insert other options when appropriate */
517 522