|
ROHC compression/decompression library
|
ROHC private common definitions and routines. More...


Go to the source code of this file.
Data Structures | |
| struct | rohc_medium |
| ROHC medium (CID characteristics) More... | |
Macros | |
| #define | ROHC_RFC_STRICT_DECOMPRESSOR |
| Be strict while parsing ROHC packet? More... | |
| #define | ROHC_MAX_MRRU 65535 |
| #define | ROHC_PADDING_BYTE 0xe0 |
| The padding field defined by the ROHC protocol. More... | |
Typedefs | |
| typedef uint8_t | bits_nr_t |
| A number of bits required or retrieved. More... | |
Enumerations | |
| enum | rohc_chain_t { ROHC_CHAIN_STATIC = 0, ROHC_CHAIN_DYNAMIC = 1, ROHC_CHAIN_REPLICATE = 2, ROHC_CHAIN_IRREGULAR = 3, ROHC_CHAIN_CO = 4 } |
| The different chains used by the ROHCv1 TCP and ROHCv2 profiles. More... | |
| enum | rohc_ip_id_behavior_t { ROHC_IP_ID_BEHAVIOR_SEQ = 0, ROHC_IP_ID_BEHAVIOR_SEQ_SWAP = 1, ROHC_IP_ID_BEHAVIOR_RAND = 2, ROHC_IP_ID_BEHAVIOR_ZERO = 3 } |
Functions | |
| static char * | rohc_ip_id_behavior_get_descr (const rohc_ip_id_behavior_t behavior) |
| Get a string that describes the given IP-ID behavior. More... | |
ROHC private common definitions and routines.
| #define ROHC_MAX_MRRU 65535 |
The maximal value for MRRU
| #define ROHC_PADDING_BYTE 0xe0 |
The padding field defined by the ROHC protocol.
See RFC 3095, ยง5.2:
Padding Octet
0 1 2 3 4 5 6 7
+---+---+---+---+---+---+---+---+
| 1 1 1 0 0 0 0 0 |
+---+---+---+---+---+---+---+---+
| #define ROHC_RFC_STRICT_DECOMPRESSOR |
Be strict while parsing ROHC packet?
Do we respect the robustness principle as stated in 'The Tao of IETF':
Be conservative in what you send and liberal in what you accept
Source: https://www.ietf.org/about/participate/tao/
Being 'liberal in what you accept' is great for production environments. Being 'strict in what you accept' is great for dev & testing environments.
| typedef uint8_t bits_nr_t |
A number of bits required or retrieved.
| enum rohc_chain_t |
|
inlinestatic |
Get a string that describes the given IP-ID behavior.
| behavior | The type of the option to get a description for |
1.8.14