[PATCH 03/10] gtphub: add simple netcat test

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Freyther holger at freyther.de
Thu Oct 8 08:50:48 UTC 2015


> On 07 Oct 2015, at 16:18, Neels Hofmeyr <nhofmeyr at sysmocom.de> wrote:
> 
> 
> -	const char* clients_addr_str = "localhost";
> -	uint16_t clients_port = 3386;
> +	/* Which local interface to use to listen for GTP clients */
> +	const char* clients_addr_str = "127.0.0.3";
> +	uint16_t clients_port = 2123;
> 
> -	const char* server_addr_str = "localhost";
> -	uint16_t server_port = 1234;
> +	/* Where the GTP server sits that we're relaying for */
> +	const char* server_addr_str = "127.0.0.2";
> +	uint16_t server_port = 2123;
> 
> 	/* Which local interface to use to listen for the GTP server's
> 	 * responses */
> -	const char* server_rx_addr_str = "localhost";
> -	uint16_t server_rx_port = 4321;
> +	const char* server_rx_addr_str = "127.0.0.4";
> +	uint16_t server_rx_port = 2123;


this won't work on FreeBSD (unless you add the ip addresses by hand). Could you
use different ports?

holger




More information about the OpenBSC mailing list