mirror of https://github.com/PentHertz/srsLTE.git
Adding default initializers to PDCP config.
This commit is contained in:
parent
494be243c0
commit
3da0391fff
|
@ -91,12 +91,12 @@ public:
|
||||||
hdr_len_bytes = ceil((float)sn_len / 8);
|
hdr_len_bytes = ceil((float)sn_len / 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t bearer_id;
|
uint8_t bearer_id = 1;
|
||||||
pdcp_rb_type_t rb_type;
|
pdcp_rb_type_t rb_type = PDCP_RB_IS_DRB;
|
||||||
security_direction_t tx_direction;
|
security_direction_t tx_direction = SECURITY_DIRECTION_DOWNLINK;
|
||||||
security_direction_t rx_direction;
|
security_direction_t rx_direction = SECURITY_DIRECTION_UPLINK;
|
||||||
uint8_t sn_len;
|
uint8_t sn_len = PDCP_SN_LEN_12;
|
||||||
uint8_t hdr_len_bytes;
|
uint8_t hdr_len_bytes = 2;
|
||||||
|
|
||||||
// TODO: Support the following configurations
|
// TODO: Support the following configurations
|
||||||
// bool do_rohc;
|
// bool do_rohc;
|
||||||
|
|
|
@ -38,6 +38,7 @@ typedef enum {
|
||||||
CIPHERING_ALGORITHM_ID_N_ITEMS,
|
CIPHERING_ALGORITHM_ID_N_ITEMS,
|
||||||
} CIPHERING_ALGORITHM_ID_ENUM;
|
} CIPHERING_ALGORITHM_ID_ENUM;
|
||||||
static const char ciphering_algorithm_id_text[CIPHERING_ALGORITHM_ID_N_ITEMS][20] = {"EEA0", "128-EEA1", "128-EEA2"};
|
static const char ciphering_algorithm_id_text[CIPHERING_ALGORITHM_ID_N_ITEMS][20] = {"EEA0", "128-EEA1", "128-EEA2"};
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
INTEGRITY_ALGORITHM_ID_EIA0 = 0,
|
INTEGRITY_ALGORITHM_ID_EIA0 = 0,
|
||||||
INTEGRITY_ALGORITHM_ID_128_EIA1,
|
INTEGRITY_ALGORITHM_ID_128_EIA1,
|
||||||
|
|
Loading…
Reference in New Issue