Commit 502ded26 authored by nepes's avatar nepes

Add NGAP port number and ppid to be used for gNB

- SCTP associtation of gNB with AMF seems to be successful now
parent 5dd27ca0
......@@ -102,8 +102,14 @@ static void s1ap_eNB_register_mme(s1ap_eNB_instance_t *instance_p,
DevAssert(mme_ip_address != NULL);
message_p = itti_alloc_new_message(TASK_S1AP, SCTP_NEW_ASSOCIATION_REQ);
sctp_new_association_req_p = &message_p->ittiMsg.sctp_new_association_req;
sctp_new_association_req_p->port = S1AP_PORT_NUMBER;
sctp_new_association_req_p->ppid = S1AP_SCTP_PPID;
if(instance_p->cell_type == CELL_MACRO_GNB){
sctp_new_association_req_p->port = NGAP_PORT_NUMBER;
sctp_new_association_req_p->ppid = NGAP_SCTP_PPID;
}
else{
sctp_new_association_req_p->port = S1AP_PORT_NUMBER;
sctp_new_association_req_p->ppid = S1AP_SCTP_PPID;
}
sctp_new_association_req_p->in_streams = in_streams;
sctp_new_association_req_p->out_streams = out_streams;
memcpy(&sctp_new_association_req_p->remote_address,
......
......@@ -32,6 +32,9 @@
#define S1AP_PORT_NUMBER (36412)
#define S1AP_SCTP_PPID (18)
#define NGAP_PORT_NUMBER (38412)
#define NGAP_SCTP_PPID (60)
#define X2AP_PORT_NUMBER (36422)
#define X2AP_SCTP_PPID (27)
......
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