← Back to team overview

rohc team mailing list archive

Re: [Question #219566]: “How to calcualte the ip_id on decompressor side when RND bit toggles from 1 to 0”.

 

Question #219566 on rohc changed:
https://answers.launchpad.net/rohc/+question/219566

    Status: Open => Answered

Didier Barvaux proposed the following answer:
> yes i mistakenly copy pasted the bullet 3. my question is
> about RND =1 to RND =0 transition itself.

OK.


> 1. For b/..can you point me to the code for reference?

The ip_id_offset_decode() [1] does the job. It is called [2] by
decode_ip_values_from_bits() [3] that is itself called by
decode_values_from_bits() [4] to decode all bits extracted from
the ROHC header.

[1] http://bazaar.launchpad.net/~didier-barvaux/rohc/main/view/head:/src/common/ip_id_offset_decode.c#L100
[2] http://bazaar.launchpad.net/~didier-barvaux/rohc/main/view/head:/src/decomp/d_generic.c#L8547
[3] http://bazaar.launchpad.net/~didier-barvaux/rohc/main/view/head:/src/decomp/d_generic.c#L8547
[4] http://bazaar.launchpad.net/~didier-barvaux/rohc/main/view/head:/src/decomp/d_generic.c#L8214


> 2. If the offset IP-ID decoded at step a is not used then why do
> we need to compute or store the IP id offset when packet with
> RND bit set to 1 arrives?

For W-LSB decoding: https://tools.ietf.org/html/rfc3095#section-4.5.2


Regards,
Didier

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