Commit bc2e4dcc authored by Laurent THOMAS's avatar Laurent THOMAS

fix after merge and a ci bug (containers)

parent a9199289
...@@ -96,20 +96,15 @@ static void read_pipe(int p, char *b, int size) { ...@@ -96,20 +96,15 @@ static void read_pipe(int p, char *b, int size) {
} }
} }
int checkIfFedoraDistribution(void) { int checkIfFedoraDistribution(void) {
return system("grep -iq 'ID_LIKE.*fedora' /etc/os-release "); return !system("grep -iq 'ID_LIKE.*fedora' /etc/os-release ");
} }
int checkIfGenericKernelOnFedora(void) { int checkIfGenericKernelOnFedora(void) {
int ret=system("uname -a | grep -q rt"); return system("uname -a | grep -q rt");
return 1 - ret;
} }
int checkIfInsideContainer(void) { int checkIfInsideContainer(void) {
int res=system("egrep -q 'libpod|podman|kubepods' /proc/self/cgroup"); return !system("egrep -q 'libpod|podman|kubepods' /proc/self/cgroup");
if (res > 0)
return 1;
else
return 0;
} }
/********************************************************************/ /********************************************************************/
......
...@@ -254,7 +254,6 @@ static void do_pdcp_data_ind( ...@@ -254,7 +254,6 @@ static void do_pdcp_data_ind(
//ctxt_pP->enb_flag != 1 || //ctxt_pP->enb_flag != 1 ||
ctxt_pP->instance != 0 || ctxt_pP->instance != 0 ||
ctxt_pP->eNB_index != 0 || ctxt_pP->eNB_index != 0 ||
ctxt_pP->configured != 1 ||
ctxt_pP->brOption != 0) { ctxt_pP->brOption != 0) {
LOG_E(PDCP, "%s:%d:%s: fatal\n", __FILE__, __LINE__, __FUNCTION__); LOG_E(PDCP, "%s:%d:%s: fatal\n", __FILE__, __LINE__, __FUNCTION__);
exit(1); exit(1);
...@@ -374,7 +373,9 @@ boolean_t pdcp_data_ind( ...@@ -374,7 +373,9 @@ boolean_t pdcp_data_ind(
const MBMS_flag_t MBMS_flagP, const MBMS_flag_t MBMS_flagP,
const rb_id_t rb_id, const rb_id_t rb_id,
const sdu_size_t sdu_buffer_size, const sdu_size_t sdu_buffer_size,
mem_block_t *const sdu_buffer) mem_block_t *const sdu_buffer,
const uint32_t *const srcID,
const uint32_t *const dstID)
{ {
enqueue_pdcp_data_ind(ctxt_pP, enqueue_pdcp_data_ind(ctxt_pP,
srb_flagP, srb_flagP,
......
...@@ -306,7 +306,7 @@ nr_rrc_pdcp_config_security( ...@@ -306,7 +306,7 @@ nr_rrc_pdcp_config_security(
uint8_t *kRRCenc = NULL; uint8_t *kRRCenc = NULL;
uint8_t *kRRCint = NULL; uint8_t *kRRCint = NULL;
uint8_t *kUPenc = NULL; uint8_t *kUPenc = NULL;
uint8_t *k_kdf = NULL; //uint8_t *k_kdf = NULL;
static int print_keys= 1; static int print_keys= 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment