gprs_bssgp_pcu: make osmo_sockaddr local/sgsn arguments const

Change-Id: I40e51de300533cfcbb3c9f90a0858a489a3c2b6b
Depends: I0df6a00ac1830bd64a10b9336b827e113fa772bb
This commit is contained in:
Vadim Yanitskiy 2020-10-09 21:31:26 +07:00
parent 08c5037d60
commit 194b6f06a0
2 changed files with 8 additions and 8 deletions

View File

@ -921,10 +921,10 @@ static void bvc_timeout(void *_priv)
}
int gprs_nsvc_create_and_connect(
struct gprs_rlcmac_bts *bts,
struct osmo_sockaddr *local, struct osmo_sockaddr *sgsn,
uint16_t nsei, uint16_t nsvci)
int gprs_nsvc_create_and_connect(struct gprs_rlcmac_bts *bts,
const struct osmo_sockaddr *local,
const struct osmo_sockaddr *sgsn,
uint16_t nsei, uint16_t nsvci)
{
struct gprs_ns2_vc *nsvc;
struct gprs_ns2_vc_bind *bind;

View File

@ -81,10 +81,10 @@ struct gprs_bssgp_pcu *gprs_bssgp_init(
uint16_t mcc, uint16_t mnc, bool mnc_3_digits,
uint16_t lac, uint16_t rac, uint16_t cell_id);
int gprs_nsvc_create_and_connect(
struct gprs_rlcmac_bts *bts,
struct osmo_sockaddr *local, struct osmo_sockaddr *sgsn,
uint16_t nsei, uint16_t nsvci);
int gprs_nsvc_create_and_connect(struct gprs_rlcmac_bts *bts,
const struct osmo_sockaddr *local,
const struct osmo_sockaddr *sgsn,
uint16_t nsei, uint16_t nsvci);
int gprs_ns_prim_cb(struct osmo_prim_hdr *oph, void *ctx);
int gprs_gp_send_cb(void *ctx, struct msgb *msg);