summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-08-09 13:48:18 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2017-08-09 13:48:18 +0200
commitf4d0911666067a7d84da73e6defd749d71142651 (patch)
treea0ef84cefa86fec6295afefe0836e9a654db28c5
parent4cca03749c415f4c484e53bffb88d230dc878050 (diff)
osmo-bsc: make use of osmo_sccp_addr_set_ssn()
libosmo-sccp offers a function to set the SSN. Make use of this function instead of manipulating the struct directlry
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_vty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_vty.c b/openbsc/src/osmo-bsc/osmo_bsc_vty.c
index 4d94af45e..6fd85a86f 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_vty.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_vty.c
@@ -706,8 +706,7 @@ static void enforce_standard_ssn(struct vty *vty, struct osmo_sccp_addr *addr)
addr->ssn, SCCP_SSN_BSSAP, osmo_sccp_addr_dump(addr), VTY_NEWLINE);
}
- addr->presence |= OSMO_SCCP_ADDR_T_SSN;
- addr->ssn = SCCP_SSN_BSSAP;
+ osmo_sccp_addr_set_ssn(addr, SCCP_SSN_BSSAP);
}
DEFUN(cfg_msc_cs7_bsc_addr,