From f1e2d08022cf1cc7682ae5b618476ad7acb4f53a Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Tue, 22 May 2018 17:35:49 +0200 Subject: rtp: make port range configurable, assign correct port numbers The current implementation does not allow the user to specify a port range in which the BTS is allowed to allocate a local RTP port. Also the ports the BTS picks do not match the policy described in RFC3550. An RTP Port must be at an even port number and the matching RTCP port must be at the following (odd) port number. The BTS currently picks random port numbers for both. - Add a VTY command to specify a port range in which the BTS may assign local ports. - Pick ports as described in RFC3550. Change-Id: Id75f1dfaf898ed8750d28b1c4840e188f4cfdc87 Related: OS#2825 OS#2635 --- include/osmo-bts/gsm_data_shared.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h index 81cac3e3..f4fb7661 100644 --- a/include/osmo-bts/gsm_data_shared.h +++ b/include/osmo-bts/gsm_data_shared.h @@ -688,6 +688,11 @@ struct gsm_bts { struct llist_head oml_queue; unsigned int rtp_jitter_buf_ms; bool rtp_jitter_adaptive; + + uint16_t rtp_port_range_start; + uint16_t rtp_port_range_end; + uint16_t rtp_port_range_next; + struct { uint8_t ciphers; /* flags A5/1==0x1, A5/2==0x2, A5/3==0x4 */ } support; -- cgit v1.2.3