← Back to team overview

rohc team mailing list archive

Re: [Question #403875]: make check failure

 

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

Didier Barvaux proposed the following answer:
Hello,

The IP version variable in the code of the ROHC library is either used
for the real IP version of the IP packet (values 4 or 6) or either for
advertising some problem. In your case, the problem is a malformed IPv4
header (special value 1). The malformation is the unexpected total
length. That's why the correction of the total length changed the value
from 1 to 4.

All the possible values are stored in the following enum:

/// IP version
typedef enum
{
   /// IP version 4
   IPV4 = 4,
   /// IP version 6
   IPV6 = 6,
   /// not IP
   IP_UNKNOWN = 0,
   /// IP version 4 (malformed)
   IPV4_MALFORMED = 1,
   /// IP version 6 (malformed)
   IPV6_MALFORMED = 2,
} ip_version;

Regards,
Didier

-- 
You received this question notification because your team ROHC Team is
an answer contact for rohc.