diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-09 18:51:01 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-09 18:51:01 +0200 |
commit | 7fc17cff64eca96052c9b25e19b64047c468de57 (patch) | |
tree | 5ca11d83ff61c19e2305b38e70ca9c844c59fcbb | |
parent | a5a7075fe5ad626178b25266beafddddecea2c02 (diff) |
nat: Set a dummy bts_ip to avoid misdetection of the bts...
It was possible that the nat detected the core network
gateway as the bts just due being the first to send data
to the port. Fix it by setting a dummy bts_ip to force
the mgcp_network code to compare the in_addr.
-rw-r--r-- | openbsc/src/nat/bsc_mgcp_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c index a273af46d..6a8693303 100644 --- a/openbsc/src/nat/bsc_mgcp_utils.c +++ b/openbsc/src/nat/bsc_mgcp_utils.c @@ -458,6 +458,7 @@ int bsc_mgcp_init(struct bsc_nat *nat) nat->mgcp_cfg->data = nat; nat->mgcp_cfg->policy_cb = bsc_mgcp_policy_cb; nat->mgcp_cfg->force_realloc = 1; + nat->mgcp_cfg->bts_ip = ""; nat->bsc_endpoints = talloc_zero_array(nat, struct bsc_endpoint, nat->mgcp_cfg->number_endpoints + 1); |