ns-allinone-2.35/ns-2.35/dccp/dccp.cc
int DCCPAgent::headerSize(dccp_packet_type type){
	if (type < DCCP_NUM_PTYPES && type >= 0)
		return hdr_size_[type];
	else
		return 0;
}
/* Return the header size (without options) of a packet type
 * arg: type - packet type
 * ret: header size
 */
Return the header size (without options) of a packet type
arg: type - packet type
ret: header size
Return the header size ( without options ) of a packet type arg : type - packet type ret : header size
int DCCPAgent::headerSize(dccp_packet_type type){
	if (type < DCCP_NUM_PTYPES && type >= 0)
		return hdr_size_[type];
	else
		return 0;
}
int DCCPAgent :: headerSize ( dccp_packet_type type ) { if ( type < DCCP_NUM_PTYPES && type >= 0 ) return hdr_size_ [ type ] ; else return 0 ; }
Return the header size (without options) of a packet type
 arg: type - packet type
 ret: header size
Return the header size ( without options ) of a packet type arg : type - packet type ret : header size