rohc team mailing list archive
-
rohc team
-
Mailing list archive
-
Message #01374
Re: [Question #235855]: There is a bug in function c_find_context maybe
Question #235855 on rohc changed:
https://answers.launchpad.net/rohc/+question/235855
Status: Open => Answered
Didier Barvaux proposed the following answer:
Hello,
There is no bug. If c->profile->check_context(c, ip) returns -1, it
means that the profile is unable to compress the packet. In such case,
all next c->profile->check_context(c, ip) calls will return -1 too, so
better break the loop.
Such a case may happen if you try to compress a malformed packet for
example. If so, another compression profile is used instead of the
current one, eg. the Uncompressed profile that accepts any packet (even
non-IP packets).
Regards,
Didier
Note: you're using one 1.5.x version of the library (this code changed
since then), you might want to read the source code of newer versions
(1.6.1) or even the dev branch if you want to make some modifications on
the library.
--
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.