aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_mgcp_utils.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-05 01:34:51 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-05 06:10:54 +0800
commita17d701a708c157f26b91c6ab8960fa7db33e7cd (patch)
tree3661beadf93f71063b4adc6b448b5c4bdad70918 /openbsc/src/nat/bsc_mgcp_utils.c
parent8b5772ebe4d6844976324882004403de6327af83 (diff)
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.
Diffstat (limited to 'openbsc/src/nat/bsc_mgcp_utils.c')
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c2
1 files changed, 1 insertions, 1 deletions
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 */