Parsing octets string via rlm_expr

Lotkov Svyatoslav ellezdi at gmail.com
Tue Dec 11 20:00:35 CET 2018


Thanks, Alan. This works.
Will try this module to extract all the values.

вт, 11 дек. 2018 г., 18:13 Alan DeKok aland at deployingradius.com:

> On Dec 11, 2018, at 9:27 AM, Lotkov Svyatoslav <ellezdi at gmail.com> wrote:
> > We are trying to parse byte-string from Nokia ALU device accounting.
> >
> > AV-pairs looks like:
> >
> > Alc-Acct-O-Inprof-Octets-64 = 0x00030000000000000001
>
>   Yeah, they're pretty terrible.
>
> > We need to obtain second byte from Alc-Acct-O-Inprof-Octets-64 (this byte
> > represents traffic-class number)
> >
> > Also, we need last 8 bytes from the same pair (this counter represents
> > bytes counter itself)
> > ...
> > How can we obtain this counters without using an rlm_perl or rlm_python
> for
> > av-pair parsing?
>
>   See the "unpack" module.  mods-available/unpack
>
>   Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list