From 11cb27ece64944c17c2714cfe7ea9971a8c4ab7c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 15 Oct 2015 07:57:29 +0200 Subject: mgcp_osmux: available circuit IDs from 0 to 255, not from 0 to 128 Holger reports that the bitmap that accounts for available Osmux circuit IDs is limited to 128, when the maximum number of circuit IDs are determined by the uint8_t field in the header (ie. 256 circuits). [hfreyther: Update the testcase now that we have more ids to allocate] --- openbsc/src/libmgcp/mgcp_osmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/libmgcp/mgcp_osmux.c') diff --git a/openbsc/src/libmgcp/mgcp_osmux.c b/openbsc/src/libmgcp/mgcp_osmux.c index be0db9920..b46a80e7f 100644 --- a/openbsc/src/libmgcp/mgcp_osmux.c +++ b/openbsc/src/libmgcp/mgcp_osmux.c @@ -543,7 +543,7 @@ int osmux_send_dummy(struct mgcp_endpoint *endp) } /* bsc-nat allocates/releases the Osmux circuit ID */ -static uint8_t osmux_cid_bitmap[16]; +static uint8_t osmux_cid_bitmap[(OSMUX_CID_MAX + 1) / 8]; int osmux_used_cid(void) { -- cgit v1.2.3