3GPP string Attributes, containing encapsulated information...
Alan DeKok
aland at deployingradius.com
Sat Oct 17 13:15:55 CEST 2009
Stefan A. wrote:
> Is there a way to get Information out of the
> 3GPP-GPRS-Negotiated-QoS-profile?
Perl.
> The Attribute is defined in the dictionary as:
> ATTRIBUTE 3GPP-GPRS-Negotiated-QoS-profile 5 string
>
> The Value of a String might be: 99-0B811F7396878774010000
>
> To get the encapsulated "Traffic Class", I will need the most left 3 bits of
> the first '7' of the string.
> It would be 7 --> 0111 --> 011 --> 3
Ugh. Why do people design such complicated protocols?
> Is there a function available, to do this?
No.
FreeRADIUS doesn't support bit-packed structures. There isn't a lot
of reason to do that, because Perl does it much better.
Alan DeKok.
More information about the Freeradius-Users
mailing list