[PATCH 1/3] gb/vty: Perform NS-VC operations based on NS-VCI

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 Hans Peter Freyther holger at freyther.de
Thu Oct 24 05:31:56 UTC 2013


On Tue, Oct 22, 2013 at 12:22:39PM +0200, Jacob Erlbeck wrote:

Good Morning Jacob!

as usual, the patch looks good!


> -	nsvc = gprs_nsvc_by_nsei(vty_nsi, nsvci);
> +	if (!strcmp(id_type, "nsei"))
> +		nsvc = gprs_nsvc_by_nsei(vty_nsi, id);
> +	else if (!strcmp(id_type, "nsvci"))
> +		nsvc = gprs_nsvc_by_nsvci(vty_nsi, id);
> +	else
> +		return CMD_WARNING;


the VTY will make sure that id_type is either nsei or nsvc. So
we can omit the else path. In case you want to keep the else
path. I think we should a vty_out with a warning that the given
id_type does not exist.

I will modify this locally.





More information about the OpenBSC mailing list