diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-12-18 18:27:43 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-12-19 18:58:51 +0100 |
commit | ea0c3203db95518c75258bf5c6bb350a3ffb56fc (patch) | |
tree | a67cdbb7c4faa862f1467ef98a28ddc78e63f2d0 /include/osmocom/bsc | |
parent | ca494f385e2f71475c7f4dd04383939729fed9d6 (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/osmocom/bsc')
-rw-r--r-- | include/osmocom/bsc/osmo_bsc.h | 34 |
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; |