fix: add SCTP ppid and stream_no (#743)

This commit is contained in:
Sukchan Lee 2021-01-02 10:03:35 -05:00
parent 88346c0141
commit b329b09573
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ int ngap_send_to_gnb(amf_gnb_t *gnb, ogs_pkbuf_t *pkbuf, uint16_t stream_no)
ogs_debug(" IP[%s] RAN_ID[%d]",
OGS_ADDR(gnb->sctp.addr, buf), gnb->gnb_id);
ogs_sctp_ppid_in_pkbuf(pkbuf) = OGS_SCTP_NGAP_PPID;
ogs_sctp_stream_no_in_pkbuf(pkbuf) = stream_no;
if (gnb->sctp.type == SOCK_STREAM) {
ogs_sctp_write_to_buffer(&gnb->sctp, pkbuf);
return OGS_OK;