fix issues about sending ngap message by sctp

This commit is contained in:
He Shanyun
2020-09-12 08:36:31 +00:00
parent 7e327ae84a
commit 3c84c4d887
4 changed files with 5 additions and 5 deletions
+2
View File
@@ -489,6 +489,7 @@ static int ngap_gNB_generate_ng_setup_request(
ASN_SEQUENCE_ADD(&out->protocolIEs.list, ie);
}
#if 0
/* mandatory */
ie = (NGAP_NGSetupRequestIEs_t *)calloc(1, sizeof(NGAP_NGSetupRequestIEs_t));
ie->id = NGAP_ProtocolIE_ID_id_SupportedTAList;
@@ -529,6 +530,7 @@ static int ngap_gNB_generate_ng_setup_request(
}
ASN_SEQUENCE_ADD(&out->protocolIEs.list, ie);
#endif
/* mandatory */
ie = (NGAP_NGSetupRequestIEs_t *)calloc(1, sizeof(NGAP_NGSetupRequestIEs_t));
ie->id = NGAP_ProtocolIE_ID_id_DefaultPagingDRX;
+2 -2
View File
@@ -29,8 +29,8 @@
#define GNB_NAME "Eurecom GNB"
#define GNB_NAME_FORMAT (GNB_NAME" %u")
#define NGAP_PORT_NUMBER (36412)
#define NGAP_SCTP_PPID (18)
#define NGAP_PORT_NUMBER (38412)
#define NGAP_SCTP_PPID (60)
#define X2AP_PORT_NUMBER (36422)
#define X2AP_SCTP_PPID (27)
+1 -3
View File
@@ -24,8 +24,6 @@
#include "queue.h"
#include "tree.h"
#include "sctp_gNB_defs.h"
#ifndef NGAP_GNB_DEFS_H_
#define NGAP_GNB_DEFS_H_
@@ -250,7 +248,7 @@ typedef struct ngap_gNB_instance_s {
enum cell_type_e cell_type;
/* Tracking area code */
uint32_t tac;
uint16_t tac;
/* gNB NGAP IP address */
net_ip_address_t gNB_ng_ip;
View File