Removed exit call in PDCP PDU handling functions
This commit is contained in:
@@ -24,13 +24,17 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "common/utils/LOG/log.h"
|
||||||
|
|
||||||
void nr_pdcp_entity_drb_am_recv_pdu(nr_pdcp_entity_t *_entity, char *buffer, int size)
|
void nr_pdcp_entity_drb_am_recv_pdu(nr_pdcp_entity_t *_entity, char *buffer, int size)
|
||||||
{
|
{
|
||||||
nr_pdcp_entity_drb_am_t *entity = (nr_pdcp_entity_drb_am_t *)_entity;
|
nr_pdcp_entity_drb_am_t *entity = (nr_pdcp_entity_drb_am_t *)_entity;
|
||||||
|
|
||||||
if (size < 3) abort();
|
if (size < 3) abort();
|
||||||
if (!(buffer[0] & 0x80)) { printf("%s:%d:%s: fatal\n", __FILE__, __LINE__, __FUNCTION__); exit(1); }
|
|
||||||
|
if (!(buffer[0] & 0x80))
|
||||||
|
LOG_E(PDCP, "%s:%d:%s: fatal\n", __FILE__, __LINE__, __FUNCTION__);
|
||||||
|
|
||||||
entity->common.deliver_sdu(entity->common.deliver_sdu_data,
|
entity->common.deliver_sdu(entity->common.deliver_sdu_data,
|
||||||
(nr_pdcp_entity_t *)entity, buffer+3, size-3);
|
(nr_pdcp_entity_t *)entity, buffer+3, size-3);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -410,7 +410,6 @@ static void deliver_sdu_drb(void *_ue, nr_pdcp_entity_t *entity,
|
|||||||
len = write(nas_sock_fd[0], buf, size);
|
len = write(nas_sock_fd[0], buf, size);
|
||||||
if (len != size) {
|
if (len != size) {
|
||||||
LOG_E(PDCP, "%s:%d:%s: fatal\n", __FILE__, __LINE__, __FUNCTION__);
|
LOG_E(PDCP, "%s:%d:%s: fatal\n", __FILE__, __LINE__, __FUNCTION__);
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
Reference in New Issue
Block a user