diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-25 17:09:07 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-26 10:35:33 +0100 |
commit | ed500e3877375bde3c0ec33825d513f9fd69c757 (patch) | |
tree | d4fb179eb8a3befc63507876f0c363f48ebeaa7a /openbsc/src/nat/bsc_nat_utils.c | |
parent | 7e0cc50e44d89dd2b656521f693599a1f3dc7416 (diff) |
nat: Allocate the endpoint status dynamically
Allocate the status for an endpoint dynamically. We will support
BSCs with different amount of multiplexes and need to have this
flexibility in the future. Add the proper null checks to the
current users of this code.
Diffstat (limited to 'openbsc/src/nat/bsc_nat_utils.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c index 7b75fa56d..047038785 100644 --- a/openbsc/src/nat/bsc_nat_utils.c +++ b/openbsc/src/nat/bsc_nat_utils.c @@ -126,6 +126,7 @@ struct bsc_config *bsc_config_alloc(struct bsc_nat *nat, const char *token) conf->token = talloc_strdup(conf, token); conf->nr = nat->num_bsc; conf->nat = nat; + conf->number_multiplexes = 1; INIT_LLIST_HEAD(&conf->lac_list); |