aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-12-18 18:27:43 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-19 18:58:51 +0100
commitea0c3203db95518c75258bf5c6bb350a3ffb56fc (patch)
treea67cdbb7c4faa862f1467ef98a28ddc78e63f2d0 /include
parentca494f385e2f71475c7f4dd04383939729fed9d6 (diff)
osmo-bsc: Move user plane/voice related bits into sub-structure
This clarifies which members of the struct are for what. Change-Id: I618822e6f2d48adce25f9df5c25acbce7c858412
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/osmo_bsc.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/include/osmocom/bsc/osmo_bsc.h b/include/osmocom/bsc/osmo_bsc.h
index 131007bb6..485c83648 100644
--- a/include/osmocom/bsc/osmo_bsc.h
+++ b/include/osmocom/bsc/osmo_bsc.h
@@ -26,23 +26,23 @@ struct osmo_bsc_sccp_con {
int ciphering_handled;
/* for audio handling */
- uint16_t cic;
- uint32_t rtp_ip;
- int rtp_port;
-
- /* RTP address of the remote end (assigned by MSC through assignment
- * request) */
- struct sockaddr_storage aoip_rtp_addr_remote;
-
- /* Local RTP address (reported back to the MSC by us with the
- * assignment complete message) */
- struct sockaddr_storage aoip_rtp_addr_local;
-
- /* storage to keep states of the MGCP connection handler, the
- * handler is created when an assignment request is received
- * and is terminated when the assignment complete message is
- * sent */
- struct mgcp_ctx *mgcp_ctx;
+ struct {
+ uint16_t cic;
+ uint32_t rtp_ip;
+ int rtp_port;
+ /* RTP address of the remote end (assigned by MSC through assignment request) */
+ struct sockaddr_storage aoip_rtp_addr_remote;
+
+ /* Local RTP address (reported back to the MSC by us with the
+ * assignment complete message) */
+ struct sockaddr_storage aoip_rtp_addr_local;
+
+ /* storage to keep states of the MGCP connection handler, the
+ * handler is created when an assignment request is received
+ * and is terminated when the assignment complete message is
+ * sent */
+ struct mgcp_ctx *mgcp_ctx;
+ } user_plane;
/* for advanced ping/pong */
int send_ping;