Problem compiling OpenBSC on Kubuntu Hardy

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

Luca Bertoncello bertoncello at netzing.de
Thu Jun 17 14:45:45 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Thu, 17 Jun 2010 16:32:38 +0200
schrieb "Andreas.Eversberg" <Andreas.Eversberg at versatel.de>:

> diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
> index 57d8089..faa5f69 100644
> --- a/openbsc/src/gsm_04_11.c
> +++ b/openbsc/src/gsm_04_11.c
> @@ -340,14 +340,14 @@ static unsigned long
> gsm340_validity_period(u_int8_t sms_vpf, u_int8_t *sms_vp) /* ignore
> additional fi */ if (fi & (1<<7)) sms_vp++;
>  		/* read validity period format */
> -		switch (fi & 0b111) {
> -		case 0b000:
> +		switch (fi & 0x7) {
> +		case 0x0:
>  			return gsm340_vp_default(); /* no vpf
> specified */
> -		case 0b001:
> +		case 0x1:
>  			return gsm340_vp_relative(sms_vp);
> -		case 0b010:
> +		case 0x2:
>  			return gsm340_vp_relative_integer(sms_vp);
> -		case 0b011:
> +		case 0x3:
>  			return gsm340_vp_relative_semioctet(sms_vp);
>  		default:
>  			/* The GSM spec says that the SC should
> reject any ---------- 

It works! Thanks a lot!
I hope, it will be added to the next version of OpenBSC... :D

Greetings!
- -- 
_______________________________________________________________________
Luca Bertoncello
Entwicklung                               Mail:  bertoncello at netzing.de 


NETZING Solutions AG                      Tel.:  0351/41381 - 0
Kesselsdorfer Str. 216, 01169 Dresden     Fax:   0351/41381 - 12
HRB 18926 / Ust.ID DE211326547            Mail:  netzing.ag at netzing.de
_______________________________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFMGjUbAXzltVKV/2wRAgHgAJ4tByDgVi/L/X5RvXYkbFUbPkaUgwCZAU9j
GvKMBy7uRAM5/FxaGfRdHT0=
=PtT0
-----END PGP SIGNATURE-----


More information about the OpenBSC mailing list