[PATCH 1/2] NAT: move BSC config into separate file

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 Mar 31 14:21:03 UTC 2016


> On 31 Mar 2016, at 15:26, msuraev at sysmocom.de wrote:
> 
> 
> +DEFUN(cfg_nat_include,
> +      cfg_nat_include_cmd,
> +      "bscs-config-file NAME",
> +      "Set the filename of the BSC configuration to include.\n"
> +      "The filename to be included.")
> +{
> +	const char *conf = argv[0];
> +
> +	if ('/' == conf[0])
> +		bsc_replace_string(_nat, &_nat->include_path, conf);
> +	else {
> +		_nat->include_path = talloc_strdup_append(_nat->include_path,
> +							  "/");
> +		_nat->include_path = talloc_strdup_append(_nat->include_path,
> +							  conf);
> +	}


so If I write

	bscs-config-file bla.cfg
	bscs-config-file bla2.cfg

How will nat->include_path look after this?






More information about the OpenBSC mailing list