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> 40 #define FEEDBACK_DATA_MAX_LEN 30 62 size_t *
const feedback_hdr_len,
63 size_t *
const feedback_data_len)
64 __attribute__((warn_unused_result, nonnull(2, 3)));
67 __attribute__((nonnull(2)));
72 const uint32_t sn_bits,
73 const size_t sn_bits_nr,
75 __attribute__((warn_unused_result, nonnull(6)));
79 const uint8_t *
const data,
80 const size_t data_len)
81 __attribute__((warn_unused_result, nonnull(1)));
87 const uint8_t *
const crc_table,
88 size_t *
const final_size)
89 __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:111
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:72
uint8_t data[FEEDBACK_DATA_MAX_LEN]
The feedback data.
Definition: feedback_create.h:51
rohc_cid_type_t
The different types of Context IDs (CID)
Definition: rohc.h:176
int size
The size of feedback data.
Definition: feedback_create.h:53
Defines a ROHC feedback.
Definition: feedback_create.h:46
enum rohc_feedback_ack_type type
The type of feedback (1 for FEEDBACK-1 and 2 for FEEDBACK-2)
Definition: feedback_create.h:49
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:249
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:408
#define FEEDBACK_DATA_MAX_LEN
The maximum length (in bytes) of the feedback data.
Definition: feedback_create.h:40
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_profiles.h:70
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.
rohc_feedback_crc_t
Whether the feedback is protected by a CRC or not.
Definition: feedback.h:62