From 3186892771fe8174e42c7e3cddc7baf4c9abb0cd Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 3 Aug 2010 11:59:04 +0000 Subject: 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. --- openbsc/src/mgcp/mgcp_protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc/src/mgcp/mgcp_protocol.c') diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c index 5883c155c..2a5ce08d0 100644 --- a/openbsc/src/mgcp/mgcp_protocol.c +++ b/openbsc/src/mgcp/mgcp_protocol.c @@ -763,8 +763,8 @@ void mgcp_free_endp(struct mgcp_endpoint *endp) memset(&endp->remote, 0, sizeof(endp->remote)); memset(&endp->bts, 0, sizeof(endp->bts)); - endp->net_seq_no = endp->bts_seq_no = 0; - endp->net_lost_no = endp->bts_lost_no = 0; + memset(&endp->net_state, 0, sizeof(endp->net_state)); + memset(&endp->bts_state, 0, sizeof(endp->bts_state)); endp->conn_mode = endp->orig_mode = MGCP_CONN_NONE; } -- cgit v1.2.3