add osmo_sccp_addr_set_ssn()

Will be used by e.g. osmo-hnbgw to add an SSN to addresses obtained from the
sccp address book.

Change-Id: I85b46269dbe7909e52873ace3f720f6292a4516c
This commit is contained in:
Neels Hofmeyr 2017-07-27 13:51:20 +02:00
parent 882f340b6c
commit 473048d0d2
2 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,8 @@ int osmo_sccp_tx_unitdata_msg(struct osmo_sccp_user *scu,
void osmo_sccp_make_addr_pc_ssn(struct osmo_sccp_addr *addr,
uint32_t pc, uint32_t ssn);
void osmo_sccp_addr_set_ssn(struct osmo_sccp_addr *addr, uint32_t ssn);
int osmo_sccp_tx_unitdata_ranap(struct osmo_sccp_user *scu,
uint32_t src_point_code,
uint32_t dst_point_code,

View File

@ -44,6 +44,12 @@ void osmo_sccp_make_addr_pc_ssn(struct osmo_sccp_addr *addr, uint32_t pc, uint32
addr->pc = pc;
}
void osmo_sccp_addr_set_ssn(struct osmo_sccp_addr *addr, uint32_t ssn)
{
addr->presence |= OSMO_SCCP_ADDR_T_SSN;
addr->ssn = ssn;
}
int osmo_sccp_tx_unitdata(struct osmo_sccp_user *scu,
const struct osmo_sccp_addr *calling_addr,
const struct osmo_sccp_addr *called_addr,