ns-allinone-2.35/ns-2.35/dccp/dccp.cc
dccp_feature_type DCCPAgent::getFeatureType(u_int8_t num){
	switch(num){
	case DCCP_FEAT_CC:
	case DCCP_FEAT_ECN:
	case DCCP_FEAT_ACKV:
	case DCCP_FEAT_Q_SCHEME:
		return DCCP_FEAT_TYPE_SP;
		break;
	case DCCP_FEAT_ACK_RATIO:
	case DCCP_FEAT_Q:
		return DCCP_FEAT_TYPE_NN;
	default:
		return DCCP_FEAT_TYPE_UNKNOWN;
	}
}
/* Obtain the feature type
 * arg: num      - feature number
 * ret: the feature type, or DCCP_FEAT_TYPE_UKNOWN if unknown
 */
Obtain the feature type
arg: num      - feature number
ret: the feature type, or DCCP_FEAT_TYPE_UKNOWN if unknown
Obtain the feature type arg : num - feature number ret : the feature type or DCCP_FEAT_TYPE_UKNOWN if unknown
dccp_feature_type DCCPAgent::getFeatureType(u_int8_t num){
	switch(num){
	case DCCP_FEAT_CC:
	case DCCP_FEAT_ECN:
	case DCCP_FEAT_ACKV:
	case DCCP_FEAT_Q_SCHEME:
		return DCCP_FEAT_TYPE_SP;
		break;
	case DCCP_FEAT_ACK_RATIO:
	case DCCP_FEAT_Q:
		return DCCP_FEAT_TYPE_NN;
	default:
		return DCCP_FEAT_TYPE_UNKNOWN;
	}
}
dccp_feature_type DCCPAgent :: getFeatureType ( u_int8_t num ) { switch ( num ) { case DCCP_FEAT_CC : case DCCP_FEAT_ECN : case DCCP_FEAT_ACKV : case DCCP_FEAT_Q_SCHEME : return DCCP_FEAT_TYPE_SP ; break ; case DCCP_FEAT_ACK_RATIO : case DCCP_FEAT_Q : return DCCP_FEAT_TYPE_NN ; default : return DCCP_FEAT_TYPE_UNKNOWN ; } }
Obtain the feature type
 arg: num      - feature number
 ret: the feature type, or DCCP_FEAT_TYPE_UKNOWN if unknown
Obtain the feature type arg : num - feature number ret : the feature type or DCCP_FEAT_TYPE_UKNOWN if unknown