[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/.

Max msuraev at sysmocom.de
Thu Mar 31 15:38:10 UTC 2016


Updated version sent. Thanks for review.

On 03/31/2016 04:21 PM, Holger Freyther wrote:
>> 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?
>
>
>

-- 
Max Suraev <msuraev at sysmocom.de> http://www.sysmocom.de/
======================================================================= 
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93 
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B 
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte 




More information about the OpenBSC mailing list