diff options
author | Harald Welte <laforge@osmocom.org> | 2021-03-02 23:08:43 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-03-04 13:35:14 +0100 |
commit | 7d0daac1ce16c4f9e1d77496cbcd729dece119c7 (patch) | |
tree | 41dec3f4841c8554878c965a1c710eb61e590b97 /src/gb/gprs_ns2.c | |
parent | a39b2592a0aeb80c5ff7d4d895c1632892c31c9b (diff) |
gprs_ns2: Pass peer/remote sockaddr argument to ns2_create_vc()
This is a preparation towards auto-creating SNS NS-VCs in SGSN role
Related: OS#3373
Change-Id: Idf92712079cd9b7e4ff2cf8df314b372d63e6e52
Diffstat (limited to 'src/gb/gprs_ns2.c')
-rw-r--r-- | src/gb/gprs_ns2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c index c56b0b51..e19ae780 100644 --- a/src/gb/gprs_ns2.c +++ b/src/gb/gprs_ns2.c @@ -868,12 +868,14 @@ static inline int ns2_tlv_parse(struct tlv_parsed *dec, /*! Create a new NS-VC based on a [received] message. Depending on the bind it might create a NSE. * \param[in] bind the bind through which msg was received * \param[in] msg the actual received message + * \param[in] remote address of remote peer sending message * \param[in] logname A name to describe the VC. E.g. ip address pair * \param[out] reject A message filled to be sent back. Only used in failure cases. * \param[out] success A pointer which will be set to the new VC on success * \return enum value indicating the status, e.g. GPRS_NS2_CS_CREATED */ enum ns2_cs ns2_create_vc(struct gprs_ns2_vc_bind *bind, struct msgb *msg, + const struct osmo_sockaddr *remote, const char *logname, struct msgb **reject, struct gprs_ns2_vc **success) |