mirror of https://github.com/PentHertz/srsLTE.git
Make sure SCTP notifications are not handled. Improve logging of SCTP ASSOC CHANGE
This commit is contained in:
parent
5f837c0c67
commit
5735118ea0
|
@ -564,6 +564,9 @@ bool s1ap::handle_mme_rx_msg(srsran::unique_byte_buffer_t pdu,
|
||||||
logger.info("SCTP peer addres unreachable. Association: %d", sri.sinfo_assoc_id);
|
logger.info("SCTP peer addres unreachable. Association: %d", sri.sinfo_assoc_id);
|
||||||
srsran::console("SCTP peer address unreachable. Association: %d\n", sri.sinfo_assoc_id);
|
srsran::console("SCTP peer address unreachable. Association: %d\n", sri.sinfo_assoc_id);
|
||||||
restart_s1 = true;
|
restart_s1 = true;
|
||||||
|
} else if (notification->sn_header.sn_type == SCTP_ASSOC_CHANGE) {
|
||||||
|
logger.info("SCTP association changed. Association: %d", sri.sinfo_assoc_id);
|
||||||
|
srsran::console("SCTP association changed. Association: %d\n", sri.sinfo_assoc_id);
|
||||||
}
|
}
|
||||||
if (restart_s1) {
|
if (restart_s1) {
|
||||||
logger.info("Restarting S1 connection");
|
logger.info("Restarting S1 connection");
|
||||||
|
@ -594,7 +597,10 @@ bool s1ap::handle_mme_rx_msg(srsran::unique_byte_buffer_t pdu,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((flags & MSG_NOTIFICATION) == 0 && pdu->N_bytes != 0) {
|
||||||
handle_s1ap_rx_pdu(pdu.get());
|
handle_s1ap_rx_pdu(pdu.get());
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue