aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/mgcp_internal.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-03 11:59:04 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-03 23:57:16 +0800
commit3186892771fe8174e42c7e3cddc7baf4c9abb0cd (patch)
tree92a9c02c013ecb8fe83e472529478f40ad0828bb /openbsc/include/openbsc/mgcp_internal.h
parentebc824cd2e1777294e71e47dffd8a41a253b2045 (diff)
mgcp: Move the rtp state into a struct
Use a struct to group the rtp state for the up and the down link of the bts.
Diffstat (limited to 'openbsc/include/openbsc/mgcp_internal.h')
-rw-r--r--openbsc/include/openbsc/mgcp_internal.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h
index 62161fdc9..adb01f467 100644
--- a/openbsc/include/openbsc/mgcp_internal.h
+++ b/openbsc/include/openbsc/mgcp_internal.h
@@ -36,6 +36,12 @@ enum mgcp_connection_mode {
MGCP_CONN_LOOPBACK = 4,
};
+struct mgcp_rtp_state {
+ int initialized;
+
+ uint16_t seq_no;
+ int lost_no;
+};
struct mgcp_endpoint {
int ci;
@@ -73,10 +79,8 @@ struct mgcp_endpoint {
unsigned int in_remote;
/* sequence bits */
- uint16_t net_seq_no;
- uint16_t bts_seq_no;
- int net_lost_no;
- int bts_lost_no;
+ struct mgcp_rtp_state net_state;
+ struct mgcp_rtp_state bts_state;
};
#define ENDPOINT_NUMBER(endp) abs(endp - endp->cfg->endpoints)