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:
parent
882f340b6c
commit
473048d0d2
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue