27 #ifndef ROHC_DECOMP_FEEDBACK_CREATE_H    28 #define ROHC_DECOMP_FEEDBACK_CREATE_H    30 #include <rohc/rohc.h>    31 #include <rohc/rohc_buf.h>    52 #define FEEDBACK_DATA_MAX_LEN  30    74                                size_t *
const feedback_hdr_len,
    75                                size_t *
const feedback_data_len)
    76         __attribute__((warn_unused_result, nonnull(2, 3)));
    79         __attribute__((nonnull(2)));
    84                  const uint32_t sn_bits,
    85                  const size_t sn_bits_nr,
    87         __attribute__((warn_unused_result, nonnull(6)));
    91                   const uint8_t *
const data,
    92                   const size_t data_len)
    93         __attribute__((warn_unused_result, nonnull(1)));
    99                           const uint8_t *
const crc_table,
   100                           size_t *
const final_size)
   101         __attribute__((warn_unused_result, nonnull(1, 5, 6)));
 rohc_feedback_ack_type
Definition: feedback.h:50
 
rohc_mode_t
ROHC operation modes. 
Definition: rohc.h:109
 
bool rohc_decomp_feedback_size(const struct rohc_buf rohc_data, size_t *const feedback_hdr_len, size_t *const feedback_data_len)
 
rohc_feedback_opt
Definition: feedback.h:60
 
Definition: feedback_create.h:45
 
uint8_t data[FEEDBACK_DATA_MAX_LEN]
The feedback data. 
Definition: feedback_create.h:63
 
rohc_cid_type_t
The different types of Context IDs (CID) 
Definition: rohc.h:174
 
int size
The size of feedback data. 
Definition: feedback_create.h:65
 
Defines a ROHC feedback. 
Definition: feedback_create.h:58
 
enum rohc_feedback_ack_type type
The type of feedback (1 for FEEDBACK-1 and 2 for FEEDBACK-2) 
Definition: feedback_create.h:61
 
Definition: feedback_create.h:46
 
bool f_add_option(struct d_feedback *const feedback, const enum rohc_feedback_opt opt_type, const uint8_t *const data, const size_t data_len)
Add an option data to the FEEDBACK-2 packet. 
Definition: feedback_create.c:236
 
Definition: feedback_create.h:44
 
A network buffer for the ROHC library. 
Definition: rohc_buf.h:102
 
uint8_t * f_wrap_feedback(struct d_feedback *feedback, const uint16_t cid, const rohc_cid_type_t cid_type, const rohc_feedback_crc_t protect_with_crc, const uint8_t *const crc_table, size_t *const final_size)
Wrap the feedback packet and add a CRC option if specified. 
Definition: feedback_create.c:395
 
#define FEEDBACK_DATA_MAX_LEN
The maximum length (in bytes) of the feedback data. 
Definition: feedback_create.h:52
 
rohc_feedback_crc_t
Whether the feedback is protected by a CRC or not. 
Definition: feedback_create.h:42
 
void f_feedback1(const uint32_t sn_bits, struct d_feedback *const feedback)
Build a FEEDBACK-1 packet. 
Definition: feedback_create.c:58
 
rohc_profile_t
The different ROHC compression/decompression profiles. 
Definition: rohc.h:210
 
bool f_feedback2(const rohc_profile_t profile_id, const enum rohc_feedback_ack_type ack_type, const rohc_mode_t mode, const uint32_t sn_bits, const size_t sn_bits_nr, struct d_feedback *const feedback)
Build a FEEDBACK-2 packet. 
Definition: feedback_create.c:85
 
ROHC feedback definitions and formats.