/**************************************** received sctp paylaod and decode it to NGAP message and send itti message to TASK_AMF_N2 ***************************************/
std::cout<<std::endl<<"Usage: smf [OPTIONS]..."<<std::endl<<" -h, --help Print help and exit"<<std::endl<<" -c, --libconfigcfg filename Read the application configuration from this file."<<std::endl
std::cout<<std::endl<<"Usage: AMF [OPTIONS]..."<<std::endl<<" -h, --help Print help and exit"<<std::endl<<" -c, --libconfigcfg filename Read the application configuration from this file."<<std::endl
<<" -o, --stdoutlog Send the application logs to STDOUT fd."<<std::endl<<" -r, --rotatelog Send the application logs to local file (in current working directory)."<<std::endl;
<<" -o, --stdoutlog Send the application logs to STDOUT fd."<<std::endl<<" -r, --rotatelog Send the application logs to local file (in current working directory)."<<std::endl;
@@ -189,7 +189,7 @@ int sctp_server::sctp_read_from_socket(int sd, uint32_t ppid) {
...
@@ -189,7 +189,7 @@ int sctp_server::sctp_read_from_socket(int sd, uint32_t ppid) {
}
}
association->messages_recv++;
association->messages_recv++;
if(ntohl(sinfo.sinfo_ppid)!=association->ppid){
if(ntohl(sinfo.sinfo_ppid)!=association->ppid){
Logger::sctp().error("Received data from peer with unsollicited PPID(%d), expecting(%d)",ntohl(sinfo.sinfo_ppid),association->ppid);
Logger::sctp().error("Received data from peer with unsolicited PPID(%d), expecting(%d)",ntohl(sinfo.sinfo_ppid),association->ppid);
returnSCTP_RC_ERROR;
returnSCTP_RC_ERROR;
}
}
Logger::sctp().info("[assoc_id(%d)][socket(%d)] Msg of length(%d) received from port(%d), on stream(%d), PPID(%d)",sinfo.sinfo_assoc_id,sd,n,ntohs(addr.sin6_port),sinfo.sinfo_stream,ntohl(sinfo.sinfo_ppid));
Logger::sctp().info("[assoc_id(%d)][socket(%d)] Msg of length(%d) received from port(%d), on stream(%d), PPID(%d)",sinfo.sinfo_assoc_id,sd,n,ntohs(addr.sin6_port),sinfo.sinfo_stream,ntohl(sinfo.sinfo_ppid));
@@ -383,7 +383,7 @@ int sctp_server::sctp_send_msg(sctp_assoc_id_t sctp_assoc_id, sctp_stream_id_t s
...
@@ -383,7 +383,7 @@ int sctp_server::sctp_send_msg(sctp_assoc_id_t sctp_assoc_id, sctp_stream_id_t s
}
}
Logger::sctp().debug("[%d][%d] Sending buffer %p of %d bytes on stream %d with ppid %d",assoc_desc->sd,sctp_assoc_id,bdata(*payload),blength(*payload),stream,assoc_desc->ppid);
Logger::sctp().debug("[%d][%d] Sending buffer %p of %d bytes on stream %d with ppid %d",assoc_desc->sd,sctp_assoc_id,bdata(*payload),blength(*payload),stream,assoc_desc->ppid);