gprs_ns2: add gprs_ns2_nse_sns_remote() returns the initial SNS address

Allows the PCU to get the SNS remote address.

Change-Id: I54f110acc3acccb362f6e554324d08cc42b7c328
diff --git a/src/gb/gprs_ns2_sns.c b/src/gb/gprs_ns2_sns.c
index d4de8ae..1afd4b7 100644
--- a/src/gb/gprs_ns2_sns.c
+++ b/src/gb/gprs_ns2_sns.c
@@ -194,6 +194,21 @@
 	return gprs_ns2_nsvc_by_sockaddr_nse(nse, &sa);
 }
 
+/*! Return the initial SNS remote socket address
+ * \param nse NS Entity
+ * \return address of the initial SNS connection; NULL in case of error
+ */
+const struct osmo_sockaddr *gprs_ns2_nse_sns_remote(struct gprs_ns2_nse *nse)
+{
+	struct ns2_sns_state *gss;
+
+	if (!nse->bss_sns_fi)
+		return NULL;
+
+	gss = (struct ns2_sns_state *) nse->bss_sns_fi->priv;
+	return &gss->initial;
+}
+
 /*! called when a nsvc is beeing freed */
 void ns2_sns_free_nsvc(struct gprs_ns2_vc *nsvc)
 {