diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-03 11:59:04 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-03 23:57:16 +0800 |
commit | 3186892771fe8174e42c7e3cddc7baf4c9abb0cd (patch) | |
tree | 92a9c02c013ecb8fe83e472529478f40ad0828bb /openbsc/src/mgcp/mgcp_protocol.c | |
parent | ebc824cd2e1777294e71e47dffd8a41a253b2045 (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/src/mgcp/mgcp_protocol.c')
-rw-r--r-- | openbsc/src/mgcp/mgcp_protocol.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |