diff options
author | Harald Welte <laforge@osmocom.org> | 2021-04-25 14:29:30 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-04-25 14:29:30 +0200 |
commit | 9db62136200f99e0dd9e76e79ab6ec714af9fe96 (patch) | |
tree | c8480733b429c4ed8b3983390f7ad66f3589c464 /src/ipa.c | |
parent | e5ffedf526133b75b2d779110ffcb8578b029d6c (diff) |
ipa: Use VTY-configured default network indicator
When we receive a message from an IPA/SCCPlite connection, we only
have SCCP global titles and no underlying M3UA. We since have
to introduce a fake M3UA header. While we correctly set the SI,
OPC and DPC, we didn't set the NI to what is configured as default
for the cs7 instance in the VTY. For international, this problem
was hidden by the fact that international is '0' and hence our
default memory initialization.
Change-Id: I02c618fa0a0aa2a859fcd56397df9637043c8e6e
Closes: SYS#5421
Diffstat (limited to 'src/ipa.c')
-rw-r--r-- | src/ipa.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -273,6 +273,7 @@ static int ipa_rx_msg_sccp(struct osmo_ss7_asp *asp, struct msgb *msg) data_hdr.si = MTP_SI_SCCP; data_hdr.opc = osmo_htonl(opc); data_hdr.dpc = osmo_htonl(dpc); + data_hdr.ni = as->inst->cfg.network_indicator; /* Create M3UA message in XUA structure */ xua = m3ua_xfer_from_data(&data_hdr, msgb_l2(msg), msgb_l2len(msg)); msgb_free(msg); |