/* dccp_feat_index - Hash function to map feature number into array position Returns consecutive array index or -1 if the feature is not understood.  */
static int dccp_feat_index(u8 feat_num)
/* dccp_feat_index - Hash function to map feature number into array position Returns consecutive array index or -1 if the feature is not understood.  */
static int dccp_feat_index(u8 feat_num)
{
	if (feat_num > DCCPF_RESERVED && feat_num <= DCCPF_DATA_CHECKSUM)
		return feat_num - 1;
	switch (feat_num) {
	case DCCPF_SEND_LEV_RATE:
			return DCCP_FEAT_SUPPORTED_MAX - 1;
	}
	return -1;
}