Commit dd2189e5 authored by bussotti's avatar bussotti

Trying to solve segmentation fault (cause by the necessity to have a non null...

Trying to solve segmentation fault (cause by the necessity to have a non null context in a function)
parent bdb258ce
...@@ -150,8 +150,15 @@ int main(int argc, char *argv[]) ...@@ -150,8 +150,15 @@ int main(int argc, char *argv[])
printf("4"); printf("4");
pdcp_init_seq_numbers(&pdcp_el); pdcp_init_seq_numbers(&pdcp_el);
printf("5"); printf("5");
protocol_ctxt_t ctxt;
/*pdcp_data_req(NULL, //ctxt_pP ctxt.module_id = 0 ;
ctxt.instance = 0;
ctxt.rnti = 0;
ctxt.enb_flag = 1;
ctxt.frame = 0;
ctxt.subframe = 0;
pdcp_data_req(ctxt, //ctxt_pP
0, //srb_flagP 0, //srb_flagP
3, // rb_id 3, // rb_id
0, // muiP 0, // muiP
...@@ -159,7 +166,7 @@ int main(int argc, char *argv[]) ...@@ -159,7 +166,7 @@ int main(int argc, char *argv[])
DUMMY_BUFFER_SIZE, //sdu_buffer_size DUMMY_BUFFER_SIZE, //sdu_buffer_size
DUMMY_BUFFER, // sdu_buffer DUMMY_BUFFER, // sdu_buffer
PDCP_TRANSMISSION_MODE_DATA, // pdcp_transmission_mod PDCP_TRANSMISSION_MODE_DATA, // pdcp_transmission_mod
0,0);*/ 0,0);
} }
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