From ed500e3877375bde3c0ec33825d513f9fd69c757 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 25 Feb 2011 17:09:07 +0100 Subject: 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. --- openbsc/include/openbsc/bsc_nat.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'openbsc/include/openbsc') diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h index 62db17af8..13d1b09f2 100644 --- a/openbsc/include/openbsc/bsc_nat.h +++ b/openbsc/include/openbsc/bsc_nat.h @@ -78,7 +78,7 @@ struct bsc_connection { struct timer_list pong_timeout; /* mgcp related code */ - int endpoint_status[32]; + char *_endpoint_status; int last_endpoint; /* a back pointer */ @@ -124,6 +124,9 @@ struct bsc_config { int forbid_paging; + /* audio handling */ + int number_multiplexes; + /* backpointer */ struct bsc_nat *nat; -- cgit v1.2.3