← Back to team overview

rohc team mailing list archive

[Question #246200]: c_get_profile_from_id

 

New question #246200 on rohc:
https://answers.launchpad.net/rohc/+question/246200

Hi,

At 1.6.1, I am a little confused at the line in rohc_comp.c:
/* get uncompressed profile */
		p = c_get_profile_from_id(comp, ROHC_PROFILE_UNCOMPRESSED);
since
// The number allocated for the ROHC Uncompressed profile (RFC 3095, 5.10)
#define ROHC_PROFILE_UNCOMPRESSED  0x0000
/// The number allocated for the ROHC RTP profile (RFC 3095, 8)
#define ROHC_PROFILE_RTP           0x0001

Do I need to change it to ROHC_PROFILE_RTP for RTP compression if I have already know the transmission is RTP?

Also, 
check_profile = c_profiles[i]->check_profile(comp, outer_ip, inner_ip,  protocol, pkt_key);

I always get bool check_profile=0. So that it was shown that skip profile 'RTP / Compressor' (0x0001) because it does not match packet.  I didn't find how check_profile() worked to return 0. If I do, I would like it to return 1 for RTP.

Thanks!

-- 
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.