|
@@ -96,18 +96,11 @@ int dccp_parse_options(struct sock *sk, struct dccp_request_sock *dreq,
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
- * CCID-Specific Options (from RFC 4340, sec. 10.3):
|
|
|
|
- *
|
|
|
|
- * Option numbers 128 through 191 are for options sent from the
|
|
|
|
- * HC-Sender to the HC-Receiver; option numbers 192 through 255
|
|
|
|
- * are for options sent from the HC-Receiver to the HC-Sender.
|
|
|
|
- *
|
|
|
|
* CCID-specific options are ignored during connection setup, as
|
|
* CCID-specific options are ignored during connection setup, as
|
|
* negotiation may still be in progress (see RFC 4340, 10.3).
|
|
* negotiation may still be in progress (see RFC 4340, 10.3).
|
|
* The same applies to Ack Vectors, as these depend on the CCID.
|
|
* The same applies to Ack Vectors, as these depend on the CCID.
|
|
- *
|
|
|
|
*/
|
|
*/
|
|
- if (dreq != NULL && (opt >= 128 ||
|
|
|
|
|
|
+ if (dreq != NULL && (opt >= DCCPO_MIN_RX_CCID_SPECIFIC ||
|
|
opt == DCCPO_ACK_VECTOR_0 || opt == DCCPO_ACK_VECTOR_1))
|
|
opt == DCCPO_ACK_VECTOR_0 || opt == DCCPO_ACK_VECTOR_1))
|
|
goto ignore_option;
|
|
goto ignore_option;
|
|
|
|
|
|
@@ -226,12 +219,12 @@ int dccp_parse_options(struct sock *sk, struct dccp_request_sock *dreq,
|
|
dccp_pr_debug("%s rx opt: ELAPSED_TIME=%d\n",
|
|
dccp_pr_debug("%s rx opt: ELAPSED_TIME=%d\n",
|
|
dccp_role(sk), elapsed_time);
|
|
dccp_role(sk), elapsed_time);
|
|
break;
|
|
break;
|
|
- case 128 ... 191:
|
|
|
|
|
|
+ case DCCPO_MIN_RX_CCID_SPECIFIC ... DCCPO_MAX_RX_CCID_SPECIFIC:
|
|
if (ccid_hc_rx_parse_options(dp->dccps_hc_rx_ccid, sk,
|
|
if (ccid_hc_rx_parse_options(dp->dccps_hc_rx_ccid, sk,
|
|
pkt_type, opt, value, len))
|
|
pkt_type, opt, value, len))
|
|
goto out_invalid_option;
|
|
goto out_invalid_option;
|
|
break;
|
|
break;
|
|
- case 192 ... 255:
|
|
|
|
|
|
+ case DCCPO_MIN_TX_CCID_SPECIFIC ... DCCPO_MAX_TX_CCID_SPECIFIC:
|
|
if (ccid_hc_tx_parse_options(dp->dccps_hc_tx_ccid, sk,
|
|
if (ccid_hc_tx_parse_options(dp->dccps_hc_tx_ccid, sk,
|
|
pkt_type, opt, value, len))
|
|
pkt_type, opt, value, len))
|
|
goto out_invalid_option;
|
|
goto out_invalid_option;
|