Changing SPGW to pass log to lib function.

master
Pedro Alvarez 6 years ago
parent 0e135adc6f
commit dc3cc43e02

@ -369,7 +369,7 @@ spgw::handle_sgi_pdu(srslte::byte_buffer_t *msg)
header.teid = enb_fteid.teid; header.teid = enb_fteid.teid;
//Write header into packet //Write header into packet
if(!srslte::gtpu_write_header(&header, msg)) if(!srslte::gtpu_write_header(&header, msg, m_spgw_log))
{ {
m_spgw_log->console("Error writing GTP-U header on PDU\n"); m_spgw_log->console("Error writing GTP-U header on PDU\n");
} }
@ -395,7 +395,7 @@ spgw::handle_s1u_pdu(srslte::byte_buffer_t *msg)
{ {
//m_spgw_log->console("Received PDU from S1-U. Bytes=%d\n",msg->N_bytes); //m_spgw_log->console("Received PDU from S1-U. Bytes=%d\n",msg->N_bytes);
srslte::gtpu_header_t header; srslte::gtpu_header_t header;
srslte::gtpu_read_header(msg, &header); srslte::gtpu_read_header(msg, &header, m_spgw_log);
//m_spgw_log->console("TEID 0x%x. Bytes=%d\n", header.teid, msg->N_bytes); //m_spgw_log->console("TEID 0x%x. Bytes=%d\n", header.teid, msg->N_bytes);
int n = write(m_sgi_if, msg->msg, msg->N_bytes); int n = write(m_sgi_if, msg->msg, msg->N_bytes);

Loading…
Cancel
Save