int osmo_rlp_decode(struct osmo_rlp_frame_decoded *out, uint8_t version, const uint8_t *data, size_t data_len)
decode a RLP frame into its abstract representation.
Definition: rlp.c:69
osmo_rlp_u_ftype
RLP U-Frame Type as per 3GPP TS 24.022 Section 5.2.1.
Definition: rlp.h:39
int osmo_rlp_encode(uint8_t *out, size_t out_size, const struct osmo_rlp_frame_decoded *in)
encode a RLP frame from its abstract representation.
Definition: rlp.c:122
const struct value_string osmo_rlp_ftype_u_vals[]
Definition: rlp.c:39
osmo_rlp_s_ftype
RLP S-Frame type as per 3GPP TS 24.022 Section 5.2.1.
Definition: rlp.h:53
const struct value_string osmo_rlp_ftype_s_vals[]
Definition: rlp.c:52
uint32_t osmo_rlp_fcs_compute(const uint8_t *in, size_t in_len)
compute RLP FCS according to 3GPP TS 24.022 Section 4.4.
Definition: rlp.c:230
const struct value_string osmo_rlp_ftype_vals[]
Definition: rlp.c:32
osmo_rlp_ftype
RLP frame type as per 3GPP TS 24.022 Section 5.2.1.
Definition: rlp.h:31
@ OSMO_RLP_U_FT_REMAP
Definition: rlp.h:48
@ OSMO_RLP_U_FT_TEST
Definition: rlp.h:47
@ OSMO_RLP_U_FT_XID
Definition: rlp.h:46
@ OSMO_RLP_U_FT_UI
Definition: rlp.h:45
@ OSMO_RLP_U_FT_DISC
Definition: rlp.h:42
@ OSMO_RLP_U_FT_DM
Definition: rlp.h:43
@ OSMO_RLP_U_FT_SABM
Definition: rlp.h:40
@ OSMO_RLP_U_FT_NULL
Definition: rlp.h:44
@ OSMO_RLP_U_FT_UA
Definition: rlp.h:41
@ OSMO_RLP_S_FT_SREJ
Definition: rlp.h:57
@ OSMO_RLP_S_FT_RR
Definition: rlp.h:54
@ OSMO_RLP_S_FT_RNR
Definition: rlp.h:56
@ OSMO_RLP_S_FT_REJ
Definition: rlp.h:55
@ OSMO_RLP_FT_S
Definition: rlp.h:33
@ OSMO_RLP_FT_IS
Definition: rlp.h:34
@ OSMO_RLP_FT_U
Definition: rlp.h:32
char version[20]
Definition: ipaccess.h:10
Data structure representing one decoded RLP frame.
Definition: rlp.h:62
enum osmo_rlp_ftype ftype
Definition: rlp.h:64
bool p_f
Definition: rlp.h:68
uint16_t info_len
Definition: rlp.h:74
uint32_t fcs
Definition: rlp.h:72
uint16_t n_s
Definition: rlp.h:70
uint8_t s_bits
Definition: rlp.h:69
bool c_r
Definition: rlp.h:67
uint16_t n_r
Definition: rlp.h:71
uint8_t version
Definition: rlp.h:63
uint8_t info[536/8]
Definition: rlp.h:73
enum osmo_rlp_u_ftype u_ftype
Definition: rlp.h:65
enum osmo_rlp_s_ftype s_ftype
Definition: rlp.h:66