From a17d701a708c157f26b91c6ab8960fa7db33e7cd Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 5 Aug 2010 01:34:51 +0800 Subject: mgcp: Group the state for bts/net into a struct and have two instances Group the data that each end (network/bts) have into a struct and use this struct throughout the sourcecode. --- openbsc/src/nat/bsc_mgcp_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/nat') diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c index 254623642..d309ba213 100644 --- a/openbsc/src/nat/bsc_mgcp_utils.c +++ b/openbsc/src/nat/bsc_mgcp_utils.c @@ -247,7 +247,7 @@ int bsc_mgcp_policy_cb(struct mgcp_config *cfg, int endpoint, int state, const c LOGP(DMGCP, LOGL_ERROR, "Can not get the peername...%d/%s\n", errno, strerror(errno)); } else { - mgcp_endp->bts = sock.sin_addr; + mgcp_endp->bts_end.addr = sock.sin_addr; } /* send the message and a fake MDCX to force sending of a dummy packet */ -- cgit v1.2.3